enqueue Documents With Metadata
fun enqueueDocumentsWithMetadata(documents: List<Pair<PdfDocument, ByteArray>>, indexingOptions: IndexingOptions = IndexingOptions())
Queues an array of documents for indexing together with passed free-form metadata. Metadata can be retrieved after indexing with getMetadataForUID method call.
Any documents already queued or fully indexed will be ignored.
NOTE: This call requires all documents to be opened when indexing and will most likely lead to out of memory conditions if a lot of documents are passed. Prefer to use enqueueDocumentSources if possible!
Parameters
documents
List of documents to index with metadata to be stored.
indexing Options
Options for indexing the given documents. Defaults to IndexingOptions if not specified.