瀏覽代碼

no message

xingzai 2 年之前
父節點
當前提交
fa5bc82cc5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/elastic.go

+ 1 - 1
services/elastic.go

@@ -709,7 +709,7 @@ func EsArticleSearchBody(keyWord string, startSize, pageSize int, orderColumn st
 	queryMap["highlight"] = highlightMap
 	queryMap["highlight"] = highlightMap
 	jsonBytes, _ := json.Marshal(queryMap)
 	jsonBytes, _ := json.Marshal(queryMap)
 	fmt.Println(string(jsonBytes))
 	fmt.Println(string(jsonBytes))
-	utils.FileLog.Info(string(jsonBytes))
+	//utils.FileLog.Info(string(jsonBytes))
 	request := client.Search(indexName).Source(queryMap) // sets the JSON request
 	request := client.Search(indexName).Source(queryMap) // sets the JSON request
 	searchByMatch, err := request.Do(context.Background())
 	searchByMatch, err := request.Do(context.Background())
 	if searchByMatch != nil {
 	if searchByMatch != nil {