instantsearch icon indicating copy to clipboard operation
instantsearch copied to clipboard

[refinementList] New option to keep current search after click

Open cmalard opened this issue 7 years ago • 7 comments

Do you want to request a feature or report a bug? feature

Feature: What is your use case for such a feature?

  • I want to select many results that start the same
  • I have to write them each time because the search is cleared screen

Feature: What is your proposed API entry? The new option to add? What is the behavior? Add an option to keep the search after a click

What is the version you are using? Always use the latest one before opening a bug issue. 2.2

cmalard avatar Nov 08 '17 16:11 cmalard

Thanks @cmalard for this feature proposal. From what I understand, being able to select multiple using a single search of facet values would make sense. Do you have time to dig in the code and contribute a PR for this new feature?

bobylito avatar Nov 08 '17 16:11 bobylito

Not for now, but as soon as it is available I will use it ! :-)

cmalard avatar Nov 08 '17 17:11 cmalard

Ok good to know. Thanks :)

bobylito avatar Nov 09 '17 09:11 bobylito

Btw @mthuret you might be interested in that :)

bobylito avatar Nov 09 '17 09:11 bobylito

@bobylito thanks for notifying me! Indeed I think that would be a great addition to our widgets having search for facets.

mthuret avatar Nov 09 '17 09:11 mthuret

Hi All! In addition to seconding the request of @cmalard, here's a related use case. Feel free to disregard this if you don't think others would benefit.

  1. Example: search "insignia" in the facet search box at https://codesandbox.io/s/5yr601pk2p image

Per the feature request above, we'd be able to click on each of the three facets without having to search again.

  1. Add-on feature requests:
  • would adding a mechanism to select all of the facet search results be possible? In the example above, that would mean selecting all three facets matching "insignia" without having to click three times. I ask because my facet data has a very long tail of data that has not been standardized (i.e. many relevant results per likely facet search term).

  • would providing an option to revise the behavior after a user hits enter be possible? right now, hitting enter retrieves the top facet result. Maybe in some circumstances retrieving all matching results might be a better fit?

u3804 avatar Jul 01 '18 13:07 u3804

Thanks for your input, we're not going to work on that right away but I've notified the product team :)

bobylito avatar Jul 02 '18 10:07 bobylito