Skip to main content
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

limit is per source, not per response. With all three sources answering, a limit of 10 can return up to 30 entries in suggestions. Size your UI against the total rather than the parameter.At most 5 fields are consulted. Passing more does not fail the request, so a sixth field simply never contributes suggestions and nothing says so. Each field also needs a keyword index to be searchable.

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.