Function createIndex

  • Function for building a search index that later can be used for querying.

    Returns

    A JSON-serializable object containing the search index to be used for subsequent queries. The raw documents are not included in the index and the provided docs array must be present without modificaton at query time. Depending on the size of the text corpus, the size of the index can very.

    Parameters

    Returns Index