mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Documentation for facet_size in metadata, closes #1804
This commit is contained in:
parent
303c6c733d
commit
0a7815d203
1 changed files with 16 additions and 0 deletions
|
|
@ -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
|
Suggested facets
|
||||||
----------------
|
----------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue