aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/storage.rb')
-rw-r--r--lib/storage.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/storage.rb b/lib/storage.rb
index daa1d1b..304c6e2 100644
--- a/lib/storage.rb
+++ b/lib/storage.rb
@@ -286,6 +286,12 @@ module Ag::Storage
_hide_unhide(list, id, false, comment)
end
+ def flush_index(list)
+ $es.indices.flush(
+ :index: index_name(list),
+ )
+ end
+
def update(list, id, doc_changes)
raise "Invalid update for #{list}/#{id} #{doc_changes}" unless doc_changes.is_a?(Hash)
$es.update(