You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2016/12/17 01:45:37 UTC
incubator-ponymail git commit: elastic.lua:getHeaders uses different
sort field
Repository: incubator-ponymail
Updated Branches:
refs/heads/master b40d8b705 -> eb81ad56e
elastic.lua:getHeaders uses different sort field
This fixes #146
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/eb81ad56
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/eb81ad56
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/eb81ad56
Branch: refs/heads/master
Commit: eb81ad56eb3e8c30a19ef0fa35dac7d16b52fddd
Parents: b40d8b7
Author: Sebb <se...@apache.org>
Authored: Sat Dec 17 01:45:29 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Sat Dec 17 01:45:29 2016 +0000
----------------------------------------------------------------------
CHANGELOG.md | 1 +
site/api/lib/elastic.lua | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/eb81ad56/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 74716d0..e5a83db 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -74,6 +74,7 @@
- unnecessary double-checking of window.sessionStorage in ponymail.js (#193)
- lua scripts not using cross.contentType() compatibility function (#218)
- code assumes that subject is always present in an e-mail (#149)
+- elastic.lua:getHeaders uses different sort field #146
## CHANGES in 0.9b:
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/eb81ad56/site/api/lib/elastic.lua
----------------------------------------------------------------------
diff --git a/site/api/lib/elastic.lua b/site/api/lib/elastic.lua
index c1e0b87..e5bdd67 100644
--- a/site/api/lib/elastic.lua
+++ b/site/api/lib/elastic.lua
@@ -105,7 +105,7 @@ local function getHeaders(query, size, doc)
doc = doc or "mbox"
size = size or 10
query = query:gsub(" ", "+")
- local url = config.es_url .. doc .. "/_search?_source_exclude=body&q="..query.."&sort=date:desc&size=" .. size
+ local url = config.es_url .. doc .. "/_search?_source_exclude=body&q="..query.."&sort=epoch:desc&size=" .. size
local json = performRequest(url)
local out = {}
if json and json.hits and json.hits.hits then