In the CatalogController configure_blacklight block
When I am adding a facet field using the config.add_facet_field helper
I should be able to pass a lambda as a value to the include_in_request argument
So I can conditionally add facet fields to the request based on values in context.params, etc.
Discussion:
Blacklight already supports passing a lambda to the if argument to allow for additional logic when displaying the facet in the catalog#index view.
It would be helpful to be able to use this pattern for the include_in_request argument, which would allow limiting the facets on any given request to only those needed, avoiding potentially expensive queries.
In the CatalogController
configure_blacklightblockWhen I am adding a facet field using the
config.add_facet_fieldhelperI should be able to pass a lambda as a value to the
include_in_requestargumentSo I can conditionally add facet fields to the request based on values in
context.params, etc.Discussion:
Blacklight already supports passing a lambda to the
ifargument to allow for additional logic when displaying the facet in the catalog#index view.It would be helpful to be able to use this pattern for the
include_in_requestargument, which would allow limiting the facets on any given request to only those needed, avoiding potentially expensive queries.