Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ambition adapter for Sphinx
branch: paging

This branch is 14 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


An Ambitious Sphinx Adapter

I don't know about you, but I like me some sexy full-text searching.

Want to find all meals that mention bacon? {'bacon'}

What about bacon bits and sour cream? {'bacon bits' && 'sour cream'}

Maybe with bacon in the name, or cheese in the recipe? {|m| =~ 'bacon' || m.recipe =~ 'cheese'}

Cheese in the name, but not grilled? {|m| =~ 'bacon' && !~ 'grilled'}

### Big honking disclaimer

We're still learning a lot about how sphinx and ambition work, so things are likely to change a lot.

### Getting Started

You will need the following gems to use ambitious-sphinx:

  gem install ambition
  gem install ultrasphinx

  Now install it as ambitious-sphinx:

    sudo rake install
  Require our files somewhere, like at the end of config/environment.rb
    require 'ambition/adapters/ambitious_sphinx'
  You will also need to go through the motions of setting up ultrasphinx. This includes setting up sphinx itself, and modifying your model to indicate what's to be indexed, and so on.

### Playing with the code base

In addition to the other dependencies, you'll need:

  gem install echoe redgreen mocha test-spec
Run the tests with:
  rake test

### More information on Sphinx:


### More information on Ambition:

Something went wrong with that request. Please try again.