module Elasticord::Client::Index

Public Instance Methods

refresh(elastic_search_client, index) click to toggle source
# File lib/elasticord/client/index.rb, line 6
def refresh(elastic_search_client, index)
  begin
    elastic_search_client.indices.refresh index: index
  rescue Elasticsearch::Transport::Transport::Errors::NotFound
    return true
  end
end