I\'m using sunspot. How can I run a LIKE query (LIKE %q%)? I would like to do something like this:
sunspot
LIKE
LIKE %q%
@search = Sunspot.
If you use the standard DisMax handler, it does not support wildcards. You have 2 options:
a. Activate EdgeNGramFilter:
.. ..
b. Use nightly build Solr with EDismax Handler.
See wiki article on sunspot docs or similar question on SO.