lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: Filter for excluding docs in a date range
Date Sat, 05 Nov 2011 21:59:04 GMT
What do you mean with multiple numeric fields?

Just guessing: FieldCacheRangeFilter does not allow the same field multiple
times per document, but NumericRangeFilter does.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de

> -----Original Message-----
> From: Tobias Knaup [mailto:tobi@knaup.me]
> Sent: Saturday, November 05, 2011 10:55 PM
> To: java-user@lucene.apache.org
> Subject: Filter for excluding docs in a date range
> 
> Hi all,
> 
> I'm trying to come up with a filter that works for the following problem:
> My documents each have a set of dates, and I need a filter that excludes
all
> documents that have a date within a given range.
> 
> My first stab at it was to index the dates in a NumericField, one value
per date,
> and use a range filter negated by a BooleanFilter.
> I tried NumericRangeFilter and FieldCacheRangeFilter, but they both don't
> seem to support multiple numeric fields.
> 
> Any suggestions?
> 
> Thanks a lot,
> 
> Tobi


---------------------------------------------------------------------
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