community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1852864 - in /comdev/helpwanted.apache.org/site: admin/elastic.lua lib/elastic.lua
Date Sun, 03 Feb 2019 23:51:26 GMT
Author: sebb
Date: Sun Feb  3 23:51:26 2019
New Revision: 1852864

URL: http://svn.apache.org/viewvc?rev=1852864&view=rev
Log:
epoch does not exist in this index

Modified:
    comdev/helpwanted.apache.org/site/admin/elastic.lua
    comdev/helpwanted.apache.org/site/lib/elastic.lua

Modified: comdev/helpwanted.apache.org/site/admin/elastic.lua
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/admin/elastic.lua?rev=1852864&r1=1852863&r2=1852864&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/admin/elastic.lua (original)
+++ comdev/helpwanted.apache.org/site/admin/elastic.lua Sun Feb  3 23:51:26 2019
@@ -28,7 +28,7 @@ local default_doc = "item"
 -- Standard ES query, returns $size results of any doc of type $doc, sorting by $sitem (desc)
 local function find(query, size, doc, sitem)
     doc = doc or default_doc
-    sitem = sitem or "epoch"
+    sitem = sitem or "created"
     size = size or 10
     query = query:gsub(" ", "+")
     local url = config.es_url .. doc .. "/_search?q="..query.."&sort=" .. sitem .. ":desc&size="
.. size

Modified: comdev/helpwanted.apache.org/site/lib/elastic.lua
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/lib/elastic.lua?rev=1852864&r1=1852863&r2=1852864&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/lib/elastic.lua (original)
+++ comdev/helpwanted.apache.org/site/lib/elastic.lua Sun Feb  3 23:51:26 2019
@@ -28,7 +28,7 @@ local default_doc = "item"
 -- Standard ES query, returns $size results of any doc of type $doc, sorting by $sitem (desc)
 local function find(query, size, doc, sitem)
     doc = doc or default_doc
-    sitem = sitem or "epoch"
+    sitem = sitem or "created"
     size = size or 10
     query = query:gsub(" ", "+")
     local url = config.es_url .. doc .. "/_search?q="..query.."&sort=" .. sitem .. ":desc&size="
.. size



Mime
View raw message