client
Search extension client. Reads delegate to the registered AppKit-compatible
aiSearch provider; this module owns federated fan-out and the Vector Search
lifecycle APIs AppKit does not expose.
client.search(query, opts) searches the default index; client.index(name)
returns a handle bound to one index; client.universalSearch(query) fans a
query across several indexes and merges the results (Meilisearch’s federated
/ multi-search, the “universal search” the caller asked for). Everything is
async and cancellable and returns the browser-safe shapes from
@dbx-tools/shared-search. Lifecycle methods cross AppKit’s explicit legacy
client handoff because the public facade does not yet expose index creation,
sync, or deletion.
Autocomplete is just a search with a small limit and the raw query text -
hybrid mode already prefix-matches, so no separate endpoint is needed; the
SearchIndex.autocomplete helper is a thin, self-documenting alias.
Classes
Section titled “Classes”Interfaces
Section titled “Interfaces”- CreateIndexOptions
- EnsureEndpointOptions
- IndexInfo
- ProvisionOptions
- SearchOptions
- SearchReadBackend
- UniversalSearchOptions