# File lib/acts_as_indexed/class_methods.rb, line 161 def build_index return if aai_config.index_file.directory? index = new_index find_in_batches({ :batch_size => 500 }) do |records| index.add_records(records) end end