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 Object
implements ScoreFunction


Constructor Summary
CustomScoreQueryParser.ScriptScoreFunction(String sScript, Map<String,Object> params, SearchScript script)
           
 
Method Summary
 org.apache.lucene.search.Explanation explainFactor(int docId)
           
 org.apache.lucene.search.Explanation explainScore(int docId, org.apache.lucene.search.Explanation subQueryExpl)
           
 float factor(int docId)
           
 float score(int docId, float subQueryScore)
           
 void setNextReader(org.apache.lucene.index.IndexReader reader)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomScoreQueryParser.ScriptScoreFunction

public CustomScoreQueryParser.ScriptScoreFunction(String sScript,
                                                  Map<String,Object> params,
                                                  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

factor

public float factor(int docId)
Specified by:
factor in interface ScoreFunction

explainScore

public org.apache.lucene.search.Explanation explainScore(int docId,
                                                         org.apache.lucene.search.Explanation subQueryExpl)
Specified by:
explainScore in interface ScoreFunction

explainFactor

public org.apache.lucene.search.Explanation explainFactor(int docId)
Specified by:
explainFactor in interface ScoreFunction

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012. All Rights Reserved.