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
38 39 40 |
# File 'lib/esearch/mixin.rb', line 38 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
51 52 53 |
# File 'lib/esearch/mixin.rb', line 51 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
64 65 66 |
# File 'lib/esearch/mixin.rb', line 64 def index_update(document, = {}) Command::Document::Index::Update.run(self, document, ) end |