@Component(value="fts_HitTextsBuilder") public class HitInfoTextsBuilderBean extends java.lang.Object implements HitInfoTextsBuilder
NAME
Constructor and Description |
---|
HitInfoTextsBuilderBean() |
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
|
public java.util.Map<java.lang.String,java.lang.String> buildHighlightedHitTexts(java.lang.String fieldAllContent, java.lang.String searchTerm)
HitInfoTextsBuilder
buildHighlightedHitTexts
in interface HitInfoTextsBuilder
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