Skip to content

Mimic the facets behavior like React / JS libraries #661

@nikunjkotecha

Description

@nikunjkotecha
  • Algolia Client Version: 1.x but verified the issue in 2.x (latest) as well
  • Language Version: PHP 7.3

Description

When trying to filter using facets, we display all possible options from current facet when using React library (behaves like OR). For PHP client it returns only selected facet (behaves like AND even before selecting second facet in same field).

Steps To Reproduce

  • Create at-least three facets, for example color, size, brand
  • Ensure we have enough data to have multiple filter options in each facet
  • Select one size and observe the facets data in response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions