GET /v1/retrievers/typeahead returns autocomplete suggestions for a prefix. It
queries three namespace-scoped sources concurrently and returns each separately,
plus one flat ranked list you can render directly.
Response
Parameters
Reading the response
A source that cannot answer is dropped, not fatal. The request still
returns 200 with whatever the other sources produced, and the one that failed
is named in
warnings.So a thin result set has two different causes: few matches, or a source that
did not run. Read warnings to tell them apart. This is the one place the API
tells you which of the two happened, and it costs one field to check.recent_searches is scoped to the calling identity, so two users typing the same
prefix get different suggestions from that source and identical suggestions from
the other two.
Related
- Search Widget for the prebuilt UI components
- Retrievers for running the search itself

