2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"count": {
|
|
|
|
"documentation": "http://elasticsearch.org/guide/reference/api/count/",
|
|
|
|
"methods": ["POST", "GET"],
|
|
|
|
"url": {
|
|
|
|
"path": "/_count",
|
|
|
|
"paths": ["/_count", "/{index}/_count", "/{index}/{type}/_count"],
|
|
|
|
"parts": {
|
|
|
|
"index": {
|
2013-05-26 10:33:31 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of indices to restrict the results"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"type": {
|
2013-05-26 10:33:31 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of types to restrict the results"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"ignore_indices": {
|
2013-05-26 10:33:31 -04:00
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["none","missing"],
|
|
|
|
"default" : "none",
|
|
|
|
"description" : "When performed on multiple indices, allows to ignore `missing` ones"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
2013-05-24 06:02:42 -04:00
|
|
|
"index": {
|
2013-05-26 10:33:31 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of indices to restrict the results"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"min_score": {
|
2013-05-26 10:33:31 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "Include only documents with a specific `_score` value in the result"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"operation_threading": {
|
2013-05-26 10:33:31 -04:00
|
|
|
"description" : "TODO: ?"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"preference": {
|
2013-05-26 10:33:31 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specify the shards the operation should be performed on (default: random shard)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"routing": {
|
2013-05-26 10:33:31 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specific routing value"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"source": {
|
2013-05-26 10:33:31 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The URL-encoded query definition (instead of using the request body)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"type": {
|
2013-05-26 10:33:31 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of document types to restrict the results"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": {
|
2013-05-26 10:33:31 -04:00
|
|
|
"description" : "A query to restrict the results (optional)"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|