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 e7ee2b5 ES: exclude => excludes
e7ee2b5 is described below
commit e7ee2b5a227ff2003b74b1ec9863bc1b188d12c5
Author: Sebb <[email protected]>
AuthorDate: Wed Nov 10 14:48:43 2021 +0000
ES: exclude => excludes
This fixes #125
---
server/plugins/messages.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/plugins/messages.py b/server/plugins/messages.py
index ca4d32a..fa46d0a 100644
--- a/server/plugins/messages.py
+++ b/server/plugins/messages.py
@@ -337,7 +337,7 @@ async def query(
if metadata_only: # Only doc IDs and AAA fields.
es_query["_source"] = ["deleted", "private", "mid", "dbid", "list_raw"]
else:
- es_query["_source"] = { "exclude": ["body"] }
+ es_query["_source"] = { "excludes": ["body"] }
async for hit in session.database.scan(
query=es_query,
preserve_order=preserve_order