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 24d8ec5 Allow access to mappings
24d8ec5 is described below
commit 24d8ec5006b2ef64de27ee24a0809b5c232080aa
Author: Sebb <[email protected]>
AuthorDate: Fri Nov 12 00:58:45 2021 +0000
Allow access to mappings
---
tools/plugins/elastic.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/plugins/elastic.py b/tools/plugins/elastic.py
index 70b1b3b..7ad0403 100755
--- a/tools/plugins/elastic.py
+++ b/tools/plugins/elastic.py
@@ -190,3 +190,9 @@ class Elastic:
when terminating scrolling early.
"""
return self.es.clear_scroll(*args, **kwargs)
+
+ def get_mapping(self, **kwargs):
+ return self.es.indices.get_mapping(**kwargs)
+
+ def put_mapping(self, **kwargs):
+ return self.es.indices.put_mapping(**kwargs)