rdluck 4 년 전
부모
커밋
0bad195c3a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      services/elastic.go

+ 2 - 2
services/elastic.go

@@ -149,8 +149,8 @@ func EsMatchQuery(indexName, keyWord string) (result []*models.SearchItem, err e
 				} else {
 					bodyRune := []rune(article.BodyText)
 					bodyRuneLen:=len(bodyRune)
-					if bodyRuneLen>200 {
-						bodyRuneLen=200
+					if bodyRuneLen>100 {
+						bodyRuneLen=100
 					}
 					body:= string(bodyRune[:bodyRuneLen])
 					fmt.Println(body)