Hi,
I have two indices A and B. I wanted to perform inner join on the two indices using a common field such that I can collect the fields(spread across both indices) into another index using transforms.
What aggregations would need to be performed to achieve an inner join?
Hi @etp,
Elasticsearch does provide a native lightweight structured query language. Having said that when trying to run a sql statement with a join you will get the response: "Queries with multiple indices are not supported'.
All of these options though just work on data in the same index. So reindexing both indices into a common index might be needed to achieve what you are looking to do.
Hopefully that gives you a good place to start. Transitioning from a sql mindset to a "no sql" one can be rough, but will a little work you'll find it pays off. Good luck!
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.