I’m building a small website to buy some kids clothes. Overall the search works great except, I’d like to search for the size of a product with just a single character or a fuzzy search to ensure I get all similar sizes back.
Example…
- Product A – 5/6T
- Product B – 5T
- Product C – 6T
I want to get Product A and Product B…
- If I search “5” I get No Results.
- If I search “5T” I get Product B.
I want to get Product A and Product C…
- If I search “6” I get No Results.
- If I search “6T” I get Product A and Product C.
So my questions are…
- Is it possible to search with a single character some how?
- If not, how might I implement a fuzzy search so that a search for 5T will pull back Product A and Product B?
- Or, do you have a suggestion on how to better structure my size field?
Thanks!