Create Index
Authentication
A write key, issued by Captain. Server side only. Sent as Authorization: Bearer <key>.
Headers
Replays within 24 hours return the stored response (header Idempotent-Replayed: true). The same key on a different request answers 422. A concurrent duplicate answers 409. Failed requests do not keep the key.
Request
field holding each record’s unique id (objectID is accepted when this is id)
how many records this index will hold: the tenant’s capacity forecast counts it at once, so a resize can start before the upload lands (real records take over once they pass it)
Response
Create Index only: the field that holds each record’s id
empty: no records yet. pending: changes were accepted and are being applied. building: Captain is refreshing suggestions and spelling in the background, and search serves as usual. ready: every change is applied.
the same value as record_count, under its older name
the same value as record_count, under its older name
the same value as pending_changes, under its older name
true for an index with typed fields: every index Create Index makes, and an Algolia import sent with object_search true. Settings apply to these
the build search serves; null before the first one
unix seconds the serving build finished; null when nothing is served, or for a build whose finish time was not recorded