
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
elastic.js-update
Advanced tools
A JavaScript implementation of the ElasticSearch DSL for use with the official elasticsearch javascript client.
You can find the official documentation at the following locations:
You will also be able to find unofficial documentation and examples on on our blog and GitHub Gist pages here and here.
client.search({
index: 'myindex',
body: ejs.Request()
.query(ejs.MatchQuery('title', 'test'))
.facet(ejs.TermsFacet('tags').field('tags'))
}, function (error, response) {
// handle response
});
client.suggest({
index: 'myindex',
body: ejs.TermSuggester('mysuggester')
.text('tset')
.field('title')
}, function (error, response) {
// handle suggestion response
});
client.msearch({
body: [
{}
ejs.Request().query(ejs.MatchAllQuery()),
{ index: 'myindex', type: 'mytype' },
ejs.Request().query(ejs.QueryStringQuery('"Test 1"'))
]
});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Also, please don't edit elastic.js and elastic.min.js files as they are generated via grunt. You'll find source code in the "src" subdirectory!
Copyright (c) 2012-2014 FullScale Labs, LLC Licensed under the MIT license.
FAQs
Javascript API for ElasticSearch DSL
We found that elastic.js-update 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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.