openfoodfacts / openfoodfacts-dart

Open Food Facts API Wrapper
https://pub.dev/packages/openfoodfacts
Apache License 2.0
162 stars 66 forks source link

Missing suggestions with autocomplete (= `Häagen-Dazs` case) #930

Open g123k opened 5 months ago

g123k commented 5 months ago

Hi everyone!

In the app, we use the autocomplete feature to list brand names. But there is an issue with accentuated characters (e.g.: with "Häagen-Dazs").

When we call the autocomplete method, with Haa as a query, it never suggests Häagen-Dazs. Is there a way to bypass the strict matching?

monsieurtanuki commented 5 months ago

Is there a way to bypass the strict matching?

I suggest you forward that issue to https://search.openfoodfacts.org/docs#/default/taxonomy_autocomplete_autocomplete_get because even with a "fuzziness" of "2" (default is none) we cannot transform ä into a (looking for brand in en).

g123k commented 5 months ago

Is there a way to bypass the strict matching?

I suggest you forward that issue to search.openfoodfacts.org/docs#/default/taxonomy_autocomplete_autocomplete_get because even with a "fuzziness" of "2" (default is none) we cannot transform ä into a (looking for brand in en).

Ok, I will open an issue on the dedicated repo 👍