public class CmsSearchConfigurationHighlighting extends java.lang.Object implements I_CmsSearchConfigurationHighlighting
| Constructor and Description |
|---|
CmsSearchConfigurationHighlighting(java.lang.String field,
java.lang.Integer snippetCount,
java.lang.Integer fragSize,
java.lang.String alternateField,
java.lang.Integer maxAlternateFieldLength,
java.lang.String pre,
java.lang.String post,
java.lang.String formatter,
java.lang.String fragmenter,
java.lang.Boolean useFastVectorHighlighting)
The constructor setting all configuration values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlternateHighlightField()
Returns the index field whose content should be used if no highlighting snippet is available.
|
java.lang.String |
getFormatter()
Returns the formatter that should be used for highlighting.
|
java.lang.String |
getFragmenter()
Returns the fragmenter that should be used for highlighting.
|
java.lang.Integer |
getFragSize()
Returns the maximal size a highlighted snippet should have.
|
java.lang.String |
getHightlightField()
Returns the index field that should be used for highlighting.
|
java.lang.Integer |
getMaxAlternateHighlightFieldLength()
Returns the maximal length of the snippet that should be shown from the alternative field, if no highlighting snippet was found.
|
java.lang.String |
getSimplePost()
Returns the String that should be inserted directly after the term that should be highlighted.
|
java.lang.String |
getSimplePre()
Returns the String that should be inserted directly in front of the term that should be highlighted.
|
java.lang.Integer |
getSnippetsCount()
Returns the number of highlighted snippets that should be returned.
|
java.lang.Boolean |
getUseFastVectorHighlighting()
Returns the flag, that indicates if fast vector highlighting should be used.
|
public CmsSearchConfigurationHighlighting(java.lang.String field, java.lang.Integer snippetCount, java.lang.Integer fragSize, java.lang.String alternateField, java.lang.Integer maxAlternateFieldLength, java.lang.String pre, java.lang.String post, java.lang.String formatter, java.lang.String fragmenter, java.lang.Boolean useFastVectorHighlighting)
field - The fields that should be used for highlighting. (Solr: hl.fl)snippetCount - The number of snippets to return. (Solr: hl.snippets)fragSize - The size of a snippet (in letters). (Solr: hl.fragsize)alternateField - A field that should be displayed if no highlighting snippet is found. (Solr: hl.alternateField)maxAlternateFieldLength - The maximal length of the snippet shown from the alternative field (in letters). (Solr: hl.maxAlternateFieldLength)pre - The String added in front of the highlighted part. (Solr: hl.simple.pre)post - The String added behind the highlighted part. (Solr: hl.simple.post)formatter - The formatter used for highlighting. (Solr: hl.formatter)fragmenter - The fragmenter used for highlighting. (Solr: hl.fragmenter)useFastVectorHighlighting - Flag, indicating if fast vector highlighting should be used. (Solr: hl.useFastVectorHighlighting)public java.lang.String getAlternateHighlightField()
I_CmsSearchConfigurationHighlightinggetAlternateHighlightField in interface I_CmsSearchConfigurationHighlightingI_CmsSearchConfigurationHighlighting.getAlternateHighlightField()public java.lang.String getFormatter()
I_CmsSearchConfigurationHighlightinggetFormatter in interface I_CmsSearchConfigurationHighlightingI_CmsSearchConfigurationHighlighting.getFormatter()public java.lang.String getFragmenter()
I_CmsSearchConfigurationHighlightinggetFragmenter in interface I_CmsSearchConfigurationHighlightingI_CmsSearchConfigurationHighlighting.getFragmenter()public java.lang.Integer getFragSize()
I_CmsSearchConfigurationHighlightinggetFragSize in interface I_CmsSearchConfigurationHighlightingI_CmsSearchConfigurationHighlighting.getFragSize()public java.lang.String getHightlightField()
I_CmsSearchConfigurationHighlightinggetHightlightField in interface I_CmsSearchConfigurationHighlightingI_CmsSearchConfigurationHighlighting.getHightlightField()public java.lang.Integer getMaxAlternateHighlightFieldLength()
I_CmsSearchConfigurationHighlightinggetMaxAlternateHighlightFieldLength in interface I_CmsSearchConfigurationHighlightingI_CmsSearchConfigurationHighlighting.getMaxAlternateHighlightFieldLength()public java.lang.String getSimplePost()
I_CmsSearchConfigurationHighlightinggetSimplePost in interface I_CmsSearchConfigurationHighlightingI_CmsSearchConfigurationHighlighting.getSimplePost()public java.lang.String getSimplePre()
I_CmsSearchConfigurationHighlightinggetSimplePre in interface I_CmsSearchConfigurationHighlightingI_CmsSearchConfigurationHighlighting.getSimplePre()public java.lang.Integer getSnippetsCount()
I_CmsSearchConfigurationHighlightinggetSnippetsCount in interface I_CmsSearchConfigurationHighlightingI_CmsSearchConfigurationHighlighting.getSnippetsCount()public java.lang.Boolean getUseFastVectorHighlighting()
I_CmsSearchConfigurationHighlightinggetUseFastVectorHighlighting in interface I_CmsSearchConfigurationHighlightingI_CmsSearchConfigurationHighlighting.getUseFastVectorHighlighting()