|
@@ -47,6 +47,6 @@ func Search(ctx *context.Context) { |
|
|
boolQ.Filter(nameQuery) |
|
|
boolQ.Filter(nameQuery) |
|
|
boolQ.Filter(descriptionQuery) |
|
|
boolQ.Filter(descriptionQuery) |
|
|
|
|
|
|
|
|
res, err := client.Search(TableName + "-es-index").Query(boolQ).Do(ctx.Req.Context()) |
|
|
|
|
|
|
|
|
res, err := client.Search(TableName + "-es-index").Query(nameQuery).Do(ctx.Req.Context()) |
|
|
ctx.JSON(200, res) |
|
|
ctx.JSON(200, res) |
|
|
} |
|
|
} |