Index Document(s)
Index a JSON document or an array of JSON documents (bulk), each consisting of arbitrary key-value pairs to the index with the specified apikey and index_id, and return the number of indexed docs. Index documents enables true real-time search (as opposed to near realtime.search): When in query_index the parameter realtime is set to true then indexed, but uncommitted documents are immediately included in the search results, without requiring a commit or refresh. Therefore a explicit commit_index is almost never required, as it is invoked automatically after 64k documents are indexed per shard or on close_index for persistence.
Path parameters
index id
Headers
YOUR_SECRET_API_KEY
Request body
Response
Document indexed, returns the number of indexed documents
Changes
Changed in 2 of the 11 revisions of this API.2
- ○
api operation id
index_document_apiremoved and replaced withindex_documentapi-operation-id-removed
- ○
- ○
api operation id
index_documentremoved and replaced withindex_document_apiapi-operation-id-removed
- ○