I have multiple indices. I would like to execute search against them, and first of all:
Group by index
Sort results in the scope of the index by score.
I'm wondering if the better idea is to send one query per index or to execute multi-index query. I'm not sure if it is even possible to get what I want using the latter one.
A single multi-index query is definitely possible. Use _index to use the index name as the primary sort criterion, and use _score to sort on score within each index:
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.