Package | Description |
---|---|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
Modifier and Type | Field and Description |
---|---|
(package private) TextFragment |
QueryTermScorer.currentTextFragment |
Modifier and Type | Method and Description |
---|---|
TextFragment[] |
Highlighter.getBestTextFragments(TokenStream tokenStream,
java.lang.String text,
boolean mergeContiguousFragments,
int maxNumFragments)
Low level api to get the most relevant (formatted) sections of the document.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TextFragment.follows(TextFragment fragment) |
boolean |
Highlighter.FragmentQueue.lessThan(TextFragment fragA,
TextFragment fragB) |
void |
TextFragment.merge(TextFragment frag2) |
private void |
Highlighter.mergeContiguousFragments(TextFragment[] frag)
Improves readability of a score-sorted list of TextFragments by merging any fragments
that were contiguous in the original text into one larger fragment with the correct order.
|
void |
QueryScorer.startFragment(TextFragment newFragment) |
void |
Scorer.startFragment(TextFragment newFragment)
Called when a new fragment is started for consideration.
|
void |
QueryTermScorer.startFragment(TextFragment newFragment) |