Skip to navigation

Algolia Single Query

Algolia’s single-index query, answered from the Captain index of the same name.

Authentication

x-algolia-api-keystring

A Captain key, as Algolia clients send it: a search key for queries, a write key for writes.

x-algolia-application-idstring

Any value; the hostname selects the tenant.

Path parameters

indexstringRequired

Request

This endpoint expects an object.
paramsstringOptional

Response

the query's result
hitslist of objectsOptional
nbHitsintegerOptional

nbHits is the number of hits you can page through (under 1,000, exact; at 1,000 or more, the keyword-match count, never below 1,000, with exhaustiveNbHits false when that is a floor), and facet counts count exact keyword matches.

pageintegerOptional
hitsPerPageintegerOptional
nbPagesintegerOptional
exhaustiveNbHitsbooleanOptional
exhaustiveFacetsCountbooleanOptional
exhaustiveobjectOptional
facetsobjectOptional
facets_statsobjectOptional
querystringOptional
paramsstringOptional
indexstringOptional
processingTimeMSintegerOptional
queryIDstringOptional
send it back on Insights events for this search
renderingContentobjectOptional
captainobjectOptional

Captain’s own details: mode, engine_ms and the like