lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kulkarni, Ajit Kamalakar" <ajkulka...@ptc.com>
Subject Query about NOT (-) operator
Date Tue, 06 Jan 2009 09:40:15 GMT
Hi,

 

The query 

1.       NOT(IBA60019_l:1) AND NOT(IBA60019_l:0) AND
businessType:wt.doc.WTDocument 

works 

 

But below query does not work

 

2.       (NOT(IBA60019_l:1) AND NOT(IBA60019_l:0)) AND
businessType:wt.doc.WTDocument

 

 

Query number  1 shows the records but Query number 2 does not show any
records

 

 

3.       (NOT(IBA60019_l:1) OR NOT(IBA60019_l:0)) AND
businessType:wt.doc.WTDocument

 

The Query no 3 also does not show any records where as it should show
all the records for which businessType is wt.doc.WTDocument

 

 

4.       NOT(IBA60019_l:1) OR NOT(IBA60019_l:0) AND
businessType:wt.doc.WTDocument

 

Query number 4 works as if it is query number 1 i.e. OR is working as
AND

 

 

Can someone comment on this?

 

Thanks,

Ajit


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message