Changing Filter Type on React's Instantsearch Client
TLDR Rushil asked how to change the Filter in react's instantsearch. Jason recommended using the label
or value
prop.
Powered by Struct AI
2
13mo
Solved
Sep 21, 2022 (13 months ago)
Rushil
Rushil
07:35 PMOn the instantsearch client on react how would I change the Filter from true/false to say a string that filters by the same value on the client side only
Jason
Jason
07:44 PMYou want to use the
label
prop or value
prop as needed: https://www.algolia.com/doc/api-reference/widgets/toggle-refinement/react/#widget-param-labelTypesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2779 threads (79% resolved)
Similar Threads
Combining ReactInstant Search Widgets with React Hook Form Version
Uma asks if they can combine ReactInstant Search widgets with React Hook Form version widgets. Jason suggests asking in the Instantsearch github repo, but suspects they'd need to switch all widgets to the hooks version.
6
4mo
Connecting React Instant Search with Typesense Adapter
KARTHICK sought help with an error when using Typesense Adapter for React Instant Search. Jason advised substituting import statements. After uninstalling the react-instantsearch-dom package, KARTHICK resolved the issue.
10
4mo
Solved
Switching Search Client Modes with react-instantsearch-dom
Zeyu asked about switching searchClient modes. Jason suggested re-instantiating Instantsearch.js and dynamically rendering widgets on button click.
5
4mo
Solved