lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szzoli <>
Subject How to build a Lucene BooleanQuery?
Date Wed, 21 Sep 2016 10:41:56 GMT

I would like to build a BooleanQuery. This migt be simple, but I cannot find
the way how to do it.
It is also silly that the function
builder.createBooleanQuery(field, queryString, BooleanClause.Occur.MUST);
builds a TermQuery.

How can I bild such a query like
"fox MUST dog MUST_NOT" ?


View this message in context:
Sent from the Lucene - Java Users mailing list archive at

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

View raw message