Module: Legion::Extensions::ElasticAppSearch::Runners::Documents
- Includes:
- Helpers::Client, Helpers::Lex
- Defined in:
- lib/legion/extensions/elastic_app_search/runners/documents.rb
Instance Method Summary collapse
- #create(engine:, documents:, **opts) ⇒ Object
- #delete(engine:, document_ids:, **opts) ⇒ Object
- #get(engine:, document_ids:, **opts) ⇒ Object
- #list(engine:, **opts) ⇒ Object
- #update(engine:, documents:, **opts) ⇒ Object
Methods included from Helpers::Client
Instance Method Details
#create(engine:, documents:, **opts) ⇒ Object
8 9 10 |
# File 'lib/legion/extensions/elastic_app_search/runners/documents.rb', line 8 def create(engine:, documents:, **opts) client(opts).index_documents(engine, documents) end |
#delete(engine:, document_ids:, **opts) ⇒ Object
24 25 26 |
# File 'lib/legion/extensions/elastic_app_search/runners/documents.rb', line 24 def delete(engine:, document_ids:, **opts) client(opts).destroy_documents(engine, document_ids) end |
#get(engine:, document_ids:, **opts) ⇒ Object
16 17 18 |
# File 'lib/legion/extensions/elastic_app_search/runners/documents.rb', line 16 def get(engine:, document_ids:, **opts) client(opts).get_documents(engine, document_ids) end |
#list(engine:, **opts) ⇒ Object
20 21 22 |
# File 'lib/legion/extensions/elastic_app_search/runners/documents.rb', line 20 def list(engine:, **opts) client(opts).list_documents(engine) end |
#update(engine:, documents:, **opts) ⇒ Object
12 13 14 |
# File 'lib/legion/extensions/elastic_app_search/runners/documents.rb', line 12 def update(engine:, documents:, **opts) client(opts).update_documents(engine, documents) end |