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

Allow for advanced search queries #307

Closed
teolemon opened this issue Nov 29, 2021 · 1 comment · Fixed by #313
Closed

Allow for advanced search queries #307

teolemon opened this issue Nov 29, 2021 · 1 comment · Fixed by #313
Assignees

Comments

@teolemon
Copy link
Member

teolemon commented Nov 29, 2021

Ensure the search.pl route is able to handle all of those parameters and values for tag_N
https://openfoodfacts.github.io/api-documentation/#jump-5Filtering-SEARCHparameters

List of TagTypes


brands
categories
packaging
labels
origins
manufacturing_places
emb_codes
purchase_places
stores
countries
additives
allergens
traces
nutrition_grades
states
contains
does_not_contain

  | <option value="ingredients" label="ingredients">ingredients</option>

  | <option value="nova_groups" label="NOVA groups">NOVA groups</option>
  |  
  | <option value="languages" label="languages">languages</option>
  |  
  | <option value="creator" label="contributors">contributors</option>
  |  
  | <option value="editors" label="editors">editors</option>
  |  
  | <option value="lang" label="main language">main language</option>


@monsieurtanuki monsieurtanuki self-assigned this Dec 12, 2021
monsieurtanuki added a commit to monsieurtanuki/openfoodfacts-dart that referenced this issue Dec 12, 2021
…rameters

Impacted files:
* `api_searchProduct_test.dart`: additional tests on all `TagFilterType`s; refactoring
* `TagFilter.dart`: added more explicit `enum TagFilterType` as filter types
monsieurtanuki added a commit that referenced this issue Dec 12, 2021
Impacted files:
* `api_searchProduct_test.dart`: additional tests on all `TagFilterType`s; refactoring
* `TagFilter.dart`: added more explicit `enum TagFilterType` as filter types
@monsieurtanuki
Copy link
Contributor

Done by #313.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants