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


Constructor Summary
BoostScoreFunction(float boost)
           
 
Method Summary
 boolean equals(Object o)
           
 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 getBoost()
           
 int hashCode()
           
 float score(int docId, float subQueryScore)
           
 void setNextReader(org.apache.lucene.index.IndexReader reader)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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

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

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012. All Rights Reserved.