lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesh - yahoo" <emailg...@yahoo.co.in>
Subject Re: too many clause exception when using a filter
Date Wed, 30 Jul 2008 08:33:28 GMT
Hi,

Try using PrefixQuery? Is it still throws exception?

Regards
Ganesh

----- Original Message ----- 
From: <Zoeppi@gmx.de>
To: <java-user@lucene.apache.org>
Sent: Wednesday, July 30, 2008 1:00 PM
Subject: too many clause exception when using a filter


> Hello,
>
> I've filled an index with 1100 text files with the names "monisys1" to 
> "monisys1100".
>
> If I start a WildcardQuery
>       WildcardQuery query = new WildcardQuery(new 
> Term("fileId","monisys*"));
>       Hits hits = searcher.search(query);
> I get a "Too many clauses" exception, like I expected.
>
> But when I use a filter to avoid this exception, this exception still 
> occurs.
>      ConstantScoreQuery scoreQuery = new ConstantScoreQuery(new 
> QueryWrapperFilter(new WildcardQuery(new Term("fileId","monisys*"))));
>      Hits hits = searcher.search(scoreQuery);
>
> Did I miss something?
>
> Thank you.
>
> --René
>
> -- 
> Psssst! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 

Send instant messages to your online friends http://in.messenger.yahoo.com 

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


Mime
View raw message