module Esearch::Mixin::Document
Mixin
that adds document operations
Public Instance Methods
index(document, options = {})
click to toggle source
Index
document
@param [Document] document @param [Hash] options
@return [Presenter::Document::Operation::Index]
@api private
# File lib/esearch/mixin.rb, line 38 def index(document, options = {}) Command::Document::Index.run(self, document, options) end
index_create(document, options = {})
click to toggle source
Create indexed document
@param [Document] document @param [Hash] options
@return [Presenter::Document::Operation::Index]
@api private
# File lib/esearch/mixin.rb, line 51 def index_create(document, options = {}) Command::Document::Index::Create.run(self, document, options) end
index_update(document, options = {})
click to toggle source
Update indexed document
@param [Document] document @param [Hash] options
@return [Presenter::Document::Operation::Index]
@api private
# File lib/esearch/mixin.rb, line 64 def index_update(document, options = {}) Command::Document::Index::Update.run(self, document, options) end