Right now the has_filter method of the query class does not have an option to match the #exclude parameter of a filter, which seems like an API failure. This would be especially helpful for facet queries.

I propose that we add a 3rd param with a default NULL value. The behavior in the case of NULL would be like now - it matches either value of #exclude, but if it's set it would only return true if that value matches as well.

Comments

jpmckinney’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Fix in HEAD first

pwolanin’s picture

Just noticed this again when working on project_solr.

jpmckinney’s picture

Category: bug » task
pwolanin’s picture

Status: Active » Fixed

already done in 7.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.