GET, and then QUERY

Hi! It's possible make a GET, to retrieve an document, and then make a query using some of the fields in this document like as match values? Is to say, make nested query in elasticsearch side, to improve the time to query?

Hi! It's possible to do this, with some limitations, using a terms lookup query. Specifically, you'll need to know the _id of the document you're getting the values from (that is, you would otherwise do GET /my_index/_doc/47 rather than a search), and it only works with terms queries.

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