Commit 0809dfcf by huangchengyi

1.0

parent 86208ada
Showing with 1 additions and 1 deletions
......@@ -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"))
if goods_name != "" { //型号搜索
query.Must(elastic.NewMatchQuery("goods_name",goods_name).MinimumShouldMatch("5%")) //模糊匹配
query.Must(elastic.NewMatchQuery("goods_name",goods_name).MinimumShouldMatch("30%")) //模糊匹配
}
//存在属性查询
......
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