count
Count the points in a collection.
Parameters
exact
an exact count (default) vs a faster approximate one.
Throws
if the collection does not exist.
if the API key is missing or wrong.
if the request exceeds the configured timeout.
on a connection failure or server error.
abstract suspend fun count(name: String, exact: Boolean = true, filter: FilterBuilder.() -> Unit): Long
Count the points in a collection that match a filter.
val n = qdrant.count("docs") { must { "lang" eq "en" } }Content copied to clipboard
Throws
if the collection does not exist.