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

Ingredient based recipe selection feature #195

Open
rubikscuber opened this issue Jul 10, 2023 · 3 comments
Open

Ingredient based recipe selection feature #195

rubikscuber opened this issue Jul 10, 2023 · 3 comments

Comments

@rubikscuber
Copy link
Contributor

As a user I would like to be able to select a few ingredients that I have at home and get a filter for all the recipes that include this list, so that I can find recipes to cook without the need to search each ingredient after the other.

There is a nice implementation done in the drinkable app - see second and third screenshot: drinkable app fdroid

@flauschtrud
Copy link
Owner

You can actually search for multiple ingredients at once. The native search that comes with the database is actually quite good (although it unfortunately can't find prefixes and suffixes at its current state).

The title, description, URL and ingredient list are indexed. So you can search for multiple ingredients, specific URLs in combination with ingredients, hashtags and so on. You can also filter by category first and then do your search.

So you can already accomplish quite a lot without the need for an ingredient management system. Does this help with your usecase?

@rubikscuber
Copy link
Contributor Author

Well, yes this does kind of solve my very basic usecase.
However, this does not reflect the "synonyms"/plurals for some ingredients. E.g. if I search for "Karotten" I do not get recipes with "Möhren" - or in case I would import an English recipe - it would also not match "carrots" - unless my testcase was not good.

Furthermore, it would be nice to not have to think about the query, but just select the parsed (or predefined by the app) ingredients in a list. This list could then be the basis of another filter "from ingredients".
Also the hastag feature is nice, I did only try it after I read it here. Here I could imagine a similar feature as well (list+selection of hashtags instead of only a single hashtag). I know that this is possible using the search, so it would be just more convenient.

I get that the feature might be confusing at first - especially with no recipes imported.

@flauschtrud
Copy link
Owner

Yes, the synonyms are tough. Theoretically the search index could be built including synonyms but I think that does not make sense without accessing an online service which provides the synonyms.

Regarding the hashtags: I just created an issue for collecting ideas for improving stuff like this #197 Would be happy to hear if you have anything more to add to this.

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

No branches or pull requests

2 participants