public class HighlightOptions extends TextOptions
Learn more
Constructor and Description |
---|
HighlightOptions()
Initializes a new instance of the
HighlightOptions class. |
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, setAdditionalFields, setCancellation, setCustomExtractor, setGenerateHead
public HighlightOptions()
HighlightOptions
class.public final int getTermsBefore()
7
.public final void setTermsBefore(int value)
7
.value
- The maximum number of words in a text snippet before highlighted word.public final int getTermsAfter()
7
.public final void setTermsAfter(int value)
7
.value
- The maximum number of words in a text snippet after highlighted word.public final int getTermsTotal()
21
.public final void setTermsTotal(int value)
21
.value
- The maximum number of words in a text snippet.public final boolean getUseInlineStyles()
true
.public final void setUseInlineStyles(boolean value)
true
.value
- A value indicating whether inline styles are used to highlight occurrences.public final Color getHighlightColor()
public final void setHighlightColor(Color value)
value
- A color that is used to highlight occurrences.public final String getTermHighlightStartTag()
public final void setTermHighlightStartTag(String value)
value
- The start tag of the highlighting of the found word.public final String getTermHighlightEndTag()
public final void setTermHighlightEndTag(String value)
value
- The end tag of the highlighting of the found word.