public final class IntervalQuery extends Query
IntervalsSource
Static constructor functions for various different sources can be found in the
Intervals
classConstructor and Description |
---|
IntervalQuery(String field,
IntervalsSource intervalsSource)
Create a new IntervalQuery
|
Modifier and Type | Method and Description |
---|---|
Weight |
createWeight(IndexSearcher searcher,
boolean needsScores,
float boost) |
boolean |
equals(Object o) |
String |
getField() |
int |
hashCode() |
String |
toString(String field) |
classHash, rewrite, sameClassAs, toString
public IntervalQuery(String field, IntervalsSource intervalsSource)
field
- the field to queryintervalsSource
- an IntervalsSource
to retrieve intervals frompublic String getField()
public Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException
createWeight
in class Query
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.