WIP: Node. New generation #1
@ -598,6 +598,7 @@ func (es ESConf) GetThreadsYear(pageNum int, echoes ...string) (posts []i2es.ESD
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (es ESConf) GetLatestPosts(sum int) []i2es.ESDoc {
|
func (es ESConf) GetLatestPosts(sum int) []i2es.ESDoc {
|
||||||
|
log.Debug(sum)
|
||||||
query := fmt.Sprintf(`{"sort": [{"date": {"order": "desc"}}, {"_score": {"order": "desc" }}], "size": %d}`, sum)
|
query := fmt.Sprintf(`{"sort": [{"date": {"order": "desc"}}, {"_score": {"order": "desc" }}], "size": %d}`, sum)
|
||||||
log.Debugf("Do %s request", query)
|
log.Debugf("Do %s request", query)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user