Displaying 3 results from an estimated 3 matches for "ferret_reindex".
Did you mean:
ferret_index
2006 Aug 25
7
disabling automatic indexing in acts_as_ferret
I''d like to be able to enable/disable the automatic indexing of
documents acts_as_ferret does. Something like MyModel.disable_indexing
MyModel.enable_indexing would be perfect. I need this because I do some
indexing that requires visiting the parents of the model objects and my
import method imports the children first, so the information isn''t there
yet. I''d like to
2006 Jul 07
0
acts_as_ferret transactions
...ndex.
Thoughts?
Index: lib/acts_as_ferret.rb
===================================================================
--- lib/acts_as_ferret.rb (revision 59)
+++ lib/acts_as_ferret.rb (working copy)
@@ -496,7 +496,8 @@
module InstanceMethods
attr_reader :reindex
- @ferret_reindex = true
+ @ferret_reindex = false
+ @defer_for_transaction = false
def ferret_before_update
@ferret_reindex = true
@@ -505,9 +506,13 @@
# add to index
def ferret_create
- logger.debug "ferret_create/update: #{self.class.name} :
#{s...
2006 May 23
13
acts_as_ferret 0.2.1 segfault
...new_record=true>
>> a.save
./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:466:
[BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-linux]
vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:466 reads:
self.class.ferret_index << self.to_doc if @ferret_reindex
by inserting logger.debug statements I have been able to determine that
self.to_doc isn''t the problem so I think it must be segfaulting during the
<<.
Does someone know if I have set up something improperly, or is this truly a
bug?
Thanks,
John
-------------- next part -------------...