Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Search V2 API to the fullest #515

Open
8 of 43 tasks
Tracked by #991 ...
teolemon opened this issue Jul 13, 2022 · 6 comments
Open
8 of 43 tasks
Tracked by #991 ...

Implement Search V2 API to the fullest #515

teolemon opened this issue Jul 13, 2022 · 6 comments
Labels
✨ enhancement New feature or request 🔎 Search

Comments

@teolemon
Copy link
Member

teolemon commented Jul 13, 2022

What

Tag types

  • tag:brands - possible values: infinite, json taxo but no autosuggest
  • tag:categories - possible values: finite, json taxo + autosuggest + partial taxo API
  • tag:packaging - display:packaging - packaging
  • tag:labels - possible values: finite, json taxo + autosuggest + partial taxo API
  • tag:origins - display:origins of ingredients - origins of ingredients
  • tag:manufacturing_places - display:manufacturing or processing places - manufacturing or processing places
  • tag:emb_codes - display:packager codes - packager codes
  • tag:purchase_places - display:purchase places - purchase places
  • tag:stores - display:stores - stores
  • tag:countries - possible values: finite (190), json taxo + autosuggest + partial taxo API
  • tag:ingredients -possible values: finite, json taxo + autosuggest + partial taxo API
  • tag:additives - possible values: finite, json taxo + autosuggest + partial taxo API
  • tag:allergens - possible values: finite, json taxo + autosuggest + partial taxo API
  • tag:traces - possible values: finite, json taxo + autosuggest + partial taxo API
  • tag:nutrition_grades possible values: finite (a,b,c,d,e) , json taxo + autosuggest + partial taxo API
  • nova_groups search parameter #539
  • tag:languages - possible values: finite, json taxo + autosuggest + partial taxo API
  • tag:creator - possible values: infinite - we can't really suggest anything (or we have to rely on the facet)
  • tag:editors - possible values: infinite - we can't really suggest anything (or we have to rely on the facet)
  • tag:states - possible values: finite, json taxo + autosuggest + partial taxo API

Output types

Product list

Map

  • map_title
  • my $map = single_param("generate_map") || '';

Graph

  • graph_title
  • axis_x
  • axis_y
  • my $graph = single_param("graph") || '';

Download

  • my $download = single_param("download") || '';

See also

@teolemon
Copy link
Member Author

@teolemon
Copy link
Member Author

@monsieurtanuki I added a normalized tags list

@teolemon
Copy link
Member Author

teolemon commented Jul 23, 2022

additives : with, without, indifferent
We could have a suggested values for those: https://github.com/openfoodfacts/openfoodfacts-dart/blob/55f3fa583a535ec842db87067019ed2933f75a78/lib/model/parameter/TagFilter.dart
like 1,2,3,4 for nova_groups (note those values are available in the taxonomies, most of the time)

@VaiTon VaiTon moved this from To discuss and validate to In Progress in 🤳🥫 The Open Food Facts mobile app (Android & iOS) Oct 6, 2022
@teolemon teolemon added the ✨ enhancement New feature or request label Nov 11, 2022
@teolemon
Copy link
Member Author

I added some missing link to the wiki documentation, that should clarify a number of things

@teolemon
Copy link
Member Author

As a FYI, We're going to swap the backend providing the Product Opener search to the Elastic one, but the API should stay the same.
cc @raphael0202 @alexgarel @monsieurtanuki

@teolemon
Copy link
Member Author

Actually, I just got word that we should aim for the newer API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request 🔎 Search
Development

No branches or pull requests

1 participant