Module: Legion::Extensions::ElasticAppSearch::Runners::Schemas
- Includes:
- Helpers::Client, Helpers::Lex
- Defined in:
- lib/legion/extensions/elastic_app_search/runners/schemas.rb
Instance Method Summary collapse
Methods included from Helpers::Client
Instance Method Details
#get(engine:, **opts) ⇒ Object
8 9 10 |
# File 'lib/legion/extensions/elastic_app_search/runners/schemas.rb', line 8 def get(engine:, **opts) client(opts).get_schema(engine) end |
#update(engine:, field:, type:, **opts) ⇒ Object
12 13 14 15 16 |
# File 'lib/legion/extensions/elastic_app_search/runners/schemas.rb', line 12 def update(engine:, field:, type:, **opts) update = {} update[field.to_sym] = type client(opts).update_schema(engine, update) end |