How do I search for a phrase using search logic?
Posted
by fivetwentysix
on Stack Overflow
See other posts from Stack Overflow
or by fivetwentysix
Published on 2010-06-11T03:47:23Z
Indexed on
2010/06/11
3:53 UTC
Read the original article
Hit count: 324
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.
© Stack Overflow or respective owner