RangeFilter combined with
DateTools.public class DateFilter extends Filter
For this to work, documents must have been indexed with a
DateField.
| Constructor and Description |
|---|
DateFilter(String f,
Date from,
Date to)
Deprecated.
Constructs a filter for field
f matching dates
between from and to inclusively. |
DateFilter(String f,
long from,
long to)
Deprecated.
Constructs a filter for field
f matching times
between from and to inclusively. |
| Modifier and Type | Method and Description |
|---|---|
static DateFilter |
After(String field,
Date date)
Deprecated.
Constructs a filter for field
f matching
dates on or after date. |
static DateFilter |
After(String field,
long time)
Deprecated.
Constructs a filter for field
f matching
times on or after time. |
static DateFilter |
Before(String field,
Date date)
Deprecated.
Constructs a filter for field
f matching
dates on or before before date. |
static DateFilter |
Before(String field,
long time)
Deprecated.
Constructs a filter for field
f matching times
on or before time. |
BitSet |
bits(IndexReader reader)
Deprecated.
Returns a BitSet with true for documents which should be
permitted in search results, and false for those that should
not.
|
String |
toString()
Deprecated.
|
public DateFilter(String f, Date from, Date to)
f matching dates
between from and to inclusively.public DateFilter(String f, long from, long to)
f matching times
between from and to inclusively.public static DateFilter Before(String field, Date date)
f matching
dates on or before before date.public static DateFilter Before(String field, long time)
f matching times
on or before time.public static DateFilter After(String field, Date date)
f matching
dates on or after date.public static DateFilter After(String field, long time)
f matching
times on or after time.public BitSet bits(IndexReader reader) throws IOException
bits in class FilterIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.