Skip to main content
The following query counts the number of values in a field:
Expected Response
See the Tantivy documentation for all available options.

SQL Count Syntax

SQL’s COUNT syntax is supported in beta and is enabled by default. To disable it, run
The following query is equivalent to the above and is executed in the same way.
SQL
To count all rows, including rows with null values, use COUNT(*):
SQL