Closed mauricioszabo closed 12 years ago
Hi Mauricio, Solr doesn't support queries starting with * or ?.
About the quotes, I will look this, thanks for the feedback.
I know it doesn't support, so I thing it should return an empty resultset... otherwise, I would need to catch every "search" on my controller, as every search could raise an exception. Don't know if there is a better way, throught.
Additionally, parenthesis cause issues. A special sanitize method is needed.
Ok, will try to implement this. A pull request would be great, too :)
We can close this now :)
Model.search doesn't sanitize string. If I try any search with quotes (Model.search 'Me"') or starting with wildcards ("*" or "?"), it raises an error.