elastic-builder
elastic-builder copied to clipboard
A Node.js implementation of the elasticsearch Query DSL :construction_worker:
Building an Elasticsearch query using elastic-builder. Most cases are covered. However, "Intervals" is not. What am I trying and why? to use intervals for search queries such as "home center...
Bumps [terser](https://github.com/terser/terser) from 4.6.3 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) v4.8.0 Support for numeric separators (million...
Add the ability to pass in a type to the query string query. It can be used just all the other options available on the queryStringQuery `.type('most_fields')` https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-multi-field-parms
Hi, I'd like to use this module inside a non-Node.js context, and unfortunately the dependency on `"util"` is not allowing me to: ``` X [ERROR] Could not resolve "util" ../node_modules/elastic-builder/lib/core/util.js:9:23:...
Is there a way to add filters, etc. dynamically from an array as in the example below? // https://stackoverflow.com/questions/44738531/adding-filters-dynamically-to-dsl-query-body-generated-using-bodybuilder-js const filterTerms = ['red', 'green', 'black'] const body = bodybuilder() body.query('match',...
trying to use "elastic-builder": "^2.16.0" in "vue": "^2.6.14" as a replacement for "bodybuilder": "^2.4.0" which has been working great, but not as comprehensive as elastic-builder Error: Cannot find module 'util'...
elastic 7.X.X and above do support this kind of aggregation can is be possible to do so? es docs: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-weight-avg-aggregation.html thanks in advance
As well as we have the pipeline aggregation for [CumulativeSumAggregation](https://elastic-builder.js.org/docs/#cumulativesumaggregation), ¿could it be possible to add the same for the new [Cumulative cardinality aggregation](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-cumulative-cardinality-aggregation.html)? It would be very interesting and...
This PR makes aggregation name accessible publicly.
In the doc page i can't see if this support add runtime_mappings in the query body: Example: ```js { "runtime_mappings": { "duration": { "type": "long", "script": { "source": "emit(doc['measures.end'].value -...