Skip to main content
min and max return the smallest and largest values of a column, respectively.
See the Tantivy documentation for all available options.

SQL Min/Max Syntax

SQL’s MIN/MAX syntax is supported in beta. To enable it, first run
With this feature enabled, the following query is equivalent to the above and is executed in the same way.
By default, MIN/MAX ignore null values. Use COALESCE to include them in the final sum: