lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Askar Zaidi" <askar.za...@gmail.com>
Subject Do AND + OR Search in Lucene
Date Thu, 02 Aug 2007 10:14:28 GMT
Hey Guys,

Quick question:

I do this in my code for searching:

queryParser.setDefaultOperator(QueryParser.Operator.AND);

Lucene is OR by default so I change it to AND for my requirements. Now, I
have a requirement to do OR as well. I mean while doing AND I'd like to
include results from OR too ... but they'll be much lower ranked than the
AND results.

Is there a way to do this ?

thanks,
AZ

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