2013-05-26 10:42:19 -04:00
|
|
|
{
|
|
|
|
"delete_by_query": {
|
|
|
|
"documentation": "http://www.elasticsearch.org/guide/reference/api/delete-by-query/",
|
|
|
|
"methods": ["DELETE"],
|
|
|
|
"url": {
|
|
|
|
"path": "/{index}/_query",
|
|
|
|
"paths": ["/{index}/_query", "/{index}/{type}/_query"],
|
|
|
|
"parts": {
|
|
|
|
"index": {
|
|
|
|
"type" : "list",
|
2013-06-09 15:17:29 -04:00
|
|
|
"required": true,
|
2013-06-22 10:55:03 -04:00
|
|
|
"description" : "A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices"
|
2013-05-26 10:42:19 -04:00
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of types to restrict the operation"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2013-06-22 11:04:21 -04:00
|
|
|
"analyzer": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "The analyzer to use for the query string"
|
|
|
|
},
|
2013-05-26 10:42:19 -04:00
|
|
|
"consistency": {
|
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["one", "quorum", "all"],
|
|
|
|
"description" : "Specific write consistency setting for the operation"
|
|
|
|
},
|
2013-06-22 11:04:21 -04:00
|
|
|
"default_operator": {
|
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["AND","OR"],
|
|
|
|
"default" : "OR",
|
|
|
|
"description" : "The default operator for query string query (AND or OR)"
|
|
|
|
},
|
|
|
|
"df": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "The field to use as default where no field prefix is given in the query string"
|
|
|
|
},
|
2013-05-26 10:42:19 -04:00
|
|
|
"ignore_indices": {
|
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["none","missing"],
|
|
|
|
"default" : "none",
|
|
|
|
"description" : "When performed on multiple indices, allows to ignore `missing` ones"
|
|
|
|
},
|
|
|
|
"replication": {
|
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["sync","async"],
|
|
|
|
"default" : "sync",
|
|
|
|
"description" : "Specific replication type"
|
|
|
|
},
|
2013-06-22 11:04:21 -04:00
|
|
|
"q": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Query in the Lucene query string syntax"
|
|
|
|
},
|
2013-05-26 10:42:19 -04:00
|
|
|
"routing": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specific routing value"
|
|
|
|
},
|
|
|
|
"source": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "The URL-encoded query definition (instead of using the request body)"
|
|
|
|
},
|
|
|
|
"timeout": {
|
|
|
|
"type" : "time",
|
|
|
|
"description" : "Explicit operation timeout"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"description" : "A query to restrict the operation"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|