If the field doesn't exist in the mapping, then the index is not searched. clint
On 18 March 2014 09:56, golchhamohit <[email protected]> wrote: > 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...,t25) , some field (called "field_foo" which is present in > all documents of all indices) and there are 100 documents in each > index(d1,d2,..,d100). So total there are 5*100 = 500 documents totally. > > Now, my search query contains 2 indices(i2,i4) and > types(t2,t5,t7,t13,t17,t23) and to search for a particular list of values > ["value_field_foo1",value_field_foo2",value_field_foo3"] in field > "field_foo" (where actually value_field_foo1 is present in index2, > value_field_foo2 is present in index2 and index4, assume this, but in real > time we would not be aware which value is present in which field). My > question is will all the values(value_field_foo1, value_field_foo2,etc) be > checked its presence in the documents of all indexes , or is there some > mechanism by which it determines that value is not present in that index > and > hence it avoids the search in that index thereby 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. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/1395132968292-4052080.post%40n3.nabble.com > . > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPt3XKQV2d6EXmW7ypSzSN-yaUFyrjYG%2BZ9%3Dhc5pik_9Nm4Riw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
