pat/thinking-sphinx — pull request #379 by jrust (2012-09-05 21:27:55+00:00)
Title: #excerpts_for should send raw query string to riddle

Noticed a problem where the search term "reading comprehension" was not highlighting the word "comprehension". Turns out TS was passing the stemmed word, in this case "comprehens", and GetExcerpts was then re-stemming that to "comprehen" and not finding anything to highlight for that word.

According to the [sphinx docs](http://sphinxsearch.com/docs/current.html#api-func-buildexcerpts) for GetExcerpts:

> $words is a string that contains the keywords to highlight. They will be processed with respect to index settings. For instance, if English stemming is enabled in the index, "shoes" will be highlighted even if keyword is "shoe"

Also, passing the raw query to riddle will allow the use of the `:query_mode` parameter to be used effectively.