You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2020/08/21 22:20:50 UTC
[incubator-ponymail-foal] branch master updated: Local index method
no longer exists
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 414703e Local index method no longer exists
414703e is described below
commit 414703e707c3dc59bbf7ab80484f9f3054e6e07f
Author: Sebb <se...@apache.org>
AuthorDate: Fri Aug 21 23:20:31 2020 +0100
Local index method no longer exists
---
tools/archiver.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tools/archiver.py b/tools/archiver.py
index c505af4..1163cb0 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -481,19 +481,19 @@ class Archiver(object): # N.B. Also used by import-mbox.py
try:
if contents:
for key in contents:
- self.index(
+ self.elastic.index(
index=self.elastic.db_attachment,
id=key,
body={"source": contents[key]},
)
- self.index(
+ self.elastic.index(
index=self.elastic.db_mbox,
id=ojson["mid"],
body=ojson,
)
- self.index(
+ self.elastic.index(
index=self.elastic.db_source,
id=sha3,
body={
@@ -566,7 +566,7 @@ class Archiver(object): # N.B. Also used by import-mbox.py
if doc:
oldrefs.append(cid)
# N.B. no index is supplied, so ES will generate one
- self.index(
+ self.elastic.index(
index=self.elastic.db_notification,
body={
"type": "direct",