public interface HitInfoTextsBuilder
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
buildHighlightedHitTexts(java.lang.String fieldAllContent,
java.lang.String searchTerm)
Method builds pieces of text where the search term is highlighted
|
static final java.lang.String NAME
java.util.Map<java.lang.String,java.lang.String> buildHighlightedHitTexts(java.lang.String fieldAllContent, java.lang.String searchTerm)
fieldAllContent
- the content of the "all" field of the lucene document. The "all" field content may be something like this:
"^^name John Doe ^^address The Main Street"searchTerm
- the search term