You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Faceted search uses JSON array elements as facets rather than the arrays. However, if a search is "Apply"ed (using the Apply button), the array itself rather than its elements used.
Press "Apply", which might be done when removing a filter. Notice that the "tags" facet values are now arrays, not array elements. It appears the "&_facet_array=tags" element of the query string is dropped.
The text was updated successfully, but these errors were encountered:
mhalle
changed the title
JSON arrays lose faceted elements when search is applied
JSON arrays rather than array elements are used when search is applied
Sep 12, 2020
simonw
changed the title
JSON arrays rather than array elements are used when search is applied
Currently selected array facets are not correctly persisted through hidden form fields
Sep 12, 2020
Faceted search uses JSON array elements as facets rather than the arrays. However, if a search is "Apply"ed (using the Apply button), the array itself rather than its elements used.
To reproduce:
https://latest.datasette.io/fixtures/facetable?_sort=pk&_facet=created&_facet=tags&_facet_array=tags
Press "Apply", which might be done when removing a filter. Notice that the "tags" facet values are now arrays, not array elements. It appears the "&_facet_array=tags" element of the query string is dropped.
The text was updated successfully, but these errors were encountered: