The Python client has an officially supported high-level DSL wrapper: https://github.com/elastic/elasticsearch-dsl-py
Unofficial repos like https://github.com/sudo-suhas/elastic-builder are useful, but only in building the body of queries and does not contain wrappers for mappings, analyzers, etc. like the Python DSL has. The current documentation for 6.5 even recommends using packages like these to help construct queries (see https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference-6-5.html#api-search-6-5).
Is there any intention for a similar type of wrapper for Node.js as well?
Hello! At the moment, we are in the process of refactoring the current client, you can see the status of the work in the next branch.
Once it's finished, prototype a high-level DSL wrapper is definitely on the roadmap :)
Was also looking for a Lucene/ES DSL query builder. Really disappointing this doesn't exist.
However, found https://github.com/sudo-suhas/elastic-builder so I will use that.
I was looking at that too but it's 2 full DSL versions behind, which is very unfortunate.
Honestly I'm a bit unimpressed by the JS tooling for elasticsearch
AFAIK bodybuilder has been kept somewhat up to date.
Hello! We are working on a dsl, we will start asking for feedback soon :)
Most helpful comment
Hello! At the moment, we are in the process of refactoring the current client, you can see the status of the work in the
nextbranch.Once it's finished, prototype a high-level DSL wrapper is definitely on the roadmap :)