Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.25 KB

InsertDocumentRequest.md

File metadata and controls

31 lines (22 loc) · 1.25 KB

InsertDocumentRequest

Object containing data for inserting a new document into the index

Properties

Name Type Description Notes
index str Name of the index to insert the document into
cluster str Name of the cluster to insert the document into [optional]
id int Document ID. If not provided, an ID will be auto-generated [optional]
doc object Object containing document data

Example

from manticoresearch.models.insert_document_request import InsertDocumentRequest

# create an instance of InsertDocumentRequest from a JSON string
insert_document_request_instance = InsertDocumentRequest.from_json(json)
# print the JSON string representation of the object
print(InsertDocumentRequest.to_json())

# convert the object into a dict
insert_document_request_dict = insert_document_request_instance.to_dict()
# create an instance of InsertDocumentRequest from a dict
insert_document_request_from_dict = InsertDocumentRequest.from_dict(insert_document_request_dict)

[Back to Model list] [Back to API list] [Back to README]