public interface IHighlightOptions extends ITextOptions
| Modifier and Type | Method and Description |
|---|---|
Color |
getHighlightColor()
Gets a color that is used to highlight occurrences.
|
String |
getTermHighlightEndTag()
Gets the end tag of the highlighting of the found word.
|
String |
getTermHighlightStartTag()
Gets the start tag of the highlighting of the found word.
|
int |
getTermsAfter()
Gets the maximum number of words in a text snippet after highlighted word.
|
int |
getTermsBefore()
Gets the maximum number of words in a text snippet before highlighted word.
|
int |
getTermsTotal()
Gets the maximum number of words in a text snippet.
|
boolean |
getUseInlineStyles()
Gets a value indicating whether inline styles are used to highlight occurrences.
|
void |
setHighlightColor(Color value)
Sets a color that is used to highlight occurrences.
|
void |
setTermHighlightEndTag(String value)
Sets the end tag of the highlighting of the found word.
|
void |
setTermHighlightStartTag(String value)
Sets the start tag of the highlighting of the found word.
|
void |
setTermsAfter(int value)
Sets the maximum number of words in a text snippet after highlighted word.
|
void |
setTermsBefore(int value)
Sets the maximum number of words in a text snippet before highlighted word.
|
void |
setTermsTotal(int value)
Sets the maximum number of words in a text snippet.
|
void |
setUseInlineStyles(boolean value)
Sets a value indicating whether inline styles are used to highlight occurrences.
|
getAdditionalFields, getCancellation, getCustomExtractor, getGenerateHead, getImageIndexingOptions, getMetadataIndexingOptions, getOcrIndexingOptions, getUseRawTextExtraction, setAdditionalFields, setCancellation, setCustomExtractor, setGenerateHead, setUseRawTextExtractionColor getHighlightColor()
String getTermHighlightEndTag()
String getTermHighlightStartTag()
int getTermsAfter()
7.int getTermsBefore()
7.int getTermsTotal()
21.boolean getUseInlineStyles()
true.void setHighlightColor(Color value)
value - A color that is used to highlight occurrences.void setTermHighlightEndTag(String value)
value - The end tag of the highlighting of the found word.void setTermHighlightStartTag(String value)
value - The start tag of the highlighting of the found word.void setTermsAfter(int value)
7.value - The maximum number of words in a text snippet after highlighted word.void setTermsBefore(int value)
7.value - The maximum number of words in a text snippet before highlighted word.void setTermsTotal(int value)
21.value - The maximum number of words in a text snippet.void setUseInlineStyles(boolean value)
true.value - A value indicating whether inline styles are used to highlight occurrences.Copyright © 2026. All rights reserved.