GET /:handle/autocomplete
Combined autocomplete: searches document titles and optionally searches facet value names in a single request. When facets is provided, each field’s values are searched by name (substring match), not aggregated from matching documents.
Parameter Type Default Description qstring""Autocomplete query prefix. perPagenumber5Maximum number of document hits to return (1–20). facetsstring— Comma-separated list of facet fields to search values by name. maxFacetsPerFieldnumber4Maximum facet values returned per field (1–20).
"_index" : " museum_collections " ,
{ "value" : " Scotland " , "count" : 18 }
Field Type Description hitsSearchHit[]Array of matching documents. totalHitsnumberTotal number of matching documents. facetsRecord<string, FacetValue[]>?Facet values matching the query by name (when facets param is provided).
Only hits, totalHits, and optionally facets are returned — no page, perPage, totalPages, or suggestions.
curl " https://search-api-elysia-production.up.railway.app/collections/autocomplete?q=ston "
curl " https://search-api-elysia-production.up.railway.app/collections/autocomplete?q=cas&perPage=3 "
# With facet value search
curl " https://search-api-elysia-production.up.railway.app/collections/autocomplete?q=sc&facets=country,region "
# More facet values per field
curl " https://search-api-elysia-production.up.railway.app/collections/autocomplete?q=sc&facets=country&maxFacetsPerField=8 "
Status Condition 401Missing or invalid bearer token 404Index handle not found