Update Document(s)
Changed onUpdate 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. Update document is a combination of delete_document and index_document. All current limitations of delete_document apply. Update documents enables true real-time search (as opposed to near realtime.search): When in query_index the parameter include_uncommitted 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.
Request
- Base URLhttp://127.0.0.1
- Authnone declared. Required headers: apikey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
index id
Headers
YOUR_SECRET_API_KEY
Request body
Response
Document indexed, returns the number of indexed documents
Changes
- info
api operation id
update_document_apiremoved and replaced withupdate_document
- info
- info
api operation id
update_documentremoved and replaced withupdate_document_api
- info