DecayFunctionBuilder.AbstractDistanceScoreFunction
, FieldValueFactorFunction
, FunctionScoreQuery.FilterScoreFunction
, RandomScoreFunction
, ScriptScoreFunction
, WeightFactorFunction
public abstract class ScoreFunction
extends java.lang.Object
Modifier | Constructor | Description |
---|---|---|
protected |
ScoreFunction(CombineFunction scoreCombiner) |
Modifier and Type | Method | Description |
---|---|---|
protected abstract boolean |
doEquals(ScoreFunction other) |
Indicates whether some other
ScoreFunction object of the same type is "equal to" this one. |
protected abstract int |
doHashCode() |
|
boolean |
equals(java.lang.Object obj) |
|
CombineFunction |
getDefaultScoreCombiner() |
|
abstract LeafScoreFunction |
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) |
|
float |
getWeight() |
|
int |
hashCode() |
|
abstract boolean |
needsScores() |
Indicates if document scores are needed by this function.
|
protected ScoreFunction |
rewrite(org.apache.lucene.index.IndexReader reader) |
protected ScoreFunction(CombineFunction scoreCombiner)
public CombineFunction getDefaultScoreCombiner()
public abstract LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOException
java.io.IOException
public abstract boolean needsScores()
true
if scores are needed.public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public float getWeight()
protected abstract boolean doEquals(ScoreFunction other)
ScoreFunction
object of the same type is "equal to" this one.public final int hashCode()
hashCode
in class java.lang.Object
protected abstract int doHashCode()
protected ScoreFunction rewrite(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
java.io.IOException