Module: Elasticsearch::Model::Extensions::BatchUpdating

Defined in:
lib/elasticsearch/model/extensions/batch_updating.rb

Defined Under Namespace

Modules: Association, ClassMethods

Constant Summary collapse

DEFAULT_BATCH_SIZE =
100

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/elasticsearch/model/extensions/batch_updating.rb', line 9

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