Module: Chewy::Index::Aliases::ClassMethods
- Defined in:
- lib/chewy/index/aliases.rb
Instance Method Summary collapse
Instance Method Details
#aliases ⇒ Object
13 14 15 16 17 |
# File 'lib/chewy/index/aliases.rb', line 13 def aliases client.indices.get_alias(index: index_name, name: '*')[index_name].try(:[], 'aliases').try(:keys) || [] rescue Elasticsearch::Transport::Transport::Errors::NotFound [] end |
#indexes ⇒ Object
7 8 9 10 11 |
# File 'lib/chewy/index/aliases.rb', line 7 def indexes client.indices.get_alias(name: index_name).keys rescue Elasticsearch::Transport::Transport::Errors::NotFound [] end |