-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Hi 👋
Description
"or" operator don't work within a refinement list.
Current behavior
When I click on a refinement list, only the options that have a document in common with the option selected are shown - even if the refinement list is set with the "or" operator.
So - when I have a refinement list with exclusive options (ie. none is shared by a document - in a belong_to/has_one association), I can only display a single option within the refinement list.
But - with the "or" operator, I'd like to see other options as well that I can select, so I can select two different options from the refinement list and see the documents that have either one or the other.
Screenshots or Logs
searchBrands.addWidget(
panelForIndustries({
container: "#categories",
attribute: "industry.name",
showMore: true,
autoHideContainer: true,
keepZeroFacets: true,
operator: "or"
})
);
Behaviour - I have industries to search on brands. Each brand can only have one industry.
Before selecting anything:
Here's what I'd like as a result (using Algolia, which set the default operator as "or" - so I can select and view results from two different industries - as I would expect using the "or" attribute)
Here's the actual result by Meilisearch (the default operator being "and" - and the setting in the RefinementList doesn't seem to work)
Environment (please complete the following information):
- Meilisearch version: MeiliSearch 0.27.1
- instant-meilisearch version: https://cdn.jsdelivr.net/npm/@meilisearch/instant-meilisearch/dist/instant-meilisearch.umd.min.js
- instantsearch.js version: InstantSearch.js 4.43.0


