Commit 86208ada by huangchengyi

更新型号查询

parent a8b4eb66
Showing with 1 additions and 1 deletions
...@@ -35,7 +35,7 @@ func GetOptimumAttrQuery(ctx *gin.Context,REQUEST_ATTR *map[string][]string,type ...@@ -35,7 +35,7 @@ func GetOptimumAttrQuery(ctx *gin.Context,REQUEST_ATTR *map[string][]string,type
} }
goods_name := common.DrawLetterNum(ctx.Request.FormValue("goods_name/condition")) goods_name := common.DrawLetterNum(ctx.Request.FormValue("goods_name/condition"))
if goods_name != "" { //型号搜索 if goods_name != "" { //型号搜索
query.Must(elastic.NewTermQuery("goods_name",goods_name)) query.Must(elastic.NewMatchQuery("goods_name",goods_name).MinimumShouldMatch("5%")) //模糊匹配
} }
//存在属性查询 //存在属性查询
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment