public class ScriptScoreFunction extends ScoreFunction
Constructor and Description |
---|
ScriptScoreFunction(Script sScript,
SearchScript script) |
Modifier and Type | Method and Description |
---|---|
LeafScoreFunction |
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) |
boolean |
needsScores()
Indicates if document scores are needed by this function.
|
String |
toString() |
getDefaultScoreCombiner
public ScriptScoreFunction(Script sScript, SearchScript script)
public LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
getLeafScoreFunction
in class ScoreFunction
IOException
public boolean needsScores()
ScoreFunction
needsScores
in class ScoreFunction
true
if scores are needed.Copyright © 2009–2016. All rights reserved.