Package org.opencms.jsp.search.config
Interface I_CmsSearchConfigurationHighlighting
- All Known Implementing Classes:
CmsSearchConfigurationHighlighting
public interface I_CmsSearchConfigurationHighlighting
The interface each highlighting configuration must implement.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the index field whose content should be used if no highlighting snippet is available.Returns the formatter that should be used for highlighting.Returns the fragmenter that should be used for highlighting.Returns the maximal size a highlighted snippet should have.Returns the index field that should be used for highlighting.Returns the maximal length of the snippet that should be shown from the alternative field, if no highlighting snippet was found.Returns the String that should be inserted directly after the term that should be highlighted.Returns the String that should be inserted directly in front of the term that should be highlighted.Returns the number of highlighted snippets that should be returned.Returns the flag, that indicates if fast vector highlighting should be used.
-
Method Details
-
getAlternateHighlightField
Returns the index field whose content should be used if no highlighting snippet is available.- Returns:
- The index field whose content should be used if no highlighting snippet is available. (Solr: hl.alternateField)
-
getFormatter
Returns the formatter that should be used for highlighting.- Returns:
- The formatter that should be used for highlighting. (Solr: hl.formatter)
-
getFragmenter
Returns the fragmenter that should be used for highlighting.- Returns:
- The fragmenter that should be used for highlighting. (Solr: hl.fragmenter)
-
getFragSize
Returns the maximal size a highlighted snippet should have.- Returns:
- The maximal size a highlighted snippet should have. (Solr: hl.fragsize)
-
getHightlightField
Returns the index field that should be used for highlighting.- Returns:
- The index field that should be used for highlighting.
-
getMaxAlternateHighlightFieldLength
Returns the maximal length of the snippet that should be shown from the alternative field, if no highlighting snippet was found.- Returns:
- The maximal length of the snippet that should be shown from the alternative field, if no highlighting snippet was found. (Solr: hl.maxAlternateFieldLength)
-
getSimplePost
Returns the String that should be inserted directly after the term that should be highlighted.- Returns:
- The String that should be inserted directly after the term that should be highlighted. (Solr: hl.simple.post)
-
getSimplePre
Returns the String that should be inserted directly in front of the term that should be highlighted.- Returns:
- The String that should be inserted directly in front the term that should be highlighted. (Solr: hl.simple.pre)
-
getSnippetsCount
Returns the number of highlighted snippets that should be returned.- Returns:
- The number of highlighted snippets that should be returned. (Solr: hl.snippets)
-
getUseFastVectorHighlighting
Returns the flag, that indicates if fast vector highlighting should be used.- Returns:
- The flag, that indicates if fast vector highlighting should be used. (Solr: hl.useFastVectorHighlighting)
-