Browse Source

no message

xingzai 1 year ago
parent
commit
bbb97600c8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      services/es_comprehensive.go

+ 1 - 0
services/es_comprehensive.go

@@ -893,6 +893,7 @@ func SqlComprehensiveSearch(keyWord string, startSize, pageSize int) (result []*
 		}
 	} else if totalTitle <= searchTotal-pageSize {
 		//全部都是内容搜索
+		startSize = startSize - totalTitle
 		list, e = models.GetResourceDataListCondition(conditionContent, parsContent, startSize, pageSize)
 		if e != nil && e.Error() != utils.ErrNoRow() {
 			err = errors.New("GetResourceDataListCondition, Err: " + e.Error())