enqueueDocumentSourcesWithMetadata

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.