Module: Esearch::Mixin::Document
Overview
Mixin that adds document operations
Instance Method Summary collapse
-
#index(document, options = {}) ⇒ Presenter::Document::Operation::Index
private
Index document.
-
#index_create(document, options = {}) ⇒ Presenter::Document::Operation::Index
private
Create indexed document.
-
#index_update(document, options = {}) ⇒ Presenter::Document::Operation::Index
private
Update indexed document.
Instance Method Details
#index(document, options = {}) ⇒ Presenter::Document::Operation::Index
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Index document
36 37 38 |
# File 'lib/esearch/mixin.rb', line 36 def index(document, = {}) Command::Document::Index.run(self, document, ) end |
#index_create(document, options = {}) ⇒ Presenter::Document::Operation::Index
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create indexed document
49 50 51 |
# File 'lib/esearch/mixin.rb', line 49 def index_create(document, = {}) Command::Document::Index::Create.run(self, document, ) end |
#index_update(document, options = {}) ⇒ Presenter::Document::Operation::Index
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Update indexed document
62 63 64 |
# File 'lib/esearch/mixin.rb', line 62 def index_update(document, = {}) Command::Document::Index::Update.run(self, document, ) end |