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

    Class TiltifyMultiSearch

    Tiltify's site uses Meilisearch's POST /multi-search endpoint to dispatch several index queries in a single request — for example a combined causes_and_fes + causes + fundraising_events lookup on the homepage.

    The official meilisearch-js MultiSearch API is also fine, but this thin wrapper keeps the dependency surface small for callers who only need multi-search and don't want to pull in the full client. It also defaults to the public Tiltify host / key so it works out of the box.

    import { TiltifyMultiSearch } from "@playlive/tiltify-search";

    const ms = new TiltifyMultiSearch();
    const { results } = await ms.multiSearch([
    { indexUid: "facts", hitsPerPage: 8 },
    { indexUid: "causes_and_fes", hitsPerPage: 8 },
    ]);
    Index
    • Parameters

      • apiKey: string = DEFAULT_SEARCH_API_KEY

        Public Meilisearch key. Defaults to DEFAULT_SEARCH_API_KEY.

      • host: string = DEFAULT_SEARCH_HOST

        Meilisearch host (trailing slashes stripped). Defaults to DEFAULT_SEARCH_HOST.

      • fetchImpl: typeof fetch = ...

        Optional custom fetch. Wrapped in createTiltifyFetchAdapter so it inherits the Tiltify host's Origin-header + filter: string[] normalization requirements. Pass a plain fetch to opt into the adapter (the default), or a pre-adapted fetch to short-circuit it (double- wrapping is a semantic no-op).

      Returns TiltifyMultiSearch

    apiKey: string
    fetchImpl: typeof fetch
    host: string