| Package | Description |
|---|---|
| org.apache.lucene.search.highlight |
The highlight package contains classes to provide "keyword in context" features
typically used to highlight search terms in the text of results pages.
|
| Modifier and Type | Method and Description |
|---|---|
WeightedSpanTerm |
QueryScorer.getWeightedSpanTerm(String token)
Retrieve the
WeightedSpanTerm for the specified token. |
WeightedSpanTerm |
WeightedSpanTermExtractor.PositionCheckingMap.put(K key,
WeightedSpanTerm value) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,WeightedSpanTerm> |
WeightedSpanTermExtractor.getWeightedSpanTerms(org.apache.lucene.search.Query query,
org.apache.lucene.analysis.TokenStream tokenStream)
Creates a Map of
WeightedSpanTerms from the given Query and TokenStream. |
Map<String,WeightedSpanTerm> |
WeightedSpanTermExtractor.getWeightedSpanTerms(org.apache.lucene.search.Query query,
org.apache.lucene.analysis.TokenStream tokenStream,
String fieldName)
Creates a Map of
WeightedSpanTerms from the given Query and TokenStream. |
Map<String,WeightedSpanTerm> |
WeightedSpanTermExtractor.getWeightedSpanTermsWithScores(org.apache.lucene.search.Query query,
org.apache.lucene.analysis.TokenStream tokenStream,
String fieldName,
org.apache.lucene.index.IndexReader reader)
Creates a Map of
WeightedSpanTerms from the given Query and TokenStream. |
| Modifier and Type | Method and Description |
|---|---|
WeightedSpanTerm |
WeightedSpanTermExtractor.PositionCheckingMap.put(K key,
WeightedSpanTerm value) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
WeightedSpanTermExtractor.extract(org.apache.lucene.search.Query query,
Map<String,WeightedSpanTerm> terms)
Fills a
Map with <@link WeightedSpanTerm>s using the terms from the supplied Query. |
protected void |
WeightedSpanTermExtractor.extractUnknownQuery(org.apache.lucene.search.Query query,
Map<String,WeightedSpanTerm> terms) |
protected void |
WeightedSpanTermExtractor.extractWeightedSpanTerms(Map<String,WeightedSpanTerm> terms,
org.apache.lucene.search.spans.SpanQuery spanQuery)
Fills a
Map with <@link WeightedSpanTerm>s using the terms from the supplied SpanQuery. |
protected void |
WeightedSpanTermExtractor.extractWeightedTerms(Map<String,WeightedSpanTerm> terms,
org.apache.lucene.search.Query query)
Fills a
Map with <@link WeightedSpanTerm>s using the terms from the supplied Query. |
void |
WeightedSpanTermExtractor.PositionCheckingMap.putAll(Map<? extends K,? extends WeightedSpanTerm> m) |
| Constructor and Description |
|---|
QueryScorer(WeightedSpanTerm[] weightedTerms) |
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.