lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nadav Har'El" <...@math.technion.ac.il>
Subject Re: Limit of QueryParser ?
Date Thu, 29 Jun 2006 11:56:51 GMT
On Thu, Jun 29, 2006, Rakesh Prajapati wrote about "Limit of QueryParser ?":
> What is the maximum number of words allowed by the QueryParser. 

QueryParser generates a BooleanQuery, so this class's "MaxClauseCount"
limits the number of words (each becoming a clause in this BooleanQuery)
you can have in a query parser expression.
The default limit is 1024, but you can change it with

	BooleanQuery.setMaxClauseCount()

Note, however, that if you really use such huge queries, they may be
extremely slow.

-- 
Nadav Har'El                        |     Thursday, Jun 29 2006, 3 Tammuz 5766
IBM Haifa Research Lab              |-----------------------------------------
                                    |Thousands of years ago, cats were
http://nadav.harel.org.il           |worshipped as gods. They never forgot.

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


Mime
View raw message