How do I search for a phrase using search logic?
- by fivetwentysix
Imagine case scenario, you have a list of recipes that have ingredients as a text.
You want to see how many recipes contain "sesame oil".
The problem with default searchlogic searching using Recipe.ingredients_like("sesame oil") is that any recipe with sesame OR oil would come up, when I'm searching for sesame+oil.