Payload for updating a document or multiple documents in an index
Name | Type | Description | Notes |
---|---|---|---|
index | str | Name of the document index | |
cluster | str | Name of the document cluster | [optional] |
doc | object | Object containing the document fields to update | |
id | int | Document ID | [optional] |
query | QueryFilter | [optional] |
from manticoresearch.models.update_document_request import UpdateDocumentRequest
# create an instance of UpdateDocumentRequest from a JSON string
update_document_request_instance = UpdateDocumentRequest.from_json(json)
# print the JSON string representation of the object
print(UpdateDocumentRequest.to_json())
# convert the object into a dict
update_document_request_dict = update_document_request_instance.to_dict()
# create an instance of UpdateDocumentRequest from a dict
update_document_request_from_dict = UpdateDocumentRequest.from_dict(update_document_request_dict)