aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
index 3babcbd5d..0de80c24b 100644
--- a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
+++ b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
@@ -113,8 +113,10 @@ module ActsAsXapian
raise "acts_as_xapian hasn't been called in any models" if @@init_values.empty?
# if DB is not nil, then we're already initialised, so don't do it again
- # XXX we need to reopen!
- #return unless @@db.nil?
+ # XXX we need to reopen the database each time, so Xapian gets changes to it.
+ # Hopefully in later version of Xapian it will autodetect this, and this can
+ # be commented back in again.
+ # return unless @@db.nil?
prepare_environment