Search stops after the first match


(Vipul) #1

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"]}}}'


(Shay Banon) #2

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"]}}}'


(Vipul) #3

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"]}}}'


(system) #4