mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-20 03:45:02 +00:00
The following APIs now accept the query in a top level `query` field like: * delete_by_query * validate_query * count These APIs used to accept the query directly in the request body which was inconsistent with the search and explain APIs. For this reason t Closes #4074
48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
|
"count": {
|
|
"documentation": "http://elasticsearch.org/guide/reference/api/count/",
|
|
"methods": ["POST", "GET"],
|
|
"url": {
|
|
"path": "/_count",
|
|
"paths": ["/_count", "/{index}/_count", "/{index}/{type}/_count"],
|
|
"parts": {
|
|
"index": {
|
|
"type" : "list",
|
|
"description" : "A comma-separated list of indices to restrict the results"
|
|
},
|
|
"type": {
|
|
"type" : "list",
|
|
"description" : "A comma-separated list of types to restrict the results"
|
|
}
|
|
},
|
|
"params": {
|
|
"ignore_indices": {
|
|
"type" : "enum",
|
|
"options" : ["none","missing"],
|
|
"default" : "none",
|
|
"description" : "When performed on multiple indices, allows to ignore `missing` ones"
|
|
},
|
|
"min_score": {
|
|
"type" : "number",
|
|
"description" : "Include only documents with a specific `_score` value in the result"
|
|
},
|
|
"preference": {
|
|
"type" : "string",
|
|
"description" : "Specify the node or shard the operation should be performed on (default: random)"
|
|
},
|
|
"routing": {
|
|
"type" : "string",
|
|
"description" : "Specific routing value"
|
|
},
|
|
"source": {
|
|
"type" : "string",
|
|
"description" : "The URL-encoded query definition (instead of using the request body)"
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"description" : "A query to restrict the results specified with the Query DSL (optional)"
|
|
}
|
|
}
|
|
}
|