RE: Catching BooleanQuery.TooManyClauses

2006-04-17 Thread bb
Thanks Erick Paul, I also found a great example of a custom filter in LIA (6.4 Using a custom filter) Here's my updated testcase if anybody is interested... = QueryParserTest.java ... public class QueryParserTest extends LuceneTestCase {

Catching BooleanQuery.TooManyClauses

2006-04-14 Thread bb
Hi Lucene Users, I would like to catch BooleanQuery.TooManyClauses exception for certain wildcard searches and display a 'subset' of results. I have used the WildcardTermEnum to give me the first X documents matching the wildcard query. Below is the code I use to implement the solution.