Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
elastic-dsl-typescript
Advanced tools
Weekly downloads
Readme
Generating hints based on types : Based on the selected, the context of the prompts changes : After selecting the filter type, it shows options for a specific
Not all fields are currently implemented. But you can extend the support yourself in your code.***
Advanced exapmles in tests directory
import { Bool, Query } from '../../index';
const q = new Query()
.addProps('_source', ['field'])
.addProps('explain', true)
.addProps('from', 0)
.addProps('size', 100)
.addProps('q', 'Lucene query string ')
.addQuery('match', {
message: {
query: 'query',
},
})
.addQuery('term', {
field: 'f',
value: 'term',
})
.addQuery('range', {
gt: 0,
gte: 0,
});
q.bool.addBuilder(
'must',
new Bool().add('must', 'term', {
field: 'articul',
params: {
value: '111',
},
}),
);
{
"_source": ["field"],
"explain": true,
"from": 0,
"q": "Lucene query string ",
"query": {
"bool": {
"must": [
{
"bool": {
"must": [
{
"term": {
"articul": {
"value": "111"
}
}
}
]
}
}
]
},
"match": {
"message": {
"query": "query"
}
},
"range": {
"gt": 0,
"gte": 0
},
"term": {
"field": "f",
"value": "term"
}
},
"size": 100
}
npm run test
FAQs
Node.js ElasticSearch search query builder
The npm package elastic-dsl-typescript receives a total of 70 weekly downloads. As such, elastic-dsl-typescript popularity was classified as not popular.
We found that elastic-dsl-typescript demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.