Builder

class 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 and maximumSearchResultsTotal to change this default.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Builds query options.
Link copied to clipboard
Enables generation of search preview snippets.
Link copied to clipboard
Prevents querying of indexed annotations.
Link copied to clipboard
Prevents querying of indexed document text.
Link copied to clipboard
Enables exact phrase matching.
Link copied to clipboard
Enables exact word matching.
Link copied to clipboard
open fun maximumPreviewResultsPerDocument(maximumPreviewResultsPerDocument: Int): QueryOptions.Builder
Sets a limit of preview results in each document.
Link copied to clipboard
open fun maximumPreviewResultsTotal(maximumPreviewResultsTotal: Int): QueryOptions.Builder
Sets a limit of all preview results.
Link copied to clipboard
open fun maximumSearchResultsPerDocument(maximumSearchResultsPerDocument: Int): QueryOptions.Builder
Sets a limit of search results in each document.
Link copied to clipboard
open fun maximumSearchResultsTotal(maximumSearchResultsTotal: Int): QueryOptions.Builder
Sets a limit of all search results.
Link copied to clipboard
open fun previewRange(start: Int, length: Int): QueryOptions.Builder
Sets range for the preview generated.