You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/09/11 01:43:09 UTC

[incubator-ponymail-foal] branch master updated: OF: source needs to use dbid as document ID

This is an automated email from the ASF dual-hosted git repository.

humbedooh 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 bfe621a  OF: source needs to use dbid as document ID
bfe621a is described below

commit bfe621a4a301fbe3ca913f45e878b35e0db25bc2
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Sep 10 20:43:06 2021 -0500

    OF: source needs to use dbid as document ID
---
 tools/push-failures.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/push-failures.py b/tools/push-failures.py
index 910e45f..d10d7ec 100755
--- a/tools/push-failures.py
+++ b/tools/push-failures.py
@@ -54,7 +54,7 @@ for f in files:
                 mid = ojson["mbox"]["mid"]
             elastic.index(index=elastic.db_mbox, id=mid, body=ojson["mbox"])
 
-            elastic.index(index=elastic.db_source, id=mid, body=ojson["mbox_source"])
+            elastic.index(index=elastic.db_source, id=ojson["mbox"]["dbid"], body=ojson["mbox_source"])
 
             if "attachments" in ojson and ojson["attachments"]:
                 for k, v in ojson["attachments"].items():