Package org.elasticsearch.search.runtime
Class LongScriptFieldDistanceFeatureQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.AbstractScriptFieldQuery<AbstractLongFieldScript>
org.elasticsearch.search.runtime.LongScriptFieldDistanceFeatureQuery
public final class LongScriptFieldDistanceFeatureQuery
extends AbstractScriptFieldQuery<AbstractLongFieldScript>
-
Field Summary
Fields inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
MATCH_COST
-
Constructor Summary
ConstructorDescriptionLongScriptFieldDistanceFeatureQuery
(Script script, Function<org.apache.lucene.index.LeafReaderContext, AbstractLongFieldScript> leafFactory, String fieldName, long origin, long pivot) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Weight
createWeight
(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) boolean
int
hashCode()
protected boolean
matches
(AbstractLongFieldScript scriptContext, int docId) void
visit
(org.apache.lucene.search.QueryVisitor visitor) Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Constructor Details
-
LongScriptFieldDistanceFeatureQuery
public LongScriptFieldDistanceFeatureQuery(Script script, Function<org.apache.lucene.index.LeafReaderContext, AbstractLongFieldScript> leafFactory, String fieldName, long origin, long pivot)
-
-
Method Details
-
matches
- Specified by:
matches
in classAbstractScriptFieldQuery<AbstractLongFieldScript>
-
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws IOException - Overrides:
createWeight
in classAbstractScriptFieldQuery<AbstractLongFieldScript>
- Throws:
IOException
-
toString
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractScriptFieldQuery<AbstractLongFieldScript>
-
equals
- Overrides:
equals
in classAbstractScriptFieldQuery<AbstractLongFieldScript>
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor) - Overrides:
visit
in classorg.apache.lucene.search.Query
-