A
A
Andy Oker2022-02-05 21:20:42
JavaScript
Andy Oker, 2022-02-05 21:20:42

How to create a function to create dynamic queries to elasticsearch?

There is bodybuilder . - it is convenient for them to create some kind of static queries.
Maybe there are some implementation examples for building dynamic queries on top of this or how can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Karo, 2022-02-05
@Zraza

What is the problem with making dynamic queries with this lib?
Task - depending on the set of input data, make a query to the database?
As far as I can see, each method returns a builder that can be put into some kind of variable.
At the end, call build on this and send it to the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question