Browse Source

测试搜索。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/1788/head
zouap 3 years ago
parent
commit
57e6714fea
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/search.go

+ 1
- 1
routers/search.go View File

@@ -50,7 +50,7 @@ func Search(ctx *context.Context) {
} }
} else { } else {
log.Info("query all content.") log.Info("query all content.")
res, err := client.Search(TableName+"-es-index").Sort("updated_unix", false).Do(ctx.Req.Context())
res, err := client.Search(TableName + "-es-index").Do(ctx.Req.Context())
if err == nil { if err == nil {
ctx.JSON(200, res) ctx.JSON(200, res)
} }


Loading…
Cancel
Save