public class ScriptScoreFunction extends ScoreFunction
| Constructor | Description |
|---|---|
ScriptScoreFunction(Script sScript,
SearchScript.LeafFactory script) |
| Modifier and Type | Method | 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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getDefaultScoreCombiner, getWeight, hashCode, rewritepublic ScriptScoreFunction(Script sScript, SearchScript.LeafFactory script)
public LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOException
getLeafScoreFunction in class ScoreFunctionjava.io.IOExceptionpublic boolean needsScores()
ScoreFunctionneedsScores in class ScoreFunctiontrue if scores are needed.public java.lang.String toString()
toString in class java.lang.Objectprotected boolean doEquals(ScoreFunction other)
ScoreFunctionScoreFunction object of the same type is "equal to" this one.doEquals in class ScoreFunctionprotected int doHashCode()
doHashCode in class ScoreFunction