Function removeAll

  • Removes all the given documents from the index. If called with no arguments, it removes all documents from the index.

    Type Parameters

    • Document

    • ID

    Parameters

    • searchIndex: SearchIndex<Document, ID>

      The search Index

    • Optional documents: readonly Document[]

      The documents to be removed. If this argument is omitted, all documents are removed. Note that, for removing all documents, it is more efficient to call this method with no arguments than to pass all documents.

    Returns void

Generated using TypeDoc