Even though each request is only for a single facet, we include both _facet_year=creation_date and _facet_array=tags in both requests so that the URLs that get constructed are correct.
If you remove the creation_date facet, the request for the tags facet will have a different set of parameters:
This means that even though we have a perfectly good cached response for this facet, we won't be able to use it.
A possible alternative would be to omit all _facet_* parameters except the facet under consideration, and then teach fixupToggleUrl how to re-add the other columns.
A good solution would also re-add the deleted parameters in the same location to ensure a high cache rate. This feels pretty involved for what is probably not that big of a problem.
We compute facets by making JSON requests, one per each facet.
For example, faceting by creation_date and tags results in these two requests:
Even though each request is only for a single facet, we include both
_facet_year=creation_date
and_facet_array=tags
in both requests so that the URLs that get constructed are correct.If you remove the
creation_date
facet, the request for thetags
facet will have a different set of parameters:This means that even though we have a perfectly good cached response for this facet, we won't be able to use it.
A possible alternative would be to omit all
_facet_*
parameters except the facet under consideration, and then teachfixupToggleUrl
how to re-add the other columns.A good solution would also re-add the deleted parameters in the same location to ensure a high cache rate. This feels pretty involved for what is probably not that big of a problem.