Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
elastic-dsl-typescript
Advanced tools
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 88 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.