![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Makes life easy with ElasticSearch.
elastic = require('elasticsearch');
Etk = require('etk');
// Elasticsearch instance is initialized as documented at it's
// project space
var client = elastic.Client({hosts: ['localhost:9200']});
// Etk instance "tk_1" calls against index = my_index and type = my_type
var tk_1 = Etk(client, {index: "my_index", type: "my_type"});
// search Etk API call returns back the search result
tk_1.search("foo", "bar", function (err, resp) {
// Etk inserts "source()" method to response, so you can easily get
// the data array found in search
console.log(JSON.stringify(resp.source());
// Etk inserts "score()" method to response, so you can easily get
// the score array found in search
console.log(JSON.stringify(resp.score());
// elasticsearch original response can be reached from resp.resp
// for further data manipulation for special cases.
console.log(JSON.stringify(resp.resp);
});
// Etk instance "tk_2" forwards elasticsearch error and response messages
// to application. See class documentation for full list of options
// you can configure
var tk_2 = Etk(client, {index: "another_index",
type: "another_type",
raw_response: true,
raw_error: true});
// search Etk API call returns back the search result
tk_2.search("baz", "bar", function (err, resp) {
// Application should handle raw error and response messages
// received from elasticsearch.
...
});
$ npm install etk
Project site documents the latest NPM release.
Original author of Etk is R. Saltuk Alakus
Looking for maintainers. Please drop me an email at saltukalakus@gmail.com
FAQs
Elastic search tool kit.
The npm package etk receives a total of 0 weekly downloads. As such, etk popularity was classified as not popular.
We found that etk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.