lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raffaele Branda <>
Subject ignore boolean clauses QueryParser
Date Wed, 20 Jul 2011 11:26:16 GMT
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
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
Setting BooleanClauses.setMaxClausesCount(Integer.MAX_VALUE) seems to solve
exception but I think that all that "false" clauses would distort the

Thanks in advance,

Raffaele Branda

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