Find Similar Records

Find records similar to one record in the same index.

Authentication

AuthorizationBearer

A search key, issued by Captain. Sent as Authorization: Bearer <key>.

OR
AuthorizationBearer

A scoped key for one end user, minted from an issuer key that Captain issues. Sent as Authorization: Bearer <key>.

Path parameters

indexstringRequiredformat: "^[a-z0-9][a-z0-9_-]{0,47}$"
index name

Request

This endpoint expects an object.
idstringRequired
kintegerOptional<=50Defaults to 10
filterstringOptional
fieldsboolean or list of stringsOptional

Response

results
hitslist of objectsOptional
totalintegerOptional

matching records (with group_by too: records, not groups)

groupedobjectOptional

present when results are grouped. The ranking is today’s, collapsed by the field’s value over the top depth candidates (k x size x 4, at most 100)

facetsmap from strings to lists of objectsOptional
facets_exactbooleanOptional
facet_set_sizeintegerOptional
query_idstringOptional
query_understandingobjectOptional

what the engine understood. Keys appear only when they apply; keys not listed here are diagnostics and may change

constraints_removedintegerOptional

constraints: strict: hits removed because a parsed quantity failed. hits [] with this > 0 means nothing meets the query’s quantities

sortobjectOptional

search with sort: which field and over what set

pageobjectOptional

search with page or per_page

facet_queryobjectOptional
facet_statsmap from strings to objectsOptional
requestobjectOptional
timingobjectOptional
© 2026 Captain