java.lang.Object | |
↳ | com.pspdfkit.configuration.search.SearchConfiguration |
Class containing search configuration properties.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | SearchConfiguration.Builder | Builder to create SearchConfiguration instances. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT_SNIPPET_LENGTH | Default number of preview characters extracted with every search result. | |||||||||
int | DEFAULT_START_SEARCH_CHARS | Default number of characters after which the search starts. | |||||||||
boolean | DEFAULT_START_SEARCH_ON_CURRENT_PAGE | Default value for whether the search should start on the current page or not. | |||||||||
int | UNLIMITED_SEARCH_RESULTS | Used as argument for maxSearchResults(int) to turn off search result
limiting. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SearchConfiguration() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract Integer |
getMaxSearchResults()
Returns maximum search results.
| ||||||||||
abstract int |
getSnippetLength()
Returns the search snippet length, which is a number of letters displayed in the search
result preview.
| ||||||||||
abstract int |
getStartSearchChars()
Returns the number of letter after which the search starts.
| ||||||||||
abstract boolean |
isStartSearchOnCurrentPage()
Returns
true if the search should be started on the current page, false to
start from the beginning. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Default number of preview characters extracted with every search result.
Default number of characters after which the search starts.
Default value for whether the search should start on the current page or not.
Used as argument for maxSearchResults(int)
to turn off search result
limiting.
Returns maximum search results.
null
if not set.
Returns the search snippet length, which is a number of letters displayed in the search result preview.
Returns the number of letter after which the search starts.
Returns true
if the search should be started on the current page, false
to
start from the beginning.
true
to start search from current page, false
to start from
beginning.