I wonder whether there is a feature in ES that allows to use search hits of an index as filters of a query on a completely different index.
I'll try to describe what i need on an example, in order to be more clear.
Assume I have two indices, called "First"(which contains arbitrary number of fields) and "Second"(containing only 1 field). Then I perform a search on the only field of the index "Second" and get some hits.
Is there a way to use those hits as filters on a query performed on the index "First"?
Please note that the field values are similar: i.e. there will be no issue related to the field values.