Sha256: 351dd699c7cf31a02be1b60fd6846d833e7f8cc79ceee8f20428d6d0165d6c6d

Contents?: true

Size: 637 Bytes

Versions: 5

Compression:

Stored size: 637 Bytes

Contents

module Elastic
  module AppSearch
    class Client
      module MetaEngines

        ENGINE_TYPE_META = 'meta'.freeze()

        def create_meta_engine(engine_name, source_engines)
          post('engines', :name => engine_name, :type => ENGINE_TYPE_META, :source_engines => source_engines)
        end

        def add_meta_engine_sources(engine_name, source_engines)
          post("engines/#{engine_name}/source_engines", source_engines)
        end

        def delete_meta_engine_sources(engine_name, source_engines)
          delete("engines/#{engine_name}/source_engines", source_engines)
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
elastic-app-search-7.10.0 lib/elastic/app-search/client/meta_engines.rb
elastic-app-search-7.9.0 lib/elastic/app-search/client/meta_engines.rb
elastic-app-search-7.8.0 lib/elastic/app-search/client/meta_engines.rb
elastic-app-search-7.7.0 lib/elastic/app-search/client/meta_engines.rb
elastic-app-search-7.6.0 lib/elastic/app-search/client/meta_engines.rb