Ability to search ES based on the result of previous search in the query

Hi,

We want to build a query which will search for a particular string and then it will perform a search based on the result that we have received from previous result.

Can any one help us how we can achieve this. How we can write such elastic query.

Welcome to our community! :smiley:

There is no such query in Elasticsearch, it's something you need to build in your own code.

Can you let me know how can we build such query

You run one query in your code, collect and parse the results, then pass that to the second query.

We can used Python, but is there any way of doing it in elastic query from the UI. And also is there any way to achieve this using transform input chained data

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.