Using Rails 3.2, Sphinx Search and Thinking Sphinx gem. I have tried wrapping %
and *
, and wildcard, in the keywords in my controller, but can't achieve what I want:
Keywords to search:
- world trade
- worldtrade
- worl trade
- trade world
- trad worl
Expected matched search results:
- World Trade Center
How should I format the keywords in my controller so that I get the expected search result with the different keywords as shown above?