Ver Fonte

Es搜索默认方式改为匹配度查询

xingzai há 3 anos atrás
pai
commit
2393025a39
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      controllers/search.go

+ 2 - 1
controllers/search.go

@@ -54,7 +54,7 @@ func (this *SearchController) SearchList() {
 	}
 
 	if orderColumn == "" {
-		orderColumn = "Comprehensive"
+		orderColumn = "Matching"
 	}
 	/*
 		categoryList, err := models.GetCategoryByCompanyId(user.CompanyId)
@@ -83,6 +83,7 @@ func (this *SearchController) SearchList() {
 		err = tmpErr
 	} else {
 		tmpResult, tmpTotal, tmpErr := services.EsMultiMatchFunctionScoreQuerySort(indexName, keyWord, startSize, pageSize, user.UserId, orderColumn)
+		//tmpResult, tmpTotal, tmpErr := services.EsMultiMatchFunctionScoreQuery(indexName, keyWord, startSize, pageSize, user.UserId)
 		result = tmpResult
 		total = tmpTotal
 		err = tmpErr