Commit 56e03fdd authored by Dylan Griffith's avatar Dylan Griffith Committed by Mark Chao

Add comment explaining Elastic refresh_index

parent 6bdf92f0
......@@ -47,6 +47,9 @@ module Gitlab
Project.__elasticsearch__.version(version).delete_index!
end
# Calls Elasticsearch refresh API to ensure data is searchable
# immediately.
# https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html
def self.refresh_index
Project.__elasticsearch__.refresh_index!
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment