Fetching the results from two indexes - how to?

Can you suggest if this is possible or this is not possible using query DSL
? If you think its possible, a pointer would also help.

Op donderdag 19 december 2013 01:35:24 UTC+1 schreef Bijuv V:

I have some data indexed in Index 1 - for e.g - I have all of the routes
of a train listed in Index 1.

I can search the train that goes in a particular route by querying the
index 1. This is ok.

I have another index that has has the details of all trains that are under
maintenance.

So from Index 2, I can get all trains that are under maintenance.

Now the question is :

How do I write a query that will list the routes of trains that are under
maintenance and 2) list the routes of the train that are not under
maintenance.

--
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/334ce1d9-c7bb-43a6-b6c6-ae357ce1b86a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.