?_nofacets=1 option, closes #1350

This commit is contained in:
Simon Willison 2021-05-30 22:39:14 -04:00
commit c5ae1197a2
4 changed files with 28 additions and 7 deletions

View file

@ -86,6 +86,8 @@ If Datasette detects that a column is a foreign key, the ``"label"`` property wi
The default number of facet results returned is 30, controlled by the :ref:`setting_default_facet_size` setting. You can increase this on an individual page by adding ``?_facet_size=100`` to the query string, up to a maximum of :ref:`setting_max_returned_rows` (which defaults to 1000).
.. _facets_metadata:
Facets in metadata.json
-----------------------

View file

@ -383,6 +383,9 @@ Special table arguments
``?_facet_size=100``
Increase the number of facet results returned for each facet. Use ``?_facet_size=max`` for the maximum available size, determined by :ref:`setting_max_returned_rows`.
``?_nofacets=1``
Disable all facets and facet suggestions for this page, including any defined by :ref:`facets_metadata`.
``?_trace=1``
Turns on tracing for this page: SQL queries executed during the request will
be gathered and included in the response, either in a new ``"_traces"`` key