newmanrs / cloudburst-graph

Creating a beer and hop graph from Cloudburst Brewing Seattle's beer descriptions with visuals in Neo4j and Neo4j Bloom
MIT License
2 stars 0 forks source link

Support multiple-word hop names in description matching #1

Closed newmanrs closed 3 years ago

newmanrs commented 3 years ago

Vic Secret, Nelson Sauvin, Idaho 7, etc. need more advanced matching than the crude split descriptions on individual words and set intersection with the hop list.

newmanrs commented 3 years ago

Update: Will probably remove this soon when merging my naive hoplist source of data with data pulled from Yakima Chief. The matching logic can likely then be done in the database itself using a contains query rather than the single word matching currently done in python using sets as the initial proof of concept. YC doesn't have all hops, but when it does there are aroma notes and a description so it's a better data set for now.

match (h:YC_Hop)
with h.name as name
match (b:Beer)
where b.description contains name
return name, b.description