Class IntervalQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.search.intervals.IntervalQuery
-
public final class IntervalQuery extends Query
A query that retrieves documents containing intervals returned from anIntervalsSource
Static constructor functions for various different sources can be found in theIntervals
class
-
-
Constructor Summary
Constructors Constructor Description IntervalQuery(String field, IntervalsSource intervalsSource)
Create a new IntervalQuery
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Weight
createWeight(IndexSearcher searcher, boolean needsScores, float boost)
boolean
equals(Object o)
String
getField()
int
hashCode()
String
toString(String field)
-
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
-
-
-
Constructor Detail
-
IntervalQuery
public IntervalQuery(String field, IntervalsSource intervalsSource)
Create a new IntervalQuery- Parameters:
field
- the field to queryintervalsSource
- anIntervalsSource
to retrieve intervals from
-
-
Method Detail
-
getField
public String getField()
-
createWeight
public Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException
- Overrides:
createWeight
in classQuery
- Throws:
IOException
-
-