Separate queries on each index to be searched


(Jay-2) #1

Hi all;
I want to know is there any mechanism in ES so that we can have
separate queries on each index needs to searched but the result should
be in consolidated form.
Thanks;
Jay


(Igor Motov) #2

Would several Indices Querieshttp://www.elasticsearch.org/guide/reference/query-dsl/indices-query.htmlcombined into a Bool
Queryhttp://www.elasticsearch.org/guide/reference/query-dsl/bool-query.htmlwork for you?

On Monday, May 14, 2012 7:37:11 AM UTC-4, jay wrote:

Hi all;
I want to know is there any mechanism in ES so that we can have
separate queries on each index needs to searched but the result should
be in consolidated form.
Thanks;
Jay


(Shay Banon) #3

As Igor suggested, indices query can help, sadly, it would have been great
to be able to specify several queries for each index/indices, instead of a
"2" option thingy. Can you open an issue? Lets think of a format for it..

On Mon, May 14, 2012 at 5:12 PM, Igor Motov imotov@gmail.com wrote:

Would several Indices Querieshttp://www.elasticsearch.org/guide/reference/query-dsl/indices-query.htmlcombined into a Bool
Queryhttp://www.elasticsearch.org/guide/reference/query-dsl/bool-query.htmlwork for you?

On Monday, May 14, 2012 7:37:11 AM UTC-4, jay wrote:

Hi all;
I want to know is there any mechanism in ES so that we can have
separate queries on each index needs to searched but the result should
be in consolidated form.
Thanks;
Jay


(system) #4