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: u...@thetaphi.de > -----Original Message----- > From: Tobias Knaup [mailto:t...@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-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org