de.pangaea.metadataportal.search
Class DateRangeQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.ConstantScoreQuery
de.pangaea.metadataportal.search.DateRangeQuery
- All Implemented Interfaces:
- Serializable, Cloneable
public final class DateRangeQuery
- extends ConstantScoreQuery
A Lucene Query that implements a trie-based range query on date fields.
This class wraps a NumericRangeFilter from Lucene.
- See Also:
NumericRangeFilter,
Serialized Form
|
Constructor Summary |
DateRangeQuery(String field,
int precisionStep,
Date min,
Date max,
boolean minInclusive,
boolean maxInclusive)
A trie query using the supplied field with range bounds in date/time form. |
DateRangeQuery
public DateRangeQuery(String field,
int precisionStep,
Date min,
Date max,
boolean minInclusive,
boolean maxInclusive)
- A trie query using the supplied field with range bounds in date/time form.
You can set
min or max to null to leave one bound open.
With minInclusive and maxInclusive can be choosen, if the corresponding
bound should be included or excluded from the range.
toString
public String toString(String field)
- Overrides:
toString in class ConstantScoreQuery
Copyright ©2007-2011 panFMP Developers c/o Uwe Schindler