lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edwin Tang <emtt...@yahoo.com>
Subject Re: Need help with filtering
Date Wed, 17 Nov 2004 15:31:14 GMT
Ah... recoding DateFilter. I will look into this today. Thanks for the help.

Ed

--- Paul Elschot <paul.elschot@xs4all.nl> wrote:

> On Wednesday 17 November 2004 01:20, Edwin Tang wrote:
> > Hello,
> > 
> > I have been using DateFilter to limit my search results to a certain date
> > range. I am now asked to replace this filter with one where my search 
> results
> > have document IDs greater than a given document ID. This document ID is
> > assigned during indexing and is a Keyword field.
> > 
> > I've browsed around the FAQs and archives and see that I can either use
> > QueryFilter or BooleanQuery. I've tried both approaches to limit the 
> document
> > ID range, but am getting the BooleanQuery.TooManyClauses exception in both
> > cases. I've also tried bumping max number of clauses via 
> setMaxClauseCount(),
> > but that number has gotten pretty big.
> > 
> > Is there another approach to this? ...
> 
> Recoding DateFilter to a DocumentIdFilter should be straightforward.
> 
> The trick is to use only one document enumerator at a time for all
> terms. Document enumerators take buffer space, and that is the
> reason why BooleanQuery has an exception for too many clauses.
> 
> Regards,
> Paul
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
> 



		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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


Mime
View raw message