lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Woon <morph...@helix.stanford.edu>
Subject Strange exception with wildcard use
Date Fri, 12 Sep 2003 00:06:31 GMT
Hi all...

I'm getting a BooleanQuery$TooManyClauses exception and I'm not really 
sure why.  I only get it when I do a wild card search, and even then, 
not all the time.

Searching for "ca*" and "pa3*" works just fine, but "pa*" or "pa1*" 
fails with:

org.apache.lucene.search.BooleanQuery$TooManyClauses
	at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:109)
	at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:101)
	at org.apache.lucene.search.PrefixQuery.rewrite(PrefixQuery.java:85)
	at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:195)
	at org.apache.lucene.search.Query.weight(Query.java:120)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:128)
	at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:90)
	at org.apache.lucene.search.Hits.(Hits.java:80)
	at org.apache.lucene.search.Searcher.search(Searcher.java:71)
	at org.apache.lucene.search.Searcher.search(Searcher.java:65)


Does anyone have any idea what might be causing this?  I'm using the 
QueryParser to build my query for me and the SnowballAnalyzer and and 
IndexSearcher with to perform the search.  This is with what's currently 
in CVS.


Thanks,
-Mark



Mime
View raw message