algolia / algolia/algoliasearch-client-php

Mimic the facets behavior like React / JS libraries

Open
#661 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
697
Forks
112
PR merge metrics
No merged PRs in 30d

Description

- 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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported facet response with the PHP client 2.x after selecting one size, using data with multiple color, size, and brand options. Compare the result with the stated React/JavaScript behavior and verify the expected OR-versus-AND semantics; done means the PHP client returns the same available facet options as the React library.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.