Search stops after the first match

I have attribute_set_id indexed at two different places in each id. I
want to search and get results from both the places(actually I want
from the second one). What is happening now, is that the following
query searches only for the first instance of "attribute_set_id" and
when does not find the match, returns zero.
{"query":{terms:{attribute_set_id:["Bags"]}}}'

Can you share more information?

On Wed, May 30, 2012 at 1:13 PM, Vipul Jain awesomevipul@gmail.com wrote:

I have attribute_set_id indexed at two different places in each id. I
want to search and get results from both the places(actually I want
from the second one). What is happening now, is that the following
query searches only for the first instance of "attribute_set_id" and
when does not find the match, returns zero.
{"query":{terms:{attribute_set_id:["Bags"]}}}'

Could you please look at this link:

On Sunday, 3 June 2012 14:35:51 UTC+5:30, kimchy wrote:

Can you share more information?

On Wed, May 30, 2012 at 1:13 PM, Vipul Jain awesomevipul@gmail.comwrote:

I have attribute_set_id indexed at two different places in each id. I
want to search and get results from both the places(actually I want
from the second one). What is happening now, is that the following
query searches only for the first instance of "attribute_set_id" and
when does not find the match, returns zero.
{"query":{terms:{attribute_set_id:["Bags"]}}}'