Count points

POST
Counts the number of points that match a specified filtering condition.

Path parameters

collection_namestringRequired
Name of the collection to count in

Request

This endpoint expects an object.
shard_keystring or integer or list of strings or integers or anyOptional
Specify in which shards to look for the points, if not specified - look in all shards
filterobject or anyOptional
Look only for points which satisfies this conditions
exactbooleanOptional
If true, count exact number of points. If false, count approximate number of points faster. Approximate count might be unreliable during the indexing process. Default: true

Response

This endpoint returns an object.
timedoubleOptional
Time spent to process this request
statusstringOptional
resultobjectOptional