2013-05-26 10:42:19 -04:00
{
"delete_by_query" : {
2015-03-24 12:03:35 -04:00
"documentation" : "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html" ,
2013-05-26 10:42:19 -04:00
"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-12-11 18:30:12 -05:00
"ignore_unavailable" : {
"type" : "boolean" ,
"description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
} ,
"allow_no_indices" : {
"type" : "boolean" ,
"description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"
} ,
"expand_wildcards" : {
"type" : "enum" ,
2015-01-23 10:03:17 -05:00
"options" : [ "open" , "closed" , "none" , "all" ] ,
2013-12-11 18:30:12 -05:00
"default" : "open" ,
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
2013-05-26 10:42:19 -04:00
} ,
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" : {
2013-12-17 08:20:00 -05:00
"description" : "A query to restrict the operation specified with the Query DSL"
2013-05-26 10:42:19 -04:00
}
}
}