# A new, minimal Sphinx gem for Rails

**URL:** <https://www.ruby-forum.com/t/a-new-minimal-sphinx-gem-for-rails/204208>\
**Category:** Rails\
**Created:** [March 7, 2011, 9:18pm UTC](https://www.ruby-forum.com/t/a-new-minimal-sphinx-gem-for-rails/204208 "2011-03-07T21:18:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 7, 2011, 9:18pm UTC](https://www.ruby-forum.com/t/a-new-minimal-sphinx-gem-for-rails/204208/1 "2011-03-07T21:18:00Z")

</div>

Howdy all,

I wanted to share this blog post we just published at Harvest:

> **[Thebes: A New, Minimal Sphinx Gem for Rails - Harvest](https://www.getharvest.com/blog/2011/03/thebes-a-new-minimal-sphinx-gem-for-rails)**
>
> Recently, we’ve been sharing a lot of technical lessons from building our new Help Center and in upgrading Harvest to Rails 3. The gem Harvest is releasing today, Thebes, is at the intersection of both projects. Thebes is a wrapper around Sphinx, the...

If any of you are doing work involving clusters of Sphinx servers or  
with Sphinx under Rails 3, we think this gem is a pretty great fit. The  
approach is to use ERB templating to configure Sphinx instead of a DSL.  
You need to learn the Sphinx configuration syntax, but you get a really  
flexible solution in exchange.

We also support SphinxQL in this gem:

[http://sphinxsearch.com/docs/manual-0.9.9.html#sphinxql](http://sphinxsearch.com/docs/manual-0.9.9.html#sphinxql)

It’s very minimal support, just a wrapper around Mysql2. I looked at  
creating an ARel wrapper, but SphinxQL itself ended up being a bit buggy  
about quotes and escaping values so we moved away from SphinxQL for now.

The gem is published at rubygems and you can find the code at Github:

> **[GitHub - harvesthq/thebes: DEPRECATED - Thebes is a thin binding layer for...](https://github.com/harvesthq/thebes)**
>
> DEPRECATED - Thebes is a thin binding layer for Rails and Sphinx with Riddle - GitHub - harvesthq/thebes: DEPRECATED - Thebes is a thin binding layer for Rails and Sphinx with Riddle

Give it a look and let me know what you think. Thanks,

-Matthew

## –

Matthew B. :: 607 227 0871  
Resume& Portfolio @ [http://madhatted.com](http://madhatted.com)
