Class: Esearch::Index
- Inherits:
-
Object
- Object
- Esearch::Index
- Includes:
- Adamantium::Flat, Mixin::Exist, Mixin::Index, Mixin::Search
- Defined in:
- lib/esearch/index.rb
Overview
Driver for specific index
Instance Attribute Summary collapse
-
#connection ⇒ Connection
readonly
private
Return connection.
Instance Method Summary collapse
-
#create(settings) ⇒ Presenter::Index::Create
private
Cretate remote index.
-
#delete ⇒ Presenter::Index::Delete
private
Delete remote index.
-
#path ⇒ Pathname
private
Return path.
-
#type(name) ⇒ Type
private
Return type for index.
Methods included from Mixin::Exist
Methods included from Mixin::Search
Methods included from Mixin::Index
Instance Attribute Details
#connection ⇒ Connection (readonly)
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.
Return connection
15 16 17 |
# File 'lib/esearch/index.rb', line 15 def connection @connection end |
Instance Method Details
#create(settings) ⇒ Presenter::Index::Create
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.
Cretate remote index
25 26 27 |
# File 'lib/esearch/index.rb', line 25 def create(settings) Command::Index::Create.run(self, settings) end |
#delete ⇒ Presenter::Index::Delete
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.
Delete remote index
35 36 37 |
# File 'lib/esearch/index.rb', line 35 def delete Command::Index::Delete.run(self) end |
#path ⇒ Pathname
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.
Return path
57 58 59 |
# File 'lib/esearch/index.rb', line 57 def path Pathname.new("/#{name}") end |