Package | Description |
---|---|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.lucene.search.vectorhighlight |
Another highlighter implementation based on term vectors.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultEncoder
Simple
Encoder implementation that does not modify the output |
class |
SimpleHTMLEncoder
Simple
Encoder implementation to escape text for HTML output |
Modifier and Type | Method and Description |
---|---|
Encoder |
Highlighter.getEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
Highlighter.setEncoder(Encoder encoder) |
Constructor and Description |
---|
Highlighter(Formatter formatter,
Encoder encoder,
Scorer fragmentScorer) |
Modifier and Type | Method and Description |
---|---|
String |
FragmentsBuilder.createFragment(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
String[] preTags,
String[] postTags,
Encoder encoder)
create a fragment.
|
String |
BaseFragmentsBuilder.createFragment(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
String[] preTags,
String[] postTags,
Encoder encoder) |
String[] |
FragmentsBuilder.createFragments(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
int maxNumFragments,
String[] preTags,
String[] postTags,
Encoder encoder)
create multiple fragments.
|
String[] |
BaseFragmentsBuilder.createFragments(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
int maxNumFragments,
String[] preTags,
String[] postTags,
Encoder encoder) |
String |
FastVectorHighlighter.getBestFragment(FieldQuery fieldQuery,
IndexReader reader,
int docId,
String fieldName,
int fragCharSize,
FragListBuilder fragListBuilder,
FragmentsBuilder fragmentsBuilder,
String[] preTags,
String[] postTags,
Encoder encoder)
return the best fragment.
|
String[] |
FastVectorHighlighter.getBestFragments(FieldQuery fieldQuery,
IndexReader reader,
int docId,
String fieldName,
int fragCharSize,
int maxNumFragments,
FragListBuilder fragListBuilder,
FragmentsBuilder fragmentsBuilder,
String[] preTags,
String[] postTags,
Encoder encoder)
return the best fragments.
|
String[] |
FastVectorHighlighter.getBestFragments(FieldQuery fieldQuery,
IndexReader reader,
int docId,
String storedField,
Set<String> matchedFields,
int fragCharSize,
int maxNumFragments,
FragListBuilder fragListBuilder,
FragmentsBuilder fragmentsBuilder,
String[] preTags,
String[] postTags,
Encoder encoder)
Return the best fragments.
|
protected String |
BaseFragmentsBuilder.makeFragment(StringBuilder buffer,
int[] index,
Field[] values,
FieldFragList.WeightedFragInfo fragInfo,
String[] preTags,
String[] postTags,
Encoder encoder) |
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.