May be it <http://stackoverflow.com/questions/20204726/lucene-or-search-using-boolean-query>helps you.
On Wed, Sep 21, 2016 at 4:11 PM, szzoli <reg9sz...@freemail.hu> wrote: > 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-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- Thank You, Chaitanya Kumar Ch, +91 9550837582