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 24716b9 Not used, and clashes with ES7 library
24716b9 is described below
commit 24716b9dd90a0fec5572bfb09dddeb90359502d8
Author: Sebb <[email protected]>
AuthorDate: Fri Nov 12 00:46:00 2021 +0000
Not used, and clashes with ES7 library
---
tools/plugins/elastic.py | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/tools/plugins/elastic.py b/tools/plugins/elastic.py
index 8dca607..70b1b3b 100755
--- a/tools/plugins/elastic.py
+++ b/tools/plugins/elastic.py
@@ -108,9 +108,6 @@ class Elastic:
else:
raise Exception("Unexpected elasticsearch version ",
es_engine_major)
- # Mimic ES hierarchy: es.indices.xyz()
- self.indices = _indices_wrap(self)
-
@staticmethod
def libraryVersion():
return ES_VERSION
@@ -193,15 +190,3 @@ class Elastic:
when terminating scrolling early.
"""
return self.es.clear_scroll(*args, **kwargs)
-
-
-class _indices_wrap:
- """
- Wrapper for the ES indices methods we use
- """
-
- def __init__(self, parent):
- self.es = parent.es
-
- def exists(self, *args, **kwargs):
- return self.es.indices.exists(*args, **kwargs)