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 | Description |
---|---|---|
TextFragment[] |
Highlighter.getBestTextFragments(org.apache.lucene.analysis.TokenStream tokenStream,
String text,
boolean mergeContiguousFragments,
int maxNumFragments) |
Low level api to get the most relevant (formatted) sections of the document.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
TextFragment.follows(TextFragment fragment) |
|
void |
TextFragment.merge(TextFragment frag2) |
|
void |
QueryScorer.startFragment(TextFragment newFragment) |
|
void |
QueryTermScorer.startFragment(TextFragment newFragment) |
|
void |
Scorer.startFragment(TextFragment newFragment) |
Called when a new fragment is started for consideration.
|
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.