Documentation for facet_size in metadata, closes #1804

This commit is contained in:
Simon Willison 2022-09-06 11:06:49 -07:00
commit 0a7815d203

View file

@ -129,6 +129,22 @@ You can specify :ref:`array <facet_by_json_array>` or :ref:`date <facet_by_date>
]
}
You can change the default facet size (the number of results shown for each facet) for a table using ``facet_size``:
.. code-block:: json
{
"databases": {
"sf-trees": {
"tables": {
"Street_Tree_List": {
"facets": ["qLegalStatus"],
"facet_size": 10
}
}
}
}
}
Suggested facets
----------------