public
Description: Ambition adapter for Sphinx
Clone URL: git://github.com/technicalpickles/ambitious-sphinx.git
README updates.
Fri Feb 29 17:30:16 -0800 2008
commit  c10f14778f8346128fceacdf03749c4556eb6e69
tree    6d08690ae375ea4f89235a74776447a6f1e3a6b3
parent  c2cade9d26c6980f024518de484dcfa917b91edd
0
...
2
3
4
 
 
5
6
7
...
17
18
19
20
21
22
 
23
24
 
25
26
 
27
 
 
28
29
30
31
 
32
33
34
 
35
36
 
37
38
39
 
40
41
 
42
43
44
...
2
3
4
5
6
7
8
9
...
19
20
21
 
22
 
23
24
 
25
26
 
27
28
29
30
31
 
 
 
32
33
 
 
34
35
 
36
37
 
38
39
40
 
41
42
43
44
0
@@ -2,6 +2,8 @@
0
 
0
 I don't know about you, but I like me some sexy full-text searching.
0
 
0
+== The basics
0
+
0
 Want to find all meals that mention bacon?
0
 
0
   Meal.select {'bacon'}
0
@@ -17,28 +19,26 @@ Maybe with bacon in the name, or cheese in the recipe?
0
 Cheese in the name, but not grilled?
0
 
0
   Meal.select {|m| m.name =~ 'bacon' && m.name !~ 'grilled'}
0
-
0
 
0
-== Big honking disclaimer
0
+== Pagination
0
 
0
-We're still learning a lot about how sphinx and ambition work, so things are likely to change a lot, and features are likely to be missing.
0
+You're going to want to use pagination. Ultrasphinx, the underlying library, only supports it, as in, you can't just get all the objects matching your query. You _have_ to use paging.
0
 
0
-== Getting Started
0
+It's pretty simple:
0
 
0
+ Meal.select {'bacon'}.page(2)
0
+ Meal.select {'bacon'}.page(3)
0
 
0
-=== Dependencies
0
-
0
-You will need the following gems to use ambitious-sphinx:
0
+== Big honking disclaimer
0
 
0
- gem install ambition
0
- gem install ultrasphinx
0
+We're still learning a lot about how sphinx and ambition work, so things are likely to change a lot, and features are likely to be missing.
0
 
0
-=== Our stuff
0
+== Getting Started
0
 
0
-We don't have a gem yet, so presumably you'll do a clone of our git repo. Then you need to install it:
0
 
0
+=== Installing
0
 
0
- sudo rake install
0
+ sudo gem install ambitious-sphinx
0
   
0
 === Add it to your app
0
     

Comments

    No one has commented yet.