Filtering by multiple facets #5341
-
How do you implement a refinement list where each option does a filter on multiple facets? For instance, I might have a list of courses I want to filter and each course has a start date and a deadline to enroll. I want a refinement widget that has options to filter by start date (i.e. in <2 weeks, in <3 weeks, etc.) and these filters will filter courses if both the start date and deadline are within the filter. How do I do this using React Hooks? Reading the docs, I don't see a way to do this easily. In https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/how-to/filter-by-date/, it says I can do something like
to filter by date but what is Do I need to create a custom widget? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You may be looking for either NumericMenu / useNumericMenu or useRange |
Beta Was this translation helpful? Give feedback.
-
Looks like if you can't filter by multiple attributes. You have to put it into one https://discourse.algolia.com/t/filtering-by-multiple-facets/16611/2 |
Beta Was this translation helpful? Give feedback.
Looks like if you can't filter by multiple attributes. You have to put it into one
https://discourse.algolia.com/t/filtering-by-multiple-facets/16611/2