lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Staveley (Tom)" <>
Subject RE: BooleanQuery.TooManyClauses on MultiSearcher
Date Thu, 15 Jun 2006 14:12:30 GMT
I guess the most expensive thing I'm doing from the perspective of Boolean
clauses is heavily using PrefixQuery.

I want my user to be able to find e-mail to, cc or from james@anydomain, so
I opted for PrefixQuery on James. Bearing in mind that this is causing me
grief with BooleanQuery.TooManyClauses on my MultiSearcher, is there a
smarter approach that I should be adopting?

-----Original Message-----
From: Rob Staveley (Tom) [] 
Sent: 15 June 2006 14:51
Subject: BooleanQuery.TooManyClauses on MultiSearcher

I've just added a 3rd index directory (i.e. 3rd IndexSearcher) to my
MultiSearcher and I'm getting BooleanQuery.TooManyClauses errors on queries
which were working happily on 2 indexes.

Here's an example query, which hopefully you'll find self-explanatory from
the XML structure.
<composite-query analyzer='1'>
	<group required="true" prohibited="false">
		<group required="false" prohibited="false">
			<prefix field="to" required="false"
			<prefix field="cc" required="false"
			<prefix field="smtp-rcptto" required="false"
			<prefix field="from" required="false"
			<prefix field="smtp-mailfrom" required="false"
		<parse field="body" required="false"
		<parse field="subject" required="false"

Note that there isn't even a range in there.

Do BooleanQueries not scale well across indexes?

View raw message