-
-
Notifications
You must be signed in to change notification settings - Fork 564
Labels
Description
What
- When filtering for nutriments, wrong results appear not following the defined filters.
Steps to reproduce the behavior
- Go to the wiki: https://wiki.openfoodfacts.org/Open_Food_Facts_Search_API_Version_2
- On the wiki, there is an example to get sugars_serving > 10
- Click on the given link: https://world.openfoodfacts.org/api/v2/search?categories_tags=en:sodas&sugars_serving%3E10g&fields=code,product_name,sugars_serving
- The search results show products with less than 10g of sugar per serving
Expected behavior
- The result does not show product with more less than or equal to 10g of sugar per serving.
Why
- As this is a very crucial functionality in searching for products
Screenshot/Mockup/Before-After
{ "count": 554, "page": 1, "page_count": 20, "page_size": 20, "products": [ { "code": "54491472", "product_name": "coca cola 500ml", "sugars_serving": 53 }, { "code": "5449000131836", "product_name": "Zero Sugar", "sugars_serving": 0 }]}
Part of
Type of device
- Browser: Chrome
- Postman
- Python requests
Number of products impacted
ALL
Time per product
A lot
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
To discuss and validate
Status
To do