public static class IndexDocumentOptions.Builder extends Object
| Constructor and Description |
|---|
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(File document)
Sets the document
|
IndexDocumentOptions.Builder |
document(InputStream document,
String mediaType)
Sets the document as an input stream and its media type
|
IndexDocumentOptions.Builder |
dryRun(Boolean dryRun)
Sets the dryRun flag
|
IndexDocumentOptions.Builder |
indexConfiguration(IndexConfiguration indexConfiguration)
Sets the retrieve and rank configuration
|
IndexDocumentOptions.Builder |
mediaType(String mediaType)
Sets the media type
|
IndexDocumentOptions.Builder |
metadata(Map<String,String> metadata)
Sets the metadata
|
public IndexDocumentOptions build()
public IndexDocumentOptions.Builder convertDocumentConfig(com.google.gson.JsonObject convertDocumentConfig)
convertDocumentConfig - Configuration for the convert document phasepublic IndexDocumentOptions.Builder document(File document)
document - The document to be converted and indexedpublic IndexDocumentOptions.Builder document(InputStream document, String mediaType)
document - The document to be converted and indexedmediaType - The media type of the documentpublic IndexDocumentOptions.Builder dryRun(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(String mediaType)
mediaType - The media type of the document to be converted and indexedpublic IndexDocumentOptions.Builder metadata(Map<String,String> metadata)
metadata - The metadata of the document that will be indexedCopyright © 2015–2016. All rights reserved.