enqueue Document Sources With Metadata
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
document Sources
List of document sources to index.
indexing Options
Options for indexing the given documents. Defaults to IndexingOptions if not specified.