Solr does not do strict Boolean logic, although it comes close. See:
https://lucidworks.com/blog/2011/12/28/why-not-and-or-and-not/

Best,
Erick

On Sun, Oct 25, 2015 at 11:18 PM, patel mrugesh
<patelmruge...@yahoo.co.in> wrote:
>   Hi All,
> We are using Lucene 4.10.3, one strange behavior we have observed when NOT 
> operator is used with parenthesis around.
> It looks like NOT operator is completely ignored and whatever boolean 
> operator was before parenthesis is applied.
> For example, document text: "lottery ticket", query: "lottery NOT ticket". As 
> expected, this query will not produce a match for this document. However, if 
> this query is slightly modified and converted to "lottery (NOT ticket)" or 
> "lottery AND (NOT ticket)" then match is produced. It behaves as if query 
> becomes "lottery AND ticket" instead, completely ignoring NOT.
> Please somebody can shed light on this?
> Thanks,Mrugesh
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to