Class FunctionScoreQuery.FilterScoreFunction
java.lang.Object
org.elasticsearch.common.lucene.search.function.ScoreFunction
org.elasticsearch.common.lucene.search.function.FunctionScoreQuery.FilterScoreFunction
- Enclosing class:
- FunctionScoreQuery
public static class FunctionScoreQuery.FilterScoreFunction extends ScoreFunction
-
Field Summary
Fields Modifier and Type Field Description org.apache.lucene.search.QueryfilterScoreFunctionfunction -
Constructor Summary
Constructors Constructor Description FilterScoreFunction(org.apache.lucene.search.Query filter, ScoreFunction function) -
Method Summary
Modifier and Type Method Description protected booleandoEquals(ScoreFunction other)Indicates whether some otherScoreFunctionobject of the same type is "equal to" this one.protected intdoHashCode()LeafScoreFunctiongetLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx)floatgetWeight()booleanneedsScores()Indicates if document scores are needed by this function.protected ScoreFunctionrewrite(org.apache.lucene.index.IndexReader reader)Methods inherited from class org.elasticsearch.common.lucene.search.function.ScoreFunction
equals, getDefaultScoreCombiner, hashCode
-
Field Details
-
Constructor Details
-
Method Details
-
getLeafScoreFunction
public LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOException- Specified by:
getLeafScoreFunctionin classScoreFunction- Throws:
java.io.IOException
-
needsScores
public boolean needsScores()Description copied from class:ScoreFunctionIndicates if document scores are needed by this function.- Specified by:
needsScoresin classScoreFunction- Returns:
trueif scores are needed.
-
doEquals
Description copied from class:ScoreFunctionIndicates whether some otherScoreFunctionobject of the same type is "equal to" this one.- Specified by:
doEqualsin classScoreFunction
-
doHashCode
protected int doHashCode()- Specified by:
doHashCodein classScoreFunction
-
rewrite
protected ScoreFunction rewrite(org.apache.lucene.index.IndexReader reader) throws java.io.IOException- Overrides:
rewritein classScoreFunction- Throws:
java.io.IOException
-
getWeight
public float getWeight()- Overrides:
getWeightin classScoreFunction
-