add

abstract suspend fun add(documents: List<Document>, namespace: String? = null): List<String>(source)

Adds new documents to the storage.

Return

The list of identifiers assigned to the newly added documents.

Parameters

documents

The list of documents to add.

namespace

An optional namespace to scope the storage. If null, the default namespace is used.