This topic is about React-Instantsearch
I am looking to add a widget to refine my search based on a specific attribute. It would be used like this by a user:
- The user do a search with the searchbox on all attributes of my records
- The user refine results with another searchbox that will search on a specific attribute
I found the widget RefineList with the property “withSearchBox” but the user has to select manually found items like this:
(here, I have to select manually “bathroom and bedroom”. I would like the widget to automatically refine the results with the search “b” on the selected attribute.
I tried to customize the “toggleconnector” without success:
I managed to search on a specific attribute but this search is very strict and works only if I enter exactly the correct content of the attribute.
I guess that searchForItems with a customconnector may be the solution but I have a lot of difficulties to understand how customconnector works.
Any idea of a quick solution ?
I did it very easily with searchkit and elasticsearch using the composant:
This is a very basic feature and it would be great to have a widget for this.