|
|
@@ -31,6 +31,12 @@ func InitESClient() { |
|
|
|
} |
|
|
|
|
|
|
|
func Search(ctx *context.Context) { |
|
|
|
keyword := strings.Trim(ctx.Query("q"), " ") |
|
|
|
ctx.Data["keyword"] = keyword |
|
|
|
ctx.HTML(200, "/explore/search_new.tmpl") |
|
|
|
} |
|
|
|
|
|
|
|
func SearchApi(ctx *context.Context) { |
|
|
|
TableName := ctx.Query("TableName") |
|
|
|
Key := ctx.Query("Key") |
|
|
|
Page := ctx.QueryInt("Page") |
|
|
|