Manticore Search · Schema

deleteDocumentRequest

Payload for delete request. Documents can be deleted either one by one by specifying the document id or by providing a query object. For more information see [Delete API](https://manual.manticoresearch.com/Deleting_documents)

SearchFull-Text SearchVector SearchElasticsearch CompatibleOpen SourceDatabase

Properties

Name Type Description
table string Table name
cluster string Cluster name
id integer The ID of document for deletion
query object Defines the criteria to match documents for deletion
View JSON Schema on GitHub

JSON Schema

deleteDocumentRequest.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/manticore/main/json-schema/deleteDocumentRequest.json",
  "title": "deleteDocumentRequest",
  "description": "Payload for delete request.\nDocuments can be deleted either one by one by specifying the document id or by providing a query object.\nFor more information see  [Delete API](https://manual.manticoresearch.com/Deleting_documents)\n",
  "type": "object",
  "required": [
    "table"
  ],
  "properties": {
    "table": {
      "type": "string",
      "description": "Table name"
    },
    "cluster": {
      "type": "string",
      "description": "Cluster name"
    },
    "id": {
      "type": "integer",
      "format": "uint64",
      "description": "The ID of document for deletion"
    },
    "query": {
      "type": "object",
      "description": "Defines the criteria to match documents for deletion"
    }
  },
  "example": {
    "table": "test",
    "id": 1
  }
}