Aggregate results over multiple indices


(ElasticSearch Users mailing list) #1

Hi,

If I have three different indices with the same schema mapping for a type,
can I use the SearchRequestBuilder (or any other class) to simultaneously
query all three indices and have ElasticSearch perform aggregations/sorts
on the results from all three?

Thanks,
Sandeep

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/23cca37f-b999-4016-be3c-7e4eda34b28a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Alexander Reelsen) #2

Hey,

sure you can, just specify those indices in your request, see
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/multi-index.html

--Alex

On Wed, Aug 6, 2014 at 10:07 AM, 'Sandeep Ramesh Khanzode' via
elasticsearch elasticsearch@googlegroups.com wrote:

Hi,

If I have three different indices with the same schema mapping for a type,
can I use the SearchRequestBuilder (or any other class) to simultaneously
query all three indices and have ElasticSearch perform aggregations/sorts
on the results from all three?

Thanks,
Sandeep

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/23cca37f-b999-4016-be3c-7e4eda34b28a%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/23cca37f-b999-4016-be3c-7e4eda34b28a%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8o15PqD_pQAdBTJS_LfmSt1%3DkQW2umvWEkGRuMMK_Dww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3