lucene-java-user mailing list archives

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

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" ?

TIA



--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-build-a-Lucene-BooleanQuery-tp4297102.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

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


Mime
View raw message