README.rdoc in xapian_db-1.1.1 vs README.rdoc in xapian_db-1.1.2
- old
+ new
@@ -136,10 +136,10 @@
blueprint.index :some_stuff
end
If you use associations in your blueprints, it might be a good idea to specify a base query to speed up rebuild_xapian_index calls (avoiding 1+n queries):
-XapianDb::DocumentBlueprint.setup(Person) do |blueprint|
+ XapianDb::DocumentBlueprint.setup(Person) do |blueprint|
blueprint.index :addresses
blueprint.base_query Person.includes(:addresses)
end
place these configurations either into the corresponding class or - I prefer to have the index configurations outside