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 2020/09/07 10:34:13 UTC

[incubator-ponymail-foal] branch master updated: Lucene QSL is called query_string.

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 13d0616  Lucene QSL is called query_string.
13d0616 is described below

commit 13d0616d28ebd4d7a2209a56c0fe3a75b599566a
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Sep 7 12:33:53 2020 +0200

    Lucene QSL is called query_string.
---
 server/plugins/defuzzer.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/server/plugins/defuzzer.py b/server/plugins/defuzzer.py
index 8d3e66c..7999fba 100644
--- a/server/plugins/defuzzer.py
+++ b/server/plugins/defuzzer.py
@@ -145,7 +145,7 @@ def defuzz(formdata: dict, nodate: bool = False) -> dict:
         if len(should) > 0:
             must.append(
                 {
-                    "multi_match": {
+                    "query_string": {
                         "fields": ["subject", "from", "body"],
                         "query": " AND ".join(should),
                     }
@@ -154,7 +154,7 @@ def defuzz(formdata: dict, nodate: bool = False) -> dict:
         if len(shouldnot) > 0:
             must_not.append(
                 {
-                    "multi_match": {
+                    "query_string": {
                         "fields": ["subject", "from", "body"],
                         "query": " AND ".join(shouldnot),
                     }
@@ -172,4 +172,5 @@ def defuzz(formdata: dict, nodate: bool = False) -> dict:
 
     if len(must_not) > 0:
         thebool["must_not"] = must_not
+
     return thebool