public
Fork of frabcus/acts_as_xapian
Description: Xapian full text search plugin for Ruby on Rails
Homepage: http://github.com/frabcus/acts_as_xapian/wikis
Clone URL: git://github.com/boone/acts_as_xapian.git
Search Repo:
Updated documentation.
boone (author)
Thu May 15 22:35:16 -0700 2008
commit  a23c6d1df44c4074dd957af6369c88b9d18b1660
tree    b064a5343689717952ae129f943507d13334cb68
parent  9fc8d615eb680b50b8e51042158db56c17957f1f
...
88
89
90
91
 
92
93
94
...
111
112
113
114
115
 
 
 
 
116
117
118
...
437
438
439
 
440
441
442
...
449
450
451
452
 
453
454
455
...
88
89
90
 
91
92
93
94
...
111
112
113
 
 
114
115
116
117
118
119
120
...
439
440
441
442
443
444
445
...
452
453
454
 
455
456
457
458
0
@@ -88,7 +88,7 @@
0
 # e.g. :texts => [ :title, :body ]
0
 # :values, things which have a range of values for indexing, or for collapsing.
0
 # Specify an array quadruple of [ field, identifier, prefix, type ] where
0
-# - number is an arbitary numeric identifier for use in the Xapian database
0
+# - identifier is an arbitary numeric identifier for use in the Xapian database
0
 # - prefix is the part to use in search queries that goes before the :
0
 # - type can be any of :string, :number or :date
0
 # e.g. :values => [ [ :created_at, 0, "created_at" ], [ :size, 1, "size"] ]
0
@@ -111,8 +111,10 @@
0
 # :if, either an attribute or a function which if returns false means the
0
 # object isn't indexed
0
 #
0
-# 2. Make and run the migration to create the ActsAsXapianJob model, code below
0
-# (search for ActsAsXapianJob).
0
+# 2. Make and run the migration to create the ActsAsXapianJob model:
0
+# script/generate acts_as_xapian
0
+#
0
+# (Or see code below in under ActsAsXapianJob).
0
 #
0
 # 3. Call 'rake xapian::rebuild_index models="ModelName1 ModelName2"' to build the index
0
 # the first time (you must specify all your indexed models). It's put in a
0
@@ -437,6 +439,7 @@ module ActsAsXapian
0
     # Index
0
    
0
     # Offline indexing job queue model, create with this migration:
0
+ # (or use script/generate acts_as_xapian)
0
     # class ActsAsXapianMigration < ActiveRecord::Migration
0
     # def self.up
0
     # create_table :acts_as_xapian_jobs do |t|
0
@@ -449,7 +452,7 @@ module ActsAsXapian
0
     # end
0
     #
0
     # def self.down
0
- # remove_table :acts_as_xapian_jobs
0
+ # drop_table :acts_as_xapian_jobs
0
     # end
0
     # end
0
     class ActsAsXapianJob < ActiveRecord::Base

Comments

    No one has commented yet.