Save This Page
Home » lucene-3.0.1-src » org.apache » lucene » search » highlight » [javadoc | source]
org.apache.lucene.search.highlight
public class: WeightedSpanTermExtractor [javadoc | source]
java.lang.Object
   org.apache.lucene.search.highlight.WeightedSpanTermExtractor
Class used to extract WeightedSpanTerm s from a Query based on whether Term s from the Query are contained in a supplied TokenStream .
Nested Class Summary:
static final class  WeightedSpanTermExtractor.FakeReader  A fake IndexReader class to extract the field from a MultiTermQuery 
Constructor:
 public WeightedSpanTermExtractor() 
 public WeightedSpanTermExtractor(String defaultField) 
Method from org.apache.lucene.search.highlight.WeightedSpanTermExtractor Summary:
getExpandMultiTermQuery,   getTokenStream,   getWeightedSpanTerms,   getWeightedSpanTerms,   getWeightedSpanTermsWithScores,   isCachedTokenStream,   setExpandMultiTermQuery,   setWrapIfNotCachingTokenFilter
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.search.highlight.WeightedSpanTermExtractor Detail:
 public boolean getExpandMultiTermQuery() 
 public TokenStream getTokenStream() 
 public Map<String, WeightedSpanTerm> getWeightedSpanTerms(Query query,
    TokenStream tokenStream) throws IOException 
    Creates a Map of WeightedSpanTerms from the given Query and TokenStream.

 public Map<String, WeightedSpanTerm> getWeightedSpanTerms(Query query,
    TokenStream tokenStream,
    String fieldName) throws IOException 
    Creates a Map of WeightedSpanTerms from the given Query and TokenStream.

 public Map<String, WeightedSpanTerm> getWeightedSpanTermsWithScores(Query query,
    TokenStream tokenStream,
    String fieldName,
    IndexReader reader) throws IOException 
    Creates a Map of WeightedSpanTerms from the given Query and TokenStream. Uses a supplied IndexReader to properly weight terms (for gradient highlighting).

 public boolean isCachedTokenStream() 
 public  void setExpandMultiTermQuery(boolean expandMultiTermQuery) 
 public  void setWrapIfNotCachingTokenFilter(boolean wrap)