Skip to content

Conjunction between categries #77

@ittocean

Description

@ittocean

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions