lib/searchkick/index.rb in searchkick-4.4.2 vs lib/searchkick/index.rb in searchkick-4.4.3
- old
+ new
@@ -103,10 +103,10 @@
def all_indices(unaliased: false)
indices =
begin
if client.indices.respond_to?(:get_alias)
- client.indices.get_alias
+ client.indices.get_alias(index: "#{name}*")
else
client.indices.get_aliases
end
rescue Elasticsearch::Transport::Transport::Errors::NotFound
{}