Re: Include and exclude feature with multi valued fileds

2016-05-04 Thread Anil
Hi Ahmet, in my example DOC 3 also has id 2 (typo mistake). i am using edismax query parser. i will try the query you suggested. Regard, Anil On 4 May 2016 at 12:28, Ahmet Arslan wrote: > > > Hi Anil, > > It is weird that your query retrieves docID=2, it has not Facebook at all. > What

Re: Include and exclude feature with multi valued fileds

2016-05-03 Thread Ahmet Arslan
Hi Anil, It is weird that your query retrieves docID=2, it has not Facebook at all. What query parser are you using? Please try unary operators and without using quotes. q={!lucene} +customers:facebook -customers:google If I am not wrong above query should do the trick. But I didn't understan

Re: Include and exclude feature with multi valued fileds

2016-05-03 Thread Anil
Hi Ahmet, Thanks for the response. Following are sample documents. Doc 1 : id : 1 customers : ["facebook', "google"] issueId:1231 description: Some description Doc2 : id : 2 customers : ["twitter", "google"] issueId:1231 description: Some description Doc3 : id : 2 customers : ["facebook', "a

Re: Include and exclude feature with multi valued fileds

2016-05-03 Thread Ahmet Arslan
Can you provide us example documents? Which you want to match which you don't? On Tuesday, May 3, 2016 3:15 PM, Anil wrote: Any inputs please ? On 2 May 2016 at 18:18, Anil wrote: > HI, > > i have created a document with multi valued fields. > > Eg : > An issue is impacting multiple custome

Re: Include and exclude feature with multi valued fileds

2016-05-03 Thread Anil
Any inputs please ? On 2 May 2016 at 18:18, Anil wrote: > HI, > > i have created a document with multi valued fields. > > Eg : > An issue is impacting multiple customers, products, versions etc. > > In my issue document, i have created customers, products, versions as > multi valued fields. > >

Include and exclude feature with multi valued fileds

2016-05-02 Thread Anil
HI, i have created a document with multi valued fields. Eg : An issue is impacting multiple customers, products, versions etc. In my issue document, i have created customers, products, versions as multi valued fields. how to find all issues that are impacting google (customer) but not facebook