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

Drinks Recommendation Engine #6

Open
gthole opened this issue Oct 13, 2018 · 6 comments
Open

Drinks Recommendation Engine #6

gthole opened this issue Oct 13, 2018 · 6 comments
Labels
enhancement New feature or request

Comments

@gthole
Copy link
Owner

gthole commented Oct 13, 2018

  • Some kind of distance metric between drinks
  • Compare against user ratings
  • Suggestions view
@gthole gthole added the enhancement New feature or request label Oct 13, 2018
@gthole
Copy link
Owner Author

gthole commented Apr 6, 2019

@jelloeggy I added a new operator to the search syntax as a first step on this: LIKE list = favorites, which will find all the recipes that are similar to the ones in a given list (ie have the same or interchangeable ingredients, but possibly different bitters and things) and excludes the recipes that are actually in the list.

On the home page, I changed the "Discover" button to do that search on the user's favorites list instead of the "liquor cabinet" functionality that it had been. So it gets more interesting as you add recipes to your favorites.

You can also use the search syntax to query for other things "LIKE craigie on main" or "LIKE tiki", which will find all the drinks that are similar to those searches but don't exactly match the search. (It does slightly strange things when you do "LIKE ", because you're simultaneously filtering and excluding that ingredient.)

Thoughts?

@jelloeggy
Copy link
Collaborator

jelloeggy commented Apr 6, 2019 via email

@gthole
Copy link
Owner Author

gthole commented Apr 6, 2019

I've been really enjoying it!

Discover just uses favorites for now. It's editable in the url, but I plan to add a select box or something to make it easier. That view really's just a glorified "I'm Feeling Lucky" button. I think the LIKE operator is a lot more useful in the recipes list, and figuring out the search/filter interface to make it more accessible there is something that needs a lot of thought.

@jelloeggy
Copy link
Collaborator

I am very excited to use the Discover feature. My first foray into it (well, just hitting the button, not trying the drink) has been very exciting. But I'm not sure I understand the LIKE operator. Does it only work with lists? I tried "LIKE prosecco" or "LIKE sparkling" and didn't find anything.

@gthole
Copy link
Owner Author

gthole commented Apr 7, 2019

Yep it's weird. LIKE <ingredient> doesn't make much sense as a search because you're saying "give me all the things that have this ingredient, but then exclude all the things that have that ingredient." Since LIKE excludes everything that was in the original search.

It's primarily meant to work with lists, but can also work with description terms. I originally thought I'd make it only work for lists, but I got a little carried away with building the search syntax grammar to support combiners and nested queries and stuff. (Still need to teach it parenthetical precedence, though. :grawesome:)

@jelloeggy
Copy link
Collaborator

Hmm maybe I need a little cheatsheet on the correct syntax to try out. I just tried LIKE list="Fancy as F*ck" but that didn't work. Ah, without the quotes it worked. LIKE list = Porch Time didn't return anything though.

I'll keep playing. I love the idea of it.

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

No branches or pull requests

2 participants