Class ScoreFunction
java.lang.Object
org.elasticsearch.common.lucene.search.function.ScoreFunction
- Direct Known Subclasses:
DecayFunctionBuilder.AbstractDistanceScoreFunction
,FieldValueFactorFunction
,FunctionScoreQuery.FilterScoreFunction
,RandomScoreFunction
,ScriptScoreFunction
,WeightFactorFunction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
doEquals(ScoreFunction other)
Indicates whether some otherScoreFunction
object of the same type is "equal to" this one.protected abstract int
boolean
abstract LeafScoreFunction
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx)
float
int
hashCode()
abstract boolean
Indicates if document scores are needed by this function.protected ScoreFunction
rewrite(org.apache.lucene.index.IndexReader reader)
-
Constructor Details
-
ScoreFunction
-
-
Method Details
-
getDefaultScoreCombiner
-
getLeafScoreFunction
public abstract LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws IOException- Throws:
IOException
-
needsScores
public abstract boolean needsScores()Indicates if document scores are needed by this function.- Returns:
true
if scores are needed.
-
equals
-
getWeight
public float getWeight() -
doEquals
Indicates whether some otherScoreFunction
object of the same type is "equal to" this one. -
hashCode
public final int hashCode() -
doHashCode
protected abstract int doHashCode() -
rewrite
- Throws:
IOException
-