@playlive/tiltify-search
    Preparing search index...

    Function createMeilisearchClient

    • Construct a Meilisearch client pre-wired with the resilient httpClient that createResilientHttpClient produces, wrapped in createTiltifyFetchAdapter so single-index searches are transparently routed through Tiltify's /multi-search endpoint with the Origin header + filter-array shape Tiltify's proxy requires (see this module's @packageDocumentation for the migration story).

      Every *Search class in this package uses this factory.

      Parameters

      • apiKey: string

        Public Meilisearch key (typically DEFAULT_SEARCH_API_KEY).

      • host: string

        Meilisearch host (typically DEFAULT_SEARCH_HOST).

      • OptionalhttpClientOptions: ResilientHttpClientOptions

        Optional retry/logging overrides forwarded to createResilientHttpClient. If a custom fetchImpl is supplied it is wrapped by the Tiltify adapter before being handed to the retry client.

      Returns MeiliSearch

      import { createMeilisearchClient } from "@playlive/tiltify-search/meilisearch-client";
      const ms = createMeilisearchClient(apiKey, host, {
      onRetry: (info) => logger.warn(info, "tiltify retry"),
      });