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
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
Builds an index from scratch for the current model class.
 Does not run if the index already exists.