Clone of Thinking Sphinx 1.1.20 (https://github.com/pat/thinking-sphinx)