This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 68437f4becda9392b8f50e7011a1d4f6505230ab
tree 08e9b7a87604d124eb2f9f3ebc6e2a6696d8f980
parent 235b70df3e2e54e0fe9b1977a0760b48c3b2f5a0
tree 08e9b7a87604d124eb2f9f3ebc6e2a6696d8f980
parent 235b70df3e2e54e0fe9b1977a0760b48c3b2f5a0
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Jan 24 19:12:53 -0800 2008 | [Josh Nichols] |
| |
LICENSE | Tue Feb 12 19:13:52 -0800 2008 | [Josh Nichols] |
| |
Manifest | Thu Jan 24 19:11:00 -0800 2008 | [Josh Nichols] |
| |
README | Tue Feb 12 17:45:48 -0800 2008 | [Josh Nichols] |
| |
Rakefile | Fri Feb 15 12:58:55 -0800 2008 | [technicalpickles] |
| |
config/ | Thu Jan 24 19:11:00 -0800 2008 | [Josh Nichols] |
| |
lib/ | Mon Feb 18 16:43:34 -0800 2008 | [technicalpickles] |
| |
test/ | Mon Feb 18 16:42:41 -0800 2008 | [technicalpickles] |
README
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?
Meal.select {'bacon'}
What about bacon bits and sour cream?
Meal.select {'bacon bits' && 'sour cream'}
Maybe with bacon in the name, or cheese in the recipe?
Meal.select {|m| m.name =~ 'bacon' || m.recipe =~ 'cheese'}
Cheese in the name, but not grilled?
Meal.select {|m| m.name =~ 'bacon' && m.name !~ '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:
-> 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/




