org.elasticsearch.index.query
Class CustomScoreQueryParser.ScriptScoreFunction
java.lang.Object
org.elasticsearch.index.query.CustomScoreQueryParser.ScriptScoreFunction
- All Implemented Interfaces:
- ScoreFunction
- Enclosing class:
- CustomScoreQueryParser
public static class CustomScoreQueryParser.ScriptScoreFunction
- extends java.lang.Object
- implements ScoreFunction
Method Summary |
org.apache.lucene.search.Explanation |
explain(int docId,
org.apache.lucene.search.Explanation subQueryExpl)
|
float |
score(int docId,
float subQueryScore)
|
void |
setNextReader(org.apache.lucene.index.IndexReader reader)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CustomScoreQueryParser.ScriptScoreFunction
public CustomScoreQueryParser.ScriptScoreFunction(java.lang.String sScript,
java.util.Map<java.lang.String,java.lang.Object> params,
SearchScript script)
setNextReader
public void setNextReader(org.apache.lucene.index.IndexReader reader)
- Specified by:
setNextReader
in interface ScoreFunction
score
public float score(int docId,
float subQueryScore)
- Specified by:
score
in interface ScoreFunction
explain
public org.apache.lucene.search.Explanation explain(int docId,
org.apache.lucene.search.Explanation subQueryExpl)
- Specified by:
explain
in interface ScoreFunction
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object