Package com.pspdfkit.document.library
Class IndexingOptions.Builder
-
- All Implemented Interfaces:
public final class IndexingOptions.Builder
Builder for creating IndexingOptions that can be used with enqueueDocuments.
-
-
Constructor Summary
Constructors Constructor Description IndexingOptions.Builder()
-
Method Summary
Modifier and Type Method Description IndexingOptions
build()
Creates the immutable IndexingOptions object. IndexingOptions.Builder
setIgnoreAnnotations(boolean ignoreAnnotations)
Sets whether annotations should be ignored while indexing or not. IndexingOptions.Builder
setIgnoreDocumentText(boolean ignoreDocumentText)
Sets whether document text (i.e. -
-
Method Detail
-
build
@NonNull() IndexingOptions build()
Creates the immutable IndexingOptions object.
- Returns:
IndexingOptions for being used with PdfLibrary.
-
setIgnoreAnnotations
@NonNull() IndexingOptions.Builder setIgnoreAnnotations(boolean ignoreAnnotations)
Sets whether annotations should be ignored while indexing or not. This defaults to
false
, which means annotations are added to the index.- Parameters:
ignoreAnnotations
-true
to disable annotation indexing, orfalse
to enable it.- Returns:
This builder for further actions.
-
setIgnoreDocumentText
@NonNull() IndexingOptions.Builder setIgnoreDocumentText(boolean ignoreDocumentText)
Sets whether document text (i.e. text in the page body) should be ignored while indexing or not. This defaults to
false
, which means document text is added to the index.- Parameters:
ignoreDocumentText
-true
to disable document text indexing, orfalse
to enable it.- Returns:
This builder for further actions.
-
-
-
-