messages: Pass submitter query term down to Xapian.
authorRicardo Wurmus <rekado@elephly.net>
Sun, 10 May 2020 15:21:42 +0000 (17:21 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Sun, 10 May 2020 15:21:42 +0000 (17:21 +0200)
mumi/messages.scm

index 37fedeb487dbc9ece6a900ff36f0ab1417b5de1a..52d8a22787a4b6911d3779d431833663c7281a56 100644 (file)
@@ -276,8 +276,8 @@ sets that need to overlap the result set."
                 `(#:terms ,terms
                   #:sets ,(cons (db:bugs-by-owner who) fs)))
                (("submitter" who)
-                `(#:terms ,terms
-                  #:sets ,(cons (db:bugs-by-submitter who) fs)))
+                `(#:terms ,(cons (string-append "submitter:" who) terms)
+                  #:sets ,fs))
                (("severity" level)
                 `(#:terms ,terms
                   #:sets ,(cons (db:bugs-by-severity level) fs)))