search-ui icon indicating copy to clipboard operation
search-ui copied to clipboard

Make `autocompleteSuggestions` and `autocompleteResults` consider `initialState`

Open janoschherrmann opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. I want to use Search UI's autocompleteSuggestions and autocompleteResults to make search-as-you-type suggestions for our users. There are some default filters that I'm applying to the search results through initialState, but these filters don't affect autocompleteSuggestions and autocompleteResults.

Describe the solution you'd like As an example, consider an index with content in different languages. I'd love to set a language default in initialState, to be able to show autocompleteSuggestions and autocompleteResults in the relevant language only.

Describe alternatives you've considered As far as I know, the only alternative would be to implement a custom connector.

See also: https://app.slack.com/client/TNLBGCXTQ/CNRDU3JAG/thread/CNRDU3JAG-1664356510.297319

janoschherrmann avatar Sep 28 '22 11:09 janoschherrmann