java.lang.Object | |
↳ | com.pspdfkit.document.library.QueryOptions.Builder |
Builder used to construct QueryOptions
instance.
By default the number of returned search results is limited to 500 to limit possible
search time. Use maximumPreviewResultsTotal(int)
and maximumSearchResultsTotal(int)
to change this default.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
QueryOptions |
build()
Builds query options.
| ||||||||||
QueryOptions.Builder |
generateTextPreviews(boolean generatePreviews)
Enables generation of search preview snippets.
| ||||||||||
QueryOptions.Builder |
ignoreAnnotations(boolean ignoreAnnotations)
Prevents querying of indexed annotations.
| ||||||||||
QueryOptions.Builder |
ignoreDocumentText(boolean ignoreDocumentText)
Prevents querying of indexed document text.
| ||||||||||
QueryOptions.Builder |
matchExactPhrases(boolean matchExactPhrases)
Enables exact phrase matching.
| ||||||||||
QueryOptions.Builder |
matchExactWords(boolean matchExactWords)
Enables exact word matching.
| ||||||||||
QueryOptions.Builder |
maximumPreviewResultsPerDocument(int maximumPreviewResultsPerDocument)
Sets a limit of preview results in each document.
| ||||||||||
QueryOptions.Builder |
maximumPreviewResultsTotal(int maximumPreviewResultsTotal)
Sets a limit of all preview results.
| ||||||||||
QueryOptions.Builder |
maximumSearchResultsPerDocument(int maximumSearchResultsPerDocument)
Sets a limit of search results in each document.
| ||||||||||
QueryOptions.Builder |
maximumSearchResultsTotal(int maximumSearchResultsTotal)
Sets a limit of all search results.
| ||||||||||
QueryOptions.Builder |
previewRange(int start, int length)
Sets range for the preview generated.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Builds query options.
QueryOptions
generated through this builder.
Enables generation of search preview snippets.
generatePreviews | true to enable search previews. false by default.
|
---|
Prevents querying of indexed annotations.
ignoreAnnotations | true to ignore indexed annotation content in the query.
false by default.
|
---|
Prevents querying of indexed document text.
ignoreDocumentText | true to ignore indexed document text in the query.
false by default.
|
---|
Enables exact phrase matching.
matchExactPhrases | true to enable exact phrase matching. false by
default.
|
---|
Enables exact word matching.
matchExactWords | true to enable exact word matching. false by
default.
|
---|
Sets a limit of preview results in each document.
maximumPreviewResultsPerDocument | Maximum number of preview results in each document. Unlimited by default. |
---|
Sets a limit of all preview results.
maximumPreviewResultsTotal | Maximum returned preview results for this query. Unlimited by default. |
---|
Sets a limit of search results in each document.
maximumSearchResultsPerDocument | Maximum number of search results in each document. Unlimited by default. |
---|
Sets a limit of all search results.
maximumSearchResultsTotal | Maximum returned search results for this query. Unlimited by default. |
---|
Sets range for the preview generated.
start | Starting index of preview snippet to be generated. |
---|---|
length | Length of preview snippet to be generated. |