To edit pages or tickets please login with username/password: aaf/aaf

Changeset 249

Show
Ignore:
Timestamp:
10/05/07 08:14:22 (1 year ago)
Author:
jk
Message:

dont check ferret_enabled state in bulk_index

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugin/acts_as_ferret/lib/bulk_indexer.rb

    r234 r249  
    1717    def index_records(records, offset) 
    1818      batch_time = measure_time { 
    19         records.each { |rec| @index << rec.to_doc if rec.ferret_enabled?(true)
     19        records.each { |rec| @index << rec.to_doc
    2020      }.to_f 
    2121      @work_done = offset.to_f / @model_count * 100.0 if @model_count > 0 
  • trunk/plugin/acts_as_ferret/lib/class_methods.rb

    r248 r249  
    3737    # re-index a number records specified by the given ids. Use for large 
    3838    # indexing jobs i.e. after modifying a lot of records with Ferret disabled. 
     39    # Please note that the state of Ferret (enabled or disabled at class or 
     40    # record level) is not checked by this method, so if you need to do so 
     41    # (e.g. because of a custom ferret_enabled? implementation), you have to do 
     42    # so yourself. 
    3943    def bulk_index(*ids) 
    4044      options = Hash === ids.last ? ids.pop : {} 

To edit pages or tickets please login with username/password: aaf/aaf