Meilisearch JS
    Preparing search index...

    Class MeiliSearch

    Index

    Constructors

    Properties

    config: Config
    httpRequest: HttpRequests

    Accessors

    Methods

    • Deletes an index if it already exists.

      Parameters

      • uid: string

        The index UID

      Returns Promise<boolean>

      Promise which resolves to true when index exists and is deleted successfully, otherwise false if it does not exist

    • Delete one API key

      Parameters

      • keyOrUid: string

        Key

      Returns Promise<void>

    • Gather information about an index by calling MeiliSearch and return an Index instance with the gathered information

      Type Parameters

      Parameters

      • indexUid: string

        The index UID

      Returns Promise<Index<T>>

      Promise returning Index instance

    • Get one API key

      Parameters

      • keyOrUid: string

        Key or uid of the API key

      Returns Promise<Key>

      Promise returning a key

    • Gather information about an index by calling MeiliSearch and return the raw JSON response

      Parameters

      • indexUid: string

        The index UID

      Returns Promise<IndexObject>

      Promise returning index information

    • Checks if the server is healthy, otherwise an error will be thrown.

      Returns Promise<Health>

      Promise returning an object with health details

    • Checks if the server is healthy, return true or false.

      Returns Promise<boolean>

      Promise returning a boolean