I am interested to have a search bar that can recognize typos and to show correct data instead. For example if someone writes "reel esttes", to show "real estates". I tried with wixSearch but I am not able to retrieve any information with that from my collection. With query, I don't have the fuzzy parameter.
Thanks a lot!
Hi, great question! I've heard rumors of WixSearch introducing semantic search but that wouldn't hold for a custom search experience.
There are a few approaches I can think of when building a custom search experience -
1. Utilizing AI for semantic search: this would include generating vectors for the searchable data as well as the query. Best done with a vector database.
2. Utilizing an API: I'm imagining an API which takes a term and returns possible alternative spellings. You can then query for those alternatives instead of the misspelled word.
3. Handling it internally: For example if the search term doesn't return any results you can break the search term down and query for those parts. So for bok - no results show up so you query for "bo" and "ok" instead.
These are just off the top of my head but it's an interesting topic to explore! Eitan