Java – How can I do an innerjoin between 2 indexes in elastic search? Lookup data in index B based on data from index A

I have created 2 indexes in elasticsearch. There is a parent child relationship inherent in the data of the indexes. How can I join based on a column in elasticsearch in a search query?


I’m not sure how to do it using the Java interface, but I think you probably want the terms filter lookup – a great blog post detailing benefits and usage:

Leave a Reply

Your email address will not be published. Required fields are marked *