FileDocCategorySizeDatePackage
Scorer.javaAPI DocApache Lucene 1.91553Mon Feb 20 09:18:22 GMT 2006org.apache.lucene.search.highlight

Scorer

public interface Scorer
Adds to the score for a fragment based on its tokens
author
mark@searcharea.co.uk

Fields Summary
Constructors Summary
Methods Summary
public floatgetFragmentScore()
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 floatgetTokenScore(org.apache.lucene.analysis.Token token)
Called for each token in the current fragment

param
token The token to be scored
return
a score which is passed to the Highlighter class to influence the mark-up of the text (this return value is NOT used to score the fragment)

public voidstartFragment(TextFragment newFragment)
called when a new fragment is started for consideration

param
newFragment