| org.apache.lucene.search.highlight.Scorer
All known Subclasses: org.apache.lucene.search.highlight.QueryScorer,
Scorer | public interface Scorer (Code) | | Adds to the score for a fragment based on its tokens
author: mark@searcharea.co.uk |
Method Summary | |
public float | getFragmentScore() Called when the highlighter has no more tokens for the current fragment -
the scorer returns the weighting it has derived for the most recent
fragment, typically based on the tokens passed to getTokenScore(). | public float | getTokenScore(Token token) | public void | startFragment(TextFragment newFragment) |
getFragmentScore | public float getFragmentScore()(Code) | | Called when the highlighter has no more tokens for the current fragment -
the scorer returns the weighting it has derived for the most recent
fragment, typically based on the tokens passed to getTokenScore().
|
getTokenScore | public float getTokenScore(Token token)(Code) | | Called for each token in the current fragment
Parameters: token - The token to be scored a score which is passed to the Highlighter class to influence themark-up of the text (this return value is NOT used to score thefragment) |
startFragment | public void startFragment(TextFragment newFragment)(Code) | | called when a new fragment is started for consideration
Parameters: newFragment - |
|
|