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 (
Josh Nichols (author)
Thu Feb 07 12:25:56 -0800 2008
commit c629eb5cfdb2fe8d79017da6f277d201f3c8c41a
tree 4ede5165c09e3c2fa6d1ee6f9429fed13a561adf
parent 39c5237fbbaf832aa14eb6af436c5909c141e637
tree 4ede5165c09e3c2fa6d1ee6f9429fed13a561adf
parent 39c5237fbbaf832aa14eb6af436c5909c141e637
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Jan 24 19:12:53 -0800 2008 | [Josh Nichols] |
| |
LICENSE | Wed Jan 30 22:02:56 -0800 2008 | [Josh Nichols] |
| |
Manifest | Thu Jan 24 19:11:00 -0800 2008 | [Josh Nichols] |
| |
README | Thu Jan 31 08:04:19 -0800 2008 | [Josh Nichols] |
| |
Rakefile | Wed Jan 30 22:04:22 -0800 2008 | [Josh Nichols] |
| |
config/ | Thu Jan 24 19:11:00 -0800 2008 | [Josh Nichols] |
| |
lib/ | Thu Feb 07 12:24:10 -0800 2008 | [Josh Nichols] |
| |
test/ | Thu Feb 07 12:25:56 -0800 2008 | [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/




