public
Description: Ambition adapter for Sphinx
Clone URL: git://github.com/technicalpickles/ambitious-sphinx.git
Josh Nichols (author)
Thu Feb 07 10:44:21 -0800 2008
commit  d94038ab3af70ce0ac51b39a78dab428e2daf381
tree    039c5844ea34ba56531cebcb5560c545f97de884
parent  aedc169984f52dc8372977b58cc7df0a114ee17a
name age message
file .gitignore Thu Jan 24 19:12:53 -0800 2008 Ignore .gemspecs. [Josh Nichols]
file LICENSE Wed Jan 30 22:02:56 -0800 2008 Updated docs, added real license. [Josh Nichols]
file Manifest Thu Jan 24 19:11:00 -0800 2008 Imported ambitious sphinx. [Josh Nichols]
file README Thu Jan 31 08:04:19 -0800 2008 More readme. [Josh Nichols]
file Rakefile Wed Jan 30 22:04:22 -0800 2008 Added dependency on ultrasphinx. [Josh Nichols]
directory config/ Thu Jan 24 19:11:00 -0800 2008 Imported ambitious sphinx. [Josh Nichols]
directory lib/ Thu Feb 07 10:44:21 -0800 2008 Use %Q to avoid escaping quotes. [Josh Nichols]
directory test/ Thu Feb 07 10:40:24 -0800 2008 Solved the great russian quoting mystery of 1942. [Josh Nichols]
README
An Ambitious Sphinx Adapter
===========================

Ever want to do some sexy full text searching?

How about finding all tweets that have "Obama" in the any of its attributes?

Tweet.select { "Obama" }

What about tweets with "McCain" and "Clinton"?

Tweet.select { "McCain" && "Clinton" }

"Edwards" or "Huckabee" ?

Tweet.select { "Edwards" || "Huckabee" }


### Big honking disclaimer



### 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:

 -> http://www.sphinxsearch.com/
 -> http://blog.evanweaver.com/articles/2007/07/09/ultrasphinx-searching-the-world-in-231-seconds/
 -> http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/files/README.html

### More information on Ambition:

-> http://ambition.rubyforge.org
-> http://groups.google.com/group/ambition-rb/