-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Labels
Description
Hi,
A faceted search page in an application I am working on requires that the filter that is applied on the items acts as a conjunction of category disjunctions.
For example,
Having the following items -
items = [
{a: 1, b: 2},
{a: 2, b: 3}
{a: 2, b: 2} ]
With the following filters -
filters = {a: [1, 2], b: [2]}
My desired result would be = [
{a: 1, b: 2},
{a: 2, b: 2} ]
But actually I get = [
{a: 1, b: 2},
{a: 2, b: 3}
{a: 2, b: 2} ]
In other words I'm trying to get (a in (1,2) AND b = 2) but getting (a in (1,2) OR b = 2)...
I am unsure how (if possible) this can be done, and will appreciate some assistance. 😄
Thanks,
Ittai.