I find out that there is no way to make hidden filter (that will not shown in filters UI).
For example, I need to implement custom filter that should be processed for all facets and I want to enable it programmaticaly and hide it from UI. will be this helpful?

P.S. I will try to prepare patch that will implement current functionality,

Comments

cpliakas’s picture

Status: Active » Closed (won't fix)

Hi dolar4ik.

If the filter shouldn't be hidden via the UI, then this is something that seems to be outside of the scope of Facet API and accomplished via the backend module. For example, Apache Solr Search Integration has a "custom filter" textfield where you can apply filters automatically per page via the UI. I'm not sure that Search API has this, but the API is allows you to apply filters in a few lines of code. Respectfully marking this as "won't fix" since this is best tackled in the backend module.

Thanks for the post,
Chris