module Elasticsearch::Model::Extensions::BatchUpdating

Constants

DEFAULT_BATCH_SIZE

Public Class Methods

included(klass) click to toggle source
# File lib/elasticsearch/model/extensions/batch_updating.rb, line 10
def self.included(klass)
  klass.extend ClassMethods

  unless klass.respond_to? :with_indexed_tables_included
    class << klass
      def with_indexed_tables_included
        raise "#{self}.with_indexed_tables_included is not implemented."
      end
    end
  end

  unless klass.respond_to? :elasticsearch_hosts
    class << klass
      def elasticsearch_hosts
        raise "#{self}.elasticsearch_hosts is not implemented."
      end
    end
  end
end