Re: Mechanism of internal search with multiple indices

2014-03-18 Thread Clinton Gormley
in advance. > > > > -- > View this message in context: > http://elasticsearch-users.115913.n3.nabble.com/Mechanism-of-internal-search-with-multiple-indices-tp4051988p4052080.html > Sent from the ElasticSearch Users mailing list archive at Nabble.com. > > -- > You receiv

Re: Mechanism of internal search with multiple indices

2014-03-18 Thread golchhamohit
saving time. ? Sorry for being verbose. Thanks in advance. -- View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Mechanism-of-internal-search-with-multiple-indices-tp4051988p4052080.html Sent from the ElasticSearch Users mailing list archive at Nabble.com. -- Y

Re: Mechanism of internal search with multiple indices

2014-03-18 Thread Mohit Golchha
@ Clinton : Many Thanks for explaining clearly how the query modifies itself when a query is given with multiple indices and types. My another doubt is that which I represent here. I have multiple indices (assume 5 - i1,i2,i3,i4,i5), multiple types(5 in each index, so total 25 types - t1,t2.

Re: Mechanism of internal search with multiple indices

2014-03-17 Thread Clinton Gormley
On 17 March 2014 13:26, Clinton Gormley wrote: > "query": { > "dis_max": { > "queries": [ > { > "filtered": { > "query": { "match": {"field_foo": "some search terms" }}, > "filter": { "term": { "_type": "type_one" }} > } > },

Re: Mechanism of internal search with multiple indices

2014-03-17 Thread Clinton Gormley
Hi Mohit All documents stored in a single index are stored at the same "level", regardless of their type. The "_type" is just a hidden field in each document. So if you do a search like: GET /index_one,index_two/_search { "query": { "match": { "field_foo": "some search terms" }}} then

Mechanism of internal search with multiple indices

2014-03-17 Thread Mohit Golchha
Hi , When a query is supplied with multiple indices (having same structure), multiple types, along with some data to be searched, how does it work internally ? Does it do a m*n comparisons where m is the data list to be searched and n is the no of indices , or is there any other mechanism ?