enqueueDocumentSourcesWithMetadata

fun enqueueDocumentSourcesWithMetadata(documentSources: List<Pair<DocumentSource, ByteArray?>>, indexingOptions: IndexingOptions = IndexingOptions())

Queues an array of documents for indexing together with passed free-form metadata. This call will avoid opening documents until they're indexed and it's thus significantly more memory friendly than enqueueDocumentsWithMetadata.

Metadata can be retrieved after indexing with getMetadataForUID method call.

Any documents already queued or fully indexed will be ignored.

Parameters

documentSources

List of document sources to index.

indexingOptions

Options for indexing the given documents. Defaults to IndexingOptions if not specified.