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.
Thanks for the reply @Ayush_Mathur,
actually that is what I'm interested in. I'm working with the Java API for ElasticSearch. And in case of knowing the way to do that with curl, I'll be able to easily apply it in my project as well.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.