ElasticPress icon indicating copy to clipboard operation
ElasticPress copied to clipboard

Autosuggest triggering in all input[type="search"]

Open samikeijonen opened this issue 6 years ago • 3 comments

Is your enhancement related to a problem? Please describe. I think autosuggest triggering in all input[type="search"]. In site there can be other search fields which are not related to ElasticSearch.

Describe the solution you'd like Being able to define which search fields will have autosuggest. This can be class value.

Or set a class which disable autosuggest.

samikeijonen avatar Dec 03 '19 13:12 samikeijonen

Hi, this option already exist on dashboard -> Elasticpress (unless i didn't understand you?) settings

RetroGameTalk avatar Dec 05 '19 12:12 RetroGameTalk

@MediaMaquina Is this for additional fields, not actually replacing the default fields? My hunch is yes but I don't have access to that page in my use case.

samikeijonen avatar Dec 05 '19 16:12 samikeijonen

@samikeijonen that's right, this field doesn't replace default fields, but only adds to them. Default fields currently include .ep-autosuggest, input[type="search"], and .search-field,

mlaroy avatar Dec 10 '19 23:12 mlaroy

FWIW, in #2181 (released in EP 3.6.0) this is possible via code using the ep_autosuggest_default_selectors filter.

felipeelia avatar Nov 22 '22 14:11 felipeelia