|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lucene.search.Filter | +--com.lucene.search.DateFilter
A Filter that restricts search results to a range of time.
For this to work, documents must have been indexed with a DateField
.
Constructor Summary | |
DateFilter(String f,
Date from,
Date to)
Constructs a filter for field f matching dates between
from and to . |
|
DateFilter(String f,
long from,
long to)
Constructs a filter for field f matching times between
from and to . |
Method Summary | |
static DateFilter |
After(String field,
Date date)
Constructs a filter for field f matching dates before
date . |
static DateFilter |
After(String field,
long time)
Constructs a filter for field f matching times before
time . |
static DateFilter |
Before(String field,
Date date)
Constructs a filter for field f matching dates before
date . |
static DateFilter |
Before(String field,
long time)
Constructs a filter for field f matching times before
time . |
BitSet |
bits(IndexReader reader)
Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DateFilter(String f, Date from, Date to)
f
matching dates between
from
and to
.public DateFilter(String f, long from, long to)
f
matching times between
from
and to
.Method Detail |
public static DateFilter Before(String field, Date date)
f
matching dates before
date
.public static DateFilter Before(String field, long time)
f
matching times before
time
.public static DateFilter After(String field, Date date)
f
matching dates before
date
.public static DateFilter After(String field, long time)
f
matching times before
time
.public final BitSet bits(IndexReader reader) throws IOException
bits
in class Filter
public final String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |