org.elasticsearch.common.lucene.search.function
Class BoostScoreFunction

java.lang.Object
  extended by org.elasticsearch.common.lucene.search.function.BoostScoreFunction
All Implemented Interfaces:
ScoreFunction

public class BoostScoreFunction
extends java.lang.Object
implements ScoreFunction


Constructor Summary
BoostScoreFunction(float boost)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 org.apache.lucene.search.Explanation explain(int docId, org.apache.lucene.search.Explanation subQueryExpl)
           
 float getBoost()
           
 int hashCode()
           
 float score(int docId, float subQueryScore)
           
 void setNextReader(org.apache.lucene.index.IndexReader reader)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoostScoreFunction

public BoostScoreFunction(float boost)
Method Detail

getBoost

public float getBoost()

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

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object