Correct. As for side-effect, well, things will be slower, obviously :) Increase the limit, perform a search, and see if it's still sufficiently fast...that's what I would do. :)
Otis --- Dror Matalon <[EMAIL PROTECTED]> wrote: > > This was raised in > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg04696.html > > and not really answered. > > > If I do > > +(contents:luc* description:luc*) > > Things work fine. However if I do > +(contents:car* description:car*) > > I get the following exception > > > org.apache.lucene.search.BooleanQuery$TooManyClauses > </pre> > <h4>------------start of original exception stack > trace-------</h4> > <pre> > 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.BooleanQuery.rewrite(BooleanQuery.java:240) > at > org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:189) > 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:93) > at org.apache.lucene.search.Hits.&lt;init&gt; (Hits.java:80) > at org.apache.lucene.search.Searcher.search(Searcher.java:71) > at org.apache.lucene.search.Searcher.search(Searcher.java:65) > at com.fastbuzz.search.Results.fetchResults(Results.java:134) > at com.fastbuzz.search.Results.&lt;init&gt; (Results.java: > ... > > > My guess is that wild cards are rewriten as a bunch of > BooleanQuery(s) > so that car* is actually > car > cars > carma > ... > > Since I have more than 1024 terms in my index that start with car, I > get > this exception. > > What are the performence reprecussions to increasing maxClauseCount > from > 1024 to something large, say 64K? > > > Regards, > > Dror > > -- > Dror Matalon > Zapatec Inc > 1700 MLK Way > Berkeley, CA 94709 > http://www.fastbuzz.com > http://www.zapatec.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]