Module: ElasticSearch::Api::DefaultScope
- Included in:
- Client
- Defined in:
- lib/elasticsearch/client/default_scope.rb
Instance Method Summary collapse
- #default_index ⇒ Object
- #default_index=(index) ⇒ Object
- #default_type ⇒ Object
- #default_type=(type) ⇒ Object
Instance Method Details
#default_index ⇒ Object
4 5 6 |
# File 'lib/elasticsearch/client/default_scope.rb', line 4 def default_index @default_index ||= @options[:index] end |
#default_index=(index) ⇒ Object
8 9 10 |
# File 'lib/elasticsearch/client/default_scope.rb', line 8 def default_index=(index) @default_index = index end |
#default_type ⇒ Object
12 13 14 |
# File 'lib/elasticsearch/client/default_scope.rb', line 12 def default_type @default_type ||= @options[:type] end |
#default_type=(type) ⇒ Object
16 17 18 |
# File 'lib/elasticsearch/client/default_scope.rb', line 16 def default_type=(type) @default_type = type end |