openfoodfacts / robotoff

🤖 Real-time and batch prediction service for Open Food Facts
https://openfoodfacts.github.io/robotoff/
GNU Affero General Public License v3.0
79 stars 54 forks source link

Logo search does not support the `taxonomy_value` field #1339

Open alexfauquette opened 5 months ago

alexfauquette commented 5 months ago

https://robotoff.openfoodfacts.org/api/v1/images/logos/search/?type=brand&count=25&random=true&value=cora

returns tons of logos

https://robotoff.openfoodfacts.org/api/v1/images/logos/search/?type=brand&count=25&random=true&taxonomy_value=en:cora

return nothing

Context

I implemented the use of search-a-lisiouse for brand and found that using the taxonomy id do not work

cornzyblack commented 5 months ago

Hi @alexfauquette, the following.

https://robotoff.openfoodfacts.org/api/v1/images/logos/search/?type=brand&count=25&random=true&taxonomy_value=Cora

or

https://robotoff.openfoodfacts.org/api/v1/images/logos/search/?type=brand&count=25&random=true&taxonomy_value=cora

seems to work for me

Is there a reason why the en:cora was used instead of cora in the URL ?