org.elasticsearch.index.query
Class CustomScoreQueryParser.ScriptScoreFunction

java.lang.Object
  extended by org.elasticsearch.index.query.CustomScoreQueryParser.ScriptScoreFunction
All Implemented Interfaces:
ScoreFunction
Enclosing class:
CustomScoreQueryParser

public static class CustomScoreQueryParser.ScriptScoreFunction
extends java.lang.Object
implements ScoreFunction


Constructor Summary
CustomScoreQueryParser.ScriptScoreFunction(SearchScript script)
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomScoreQueryParser.ScriptScoreFunction

public CustomScoreQueryParser.ScriptScoreFunction(SearchScript script)
Method Detail

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