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() |
getDefaultScoreCombinerpublic ScriptScoreFunction(Script sScript, SearchScript script)
public LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
getLeafScoreFunction in class ScoreFunctionIOExceptionpublic boolean needsScores()
ScoreFunctionneedsScores in class ScoreFunctiontrue if scores are needed.Copyright © 2009–2017. All rights reserved.