serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
52 stars 5 forks source link

[Playground UX] Location autocomplete is not working #1267

Open hilmanski opened 10 months ago

hilmanski commented 10 months ago

A user reported that upon searching (typing) a location, the suggestion is not showing up. I was able to replicate this.

CleanShot 2023-12-06 at 12 44 22

We have to type "Australia" entirely to be able to see the suggestion.

It happens both on the landing page and our playground. It could leave an impression that we don't support a specific location.

Expected behavior: Upon typing >= 3 letters, the suggestion should show up.

Intercom

djsegal commented 10 months ago

For reference, image below shows how autocomplete is only returning searches with a partial exact match, i.e. Port-au-Prince or Aust-Agder

Screenshot 2023-12-06 at 11 49 07 AM
hilmanski commented 9 months ago

After investigating it, I believe we need to update our search method on this line since it looks up to the keys attribute https://github.com/serpapi/SerpApi/blob/master/app/models/location.rb#L36