Commit 87136327 by mushishixian

fix bug

parent f0e58d7e
Showing with 1 additions and 0 deletions
......@@ -119,6 +119,7 @@ func searchAttr(attrOrigin, brandName, encap string, search *es.MultiSearchServi
query.Should(es.NewTermQuery("brand_name", brandName))
}
source := es.NewSearchSource().Query(query)
source.Sort("_score", false)
source.Sort("brand_sort", true)
source = source.From(0).Size(1)
searchRequest := es.NewSearchRequest().Source(source)
......
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