Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Cannot refine on several values of a conjunctive facet #72

Closed
redox opened this issue May 11, 2015 · 1 comment
Closed

Cannot refine on several values of a conjunctive facet #72

redox opened this issue May 11, 2015 · 1 comment
Assignees
Milestone

Comments

@redox
Copy link
Contributor

redox commented May 11, 2015

Since V2, you cannot refine on several values of a facet anymore. This is possible as soon as you have a multi-valued attribute and want to AND several refinements.

Instead of

m.facetsRefinements[ facet ] = value;

we need something like:

m.facetsRefinements[ facet ] = m.facetsRefinements[ facet ] || [];
m.facetsRefinements[ facet ].push(value);
@bobylito bobylito added the v2 label May 12, 2015
@bobylito bobylito added this to the 2.0.3 milestone May 12, 2015
@bobylito
Copy link
Contributor

same as #51

bobylito added a commit that referenced this issue May 13, 2015
dhayab pushed a commit to algolia/instantsearch that referenced this issue Jul 10, 2023
dhayab pushed a commit to algolia/instantsearch that referenced this issue Jul 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants