Sha256: d0bbf89d2fd2ba0096e91c3b47de2087f198174be3ffbe0979c4c3ef161d722f

Contents?: true

Size: 520 Bytes

Versions: 7

Compression:

Stored size: 520 Bytes

Contents

# Schema API - https://swiftype.com/documentation/app-search/api/schema
module Elastic
  module AppSearch
    class Client
      module Schema

        # Retrieve schema for the current engine.
        def get_schema(engine_name)
          get("engines/#{engine_name}/schema")
        end

        # Create a new schema field or update existing schema for the current engine.
        def update_schema(engine_name, schema)
          post("engines/#{engine_name}/schema", schema)
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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