This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new d66bd96 Add option to create missing index
d66bd96 is described below
commit d66bd96227f85037c0fc4b4ef18c35f83350760c
Author: Sebb <[email protected]>
AuthorDate: Sun Dec 12 16:22:07 2021 +0000
Add option to create missing index
---
tools/plugins/elastic.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/plugins/elastic.py b/tools/plugins/elastic.py
index c3a5b14..eda0c43 100755
--- a/tools/plugins/elastic.py
+++ b/tools/plugins/elastic.py
@@ -210,6 +210,9 @@ class _indices_wrap:
def exists(self, *args, **kwargs):
return self.es.indices.exists(*args, **kwargs)
+ def create(self, *args, **kwargs):
+ return self.es.indices.create(*args, **kwargs)
+
def get_mapping(self, **kwargs):
return self.es.indices.get_mapping(**kwargs)