com.sun.labs.minion
Interface ScoreModifier


public interface ScoreModifier

An interface for clases that would like the opportunity to modify document scores at the time that they are being considered for inclusion into a set of results returned from the search engine.


Method Summary
 float modifyScore(float score, ResultAccessor ra)
          Modifies the provided score, possibly taking into account the data about the current document using the provided result accessor.
 

Method Detail

modifyScore

float modifyScore(float score,
                  ResultAccessor ra)
Modifies the provided score, possibly taking into account the data about the current document using the provided result accessor.

Note that an implementation of this method may be called thousands or hundreds of thousands of times when deciding whether to add a document to a set of results!

Parameters:
score - the current score for the document under consideration
ra - a result accessor that can provide information about the document currently under consideration
Returns:
a modified score that will be used instead of the score computed by the search engine.