|
@@ -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) |
|
|
} |
|
|
} |
|
|