-
-
Notifications
You must be signed in to change notification settings - Fork 6
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 complex filtering on the code (startswith, endswith, contains, regex) #242
Comments
@raphodn in my refactor PR, I added better support for wildcard. So as long as you have a keyword field (like the code) you will be able do:
For regexp matching I don't remember if luqum supports it and I'm not sure if it's a good idea to activate it ;-) (I have to re-read ES considerations on it, we could maybe also make it configurable, so that it's activated only on certain field (thanks to luqum it's easy to check for that)). |
Did a quick test :
|
Story
For Open Prices - https://github.com/openfoodfacts/open-prices - when adding prices, we sometimes struggle to read the barcodes on our proof images. See related Slack discussion here
A feature that would help is additional filtering on the
code
field, such as :Examples
search?code__match=X000X00179X64
search?code__contains=81714&brand=Picard
The text was updated successfully, but these errors were encountered: