You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2019/02/03 23:51:26 UTC
svn commit: r1852864 - in /comdev/helpwanted.apache.org/site:
admin/elastic.lua lib/elastic.lua
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