Package | Description |
---|---|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.solr.highlight |
SolrHighlighter API and related implementations and utilities |
Modifier and Type | Method and Description |
---|---|
TextFragment[] |
Highlighter.getBestTextFragments(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 and Description |
---|---|
boolean |
TextFragment.follows(TextFragment fragment) |
void |
TextFragment.merge(TextFragment frag2) |
void |
Scorer.startFragment(TextFragment newFragment)
Called when a new fragment is started for consideration.
|
void |
QueryTermScorer.startFragment(TextFragment newFragment) |
void |
QueryScorer.startFragment(TextFragment newFragment) |
Modifier and Type | Method and Description |
---|---|
protected Object |
DefaultSolrHighlighter.getResponseForFragments(List<TextFragment> frags,
SolrQueryRequest req)
Given the fragments, return the result to be put in the field
NamedList . |