Initializes a new instance of the SearchOptions class which is used to search with the highlight options for the left and the right highlight extraction.
Initializes a new instance of the SearchOptions class which is used to search with the same highlight options for the left and the right highlight extraction.
Initializes a new instance of the SearchOptions class which is used to search with the highlight options for the left and the right highlight extraction.
Parameters:
Parameter
Type
Description
matchCase
boolean
The value that indicates whether a text case isn’t ignored.
matchWholeWord
boolean
The value that indicates whether text search is limited by a whole word.
useRegularExpression
boolean
The value that indicates whether a regular expression is used.
public SearchOptions(boolean matchCase, boolean matchWholeWord, boolean useRegularExpression, HighlightOptions highlightOptions)
Initializes a new instance of the SearchOptions class which is used to search with the same highlight options for the left and the right highlight extraction.
Parameters:
Parameter
Type
Description
matchCase
boolean
The value that indicates whether a text case isn’t ignored.
matchWholeWord
boolean
The value that indicates whether text search is limited by a whole word.
useRegularExpression
boolean
The value that indicates whether a regular expression is used.
public SearchOptions(boolean matchCase, boolean matchWholeWord, boolean useRegularExpression, boolean searchByPages)
Initializes a new instance of the SearchOptions class which is used to search by pages and without highlight extraction.
Parameters:
Parameter
Type
Description
matchCase
boolean
The value that indicates whether a text case isn’t ignored.
matchWholeWord
boolean
The value that indicates whether text search is limited by a whole word.
useRegularExpression
boolean
The value that indicates whether a regular expression is used.
searchByPages
boolean
The value that indicates whether the search is performed by pages.
SearchOptions()
public SearchOptions()
Initializes a new instance of the SearchOptions class with default values. See remarks for details.
The following properties have default values:
MatchCase: false
MatchWholeWord: false
UseRegularExpression: false
LeftHighlightOptions: null
RightHighlightOptions: null
isMatchCase()
public boolean isMatchCase()
Gets the value that indicates whether a text case isn’t ignored.
Returns:
boolean - true if a text case isn’t ignored; otherwise, false .
isMatchWholeWord()
public boolean isMatchWholeWord()
Gets the value that indicates whether text search is limited by a whole word.
Returns:
boolean - true if text search is limited by a whole word; otherwise, false .
isUseRegularExpression()
public boolean isUseRegularExpression()
Gets the value that indicates whether a regular expression is used.
Returns:
boolean - true if a regular expression is used; otherwise, false .
isSearchByPages()
public boolean isSearchByPages()
Gets the value that indicates whether the search is performed by pages.
Returns:
boolean - true if the search is performed by pages; otherwise, false and the search is performed on the whole document without including SearchResult.getPageIndex() property value in SearchResult class.