10up / ElasticPress

A fast and flexible search and query engine for WordPress.
https://elasticpress.io
GNU General Public License v2.0
1.25k stars 313 forks source link

I need some modification in elastic-press autosuggestion search. #3482

Open RAHULPATILG opened 1 year ago

RAHULPATILG commented 1 year ago

Hello, I am wordpress developer, I am using elastic-press search from long time and it works fine, But I have requirement regarding the elastic-press search bar autosuggestion search box: - So, when we search into the search bar, The search bar display the autosuggestion box. So the problem is that when we click on it the autosuggestion box get disable. Now I need some modification in it, as per my requirement I want is that when we click on the autosuggestion box it should not disable it should hold the autosuggestion box until we click anywhere except autosuggestion box.

JakePT commented 1 year ago

Hi @RAHULPATILG, what I think you're describing is not currently possible with any of the hooks available in Autosuggest. Can I ask you to elaborate on your use case? Typically the only things you can click inside the autosuggest box are the results themselves, so you would be navigated to that result and there wouldn't be any reason to keep the box open.

felipeelia commented 1 year ago

As we didn’t have any movement on this issue for a week now, we are closing it. If you still want any further help, please let us know. Otherwise, if you’ve managed to get an answer to your problem, we’d highly appreciate it if you could get back to us here and leave the solution in a comment. Thanks!

ravikantdk commented 1 year ago

Hi @JakePT I'm also looking for the same feature.

  1. When the user enters a keyword in the search bar, autosuggestion comes & visible until the search bar has focus, thereafter if the search bar comes in focus it does not show his previous result however keyword is still present there, the user has to re-enter the same keyword.
  2. We are also thinking to open the product link on a new tab, which means if the user revisits his previous tab then the autosuggestions container should be there unless the search bar focus is removed.
  3. Also will add "add to cart" button in the autosuggestion product list, so the user can quickly add it to the cart and make quick checkout. & if the autosuggestion container gets hidden every time and the user has to re-enter the keyword again and again.

Kindly consider implementing this in your next upcoming release, this would really enhance the user experience.

Please consider reopening this issue else let me know I'll open a new thread.

Thanks.