public static class IndexDocumentOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
IndexDocumentOptions.Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
IndexDocumentOptions |
build()
Builds the index document options.
|
IndexDocumentOptions.Builder |
convertDocumentConfig(com.google.gson.JsonObject convertDocumentConfig)
Sets the convert document configuration.
|
IndexDocumentOptions.Builder |
document(java.io.File document)
Sets the document.
|
IndexDocumentOptions.Builder |
document(java.io.InputStream document,
java.lang.String mediaType)
Sets the document as an input stream and its media type.
|
IndexDocumentOptions.Builder |
dryRun(java.lang.Boolean dryRun)
Sets the dryRun flag.
|
IndexDocumentOptions.Builder |
indexConfiguration(IndexConfiguration indexConfiguration)
Sets the retrieve and rank configuration.
|
IndexDocumentOptions.Builder |
mediaType(java.lang.String mediaType)
Sets the media type.
|
IndexDocumentOptions.Builder |
metadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Sets the metadata.
|
public IndexDocumentOptions.Builder()
public IndexDocumentOptions build()
public IndexDocumentOptions.Builder convertDocumentConfig(com.google.gson.JsonObject convertDocumentConfig)
convertDocumentConfig
- Configuration for the convert document phasepublic IndexDocumentOptions.Builder document(java.io.File document)
document
- The document to be converted and indexedpublic IndexDocumentOptions.Builder document(java.io.InputStream document, java.lang.String mediaType)
document
- The document to be converted and indexedmediaType
- The media type of the documentpublic IndexDocumentOptions.Builder dryRun(java.lang.Boolean dryRun)
dryRun
- If true, performs a dry run for testing purposes (document won't be indexed), else to index the
documentpublic IndexDocumentOptions.Builder indexConfiguration(IndexConfiguration indexConfiguration)
indexConfiguration
- Configuration for the retrieve and rank service for the indexing phasepublic IndexDocumentOptions.Builder mediaType(java.lang.String mediaType)
mediaType
- The media type of the document to be converted and indexedpublic IndexDocumentOptions.Builder metadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata
- The metadata of the document that will be indexed