public class ScriptScoreFunction extends ScoreFunction
Constructor and Description |
---|
ScriptScoreFunction(Script sScript,
SearchScript script) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doEquals(ScoreFunction other)
Indicates whether some other
ScoreFunction object of the same type is "equal to" this one. |
protected int |
doHashCode() |
LeafScoreFunction |
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) |
boolean |
needsScores()
Indicates if document scores are needed by this function.
|
java.lang.String |
toString() |
equals, getDefaultScoreCombiner, hashCode
public ScriptScoreFunction(Script sScript, SearchScript script)
public LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOException
getLeafScoreFunction
in class ScoreFunction
java.io.IOException
public boolean needsScores()
ScoreFunction
needsScores
in class ScoreFunction
true
if scores are needed.public java.lang.String toString()
toString
in class java.lang.Object
protected boolean doEquals(ScoreFunction other)
ScoreFunction
ScoreFunction
object of the same type is "equal to" this one.doEquals
in class ScoreFunction
protected int doHashCode()
doHashCode
in class ScoreFunction