Hi - I have an issue where when searching for "App...
# community-help
d
Hi - I have an issue where when searching for "Apple airpods pro 3", I am unable to surface products named "Airpod pros 3". I've tried doing "drop_tokens_threshold=50" in an attempt to make the search more loose, however, I've got too many other products that match. If I set the threshold to 250 or something, it'll surface, but thats too many results. I've set "Apple, Apple Airpods" as a synonym as a temporary solution, but this is just 1 example of many. And has become a major issue for searching products as I collect more data, I'm unable to surface product data that I have. What other things can I try to get this to work?
cc; @Alan Martini
🙌 1
Btw @Alan Martini this is what I was trying to achieve by adding embedding - https://typesense.org/docs/guide/semantic-search.html#step-2-index-your-json-data Based on the docs, shouldn’t I able to just search “Apple AirPods Pro 3” and get the results I need to surface?
It looks like it does more than just generating filters using AI
a
@Denny Vuong I managed a decent result, in my opinion, using just the normal search. q: Apple airpods pro 3 query_by: name drop_tokens_threshold=50 But it only worked when using query_by with name. There isn't a brand_name with the value Airpods pro 3, so it will never surface.
d
With drop tokens 50, should products with the name “airpods pro 3” surface after the products with name “apple AirPods Pro 3” are all shown?
a
Yes. But in this case, it will match items that have all these tokens in whatever order, then show the ones with the next token dropped. I can see the 60th result still have all the tokens in "apple airpods pro 3", so the token is never dropped.