Hi,
Try using PrefixQuery? Is it still throws exception?
Regards
Ganesh
----- Original Message -----
From: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Send instant messages to your online friends http://in.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]