| java.lang.Object org.apache.lucene.search.highlight.QueryScorer
QueryScorer | public class QueryScorer implements Scorer(Code) | | Scorer implementation which scores text fragments by the number of
unique query terms found. This class uses the
QueryTermExtractor class to process determine the query terms and their boosts to be used.
author: mark@searcharea.co.uk |
maxTermWeight | float maxTermWeight(Code) | | |
totalScore | float totalScore(Code) | | |
QueryScorer | public QueryScorer(Query query)(Code) | | Parameters: query - a Lucene query (ideally rewritten using query.rewrite before beingpassed to this class and the searcher) |
QueryScorer | public QueryScorer(Query query, String fieldName)(Code) | | Parameters: query - a Lucene query (ideally rewritten using query.rewrite before beingpassed to this class and the searcher) Parameters: fieldName - the Field name which is used to match Query terms |
QueryScorer | public QueryScorer(Query query, IndexReader reader, String fieldName)(Code) | | Parameters: query - a Lucene query (ideally rewritten using query.rewrite before beingpassed to this class and the searcher) Parameters: reader - used to compute IDF which can be used to a) score selectedfragments better b) use graded highlights eg set font colorintensity Parameters: fieldName - the field on which Inverse Document Frequency (IDF) calculationsare based |
allFragmentsProcessed | public void allFragmentsProcessed()(Code) | | |
getFragmentScore | public float getFragmentScore()(Code) | | |
getMaxTermWeight | public float getMaxTermWeight()(Code) | | The highest weighted term (useful for passing toGradientFormatter to set top end of coloring scale. |
getTokenScore | public float getTokenScore(Token token)(Code) | | |
|
|