lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Burlison <>
Subject Re: queries with "&&" doesn't work but "AND" does
Date Thu, 10 Oct 2013 09:20:03 GMT
On 10/10/2013 09:27, Devi pulaparti wrote:

> In our search application, queries like  test && usage  do not return
> correct results but  test AND usage works fine.  So queries with "&&"
> doesn't work but "AND" does. We are using default queryparser with standard
> analyzer. Could some one please help me resolving this. please let me know
> if you need more details of implementation.

Most likely cause is that the analyzer is discarding non-alphanumeric 
tokens. Use toString on the query returned by queryparser.parse() to see 
what's in there.

Alan Burlison

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message