lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin Kulkarni <>
Subject What is the difference between PhraseQuery and BooleanQuery with BooleanClause.Occur.SHOULD
Date Thu, 31 Mar 2016 20:07:24 GMT

I am using Lucene-5.0.0.
If I had a qurey "New York" and if I use the BooleanQuery with the
BooleanClause set to MUST on the two terms, is it the same as dong a
PhraseQuery with the two terms?

I am doing some 2-gram type queries and they are giving me different
results with these two methods. I am trying to understand why is the

Thank you.


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