FAQ
Dear Lucene developers,

is there a way to let the QueryParser ignore the boolean operators?
I need to send as query the source code of a class but obviously when in
the
string given as input to the QueryParser there is a "and" or "or" or "not"
it sees them like
they are boolean operators and it gives me ParseException: too many boolean
clauses.
Setting BooleanClauses.setMaxClausesCount(Integer.MAX_VALUE) seems to solve
the
exception but I think that all that "false" clauses would distort the
results.

Thanks in advance,

Raffaele Branda

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedJul 20, '11 at 11:26a
activeJul 20, '11 at 11:26a
posts1
users1
websitelucene.apache.org

1 user in discussion

Raffaele Branda: 1 post

People

Translate

site design / logo © 2022 Grokbase