ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: stats.lua ignores negated words when building the word cloud
Date Fri, 09 Dec 2016 21:45:54 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 7539a2c37 -> 3642b6aae


stats.lua ignores negated words when building the word cloud 

This fixes #277

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/3642b6aa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/3642b6aa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/3642b6aa

Branch: refs/heads/master
Commit: 3642b6aaee6b4b39a798849f26e1674ecbdb39b3
Parents: 7539a2c
Author: Sebb <sebb@apache.org>
Authored: Fri Dec 9 21:45:36 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Fri Dec 9 21:45:36 2016 +0000

----------------------------------------------------------------------
 CHANGELOG.md       | 1 +
 site/api/stats.lua | 8 ++++++++
 2 files changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3642b6aa/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 15ae37b..8192cf4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
 - private messages are now included in downloads if the user has access to them (#169, #108)
 - mbox export now generates valid From_ line (#190)
 - mbox export now escapes 'From ' lines in body text (#188)
+- stats.lua ignores negated words when building the word cloud (#277)
 
 ## CHANGES in 0.9b:
 

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3642b6aa/site/api/stats.lua
----------------------------------------------------------------------
diff --git a/site/api/stats.lua b/site/api/stats.lua
index 5d34326..61074a9 100644
--- a/site/api/stats.lua
+++ b/site/api/stats.lua
@@ -422,6 +422,14 @@ function handle(r)
                                 private = false
                             }
                         }
+                    },
+                    must_not = {
+                        {
+                            query_string = {
+                                default_field = "subject",
+                                query = nqs
+                            }
+                        }
                     }
                 }
             }


Mime
View raw message