WIP: Node. New generation #1

Draft
Difrex wants to merge 18 commits from ssr into master
Showing only changes of commit 2540eeee26 - Show all commits

View File

@ -598,6 +598,7 @@ func (es ESConf) GetThreadsYear(pageNum int, echoes ...string) (posts []i2es.ESD
}
func (es ESConf) GetLatestPosts(sum int) []i2es.ESDoc {
log.Debug(sum)
query := fmt.Sprintf(`{"sort": [{"date": {"order": "desc"}}, {"_score": {"order": "desc" }}], "size": %d}`, sum)
log.Debugf("Do %s request", query)