Text Search Result Options
data class TextSearchResultOptions(val expandMode: TextSearchResultExpandMode = TextSearchResultExpandMode.EXPAND_TO_WORD_BOUNDARY, val numberOfCharactersAfter: Int = 40, val numberOfCharactersBefore: Int = 40)
Options object controlling the data available in search result items
Constructors
Link copied to clipboard
constructor(expandMode: TextSearchResultExpandMode = TextSearchResultExpandMode.EXPAND_TO_WORD_BOUNDARY, numberOfCharactersAfter: Int = 40, numberOfCharactersBefore: Int = 40)
Properties
Link copied to clipboard
This option controls how the text in SearchResultItem.textBefore
and the SearchResultItem.textAfter
is computed. This property is related to the options numberOfCharactersAfter
and numberOfCharactersBefore
Link copied to clipboard
Number of UTF-16/UCS-2 char codes after the match that should be included in the textAfter
property in SearchResultItems.
Link copied to clipboard
Number of UTF-16/UCS-2 char codes before the match that should be included in the textBefore
property in SearchResultItems.