wangchuanjin 4 жил өмнө
parent
commit
f5594310c8
1 өөрчлөгдсөн 4 нэмэгдсэн , 4 устгасан
  1. 4 4
      esv7/elasticutil.go

+ 4 - 4
esv7/elasticutil.go

@@ -188,10 +188,10 @@ func GetBySearchType(index, searchType, query string) (int64, *[]map[string]inte
 	return t, l
 }
 func Get(index, itype, query string) *[]map[string]interface{} {
-	_, _, r := get(index, itype, query, "", true, true)
+	_, _, r := get(index, itype, "", query, true, true)
 	return r
 }
-func get(index, itype, query, searchType string, isLimit, isHighlight bool) (int64, int, *[]map[string]interface{}) {
+func get(index, itype, searchType, query string, isLimit, isHighlight bool) (int64, int, *[]map[string]interface{}) {
 	//log.Println("query  -- ", query)
 	client := GetEsConn()
 	defer func() {
@@ -248,12 +248,12 @@ func get(index, itype, query, searchType string, isLimit, isHighlight bool) (int
 	return total, resNum, &res
 }
 func GetOA(index, itype, query string) (*[]map[string]interface{}, int) {
-	_, n, l := get(index, itype, query, "", true, true)
+	_, n, l := get(index, itype, "", query, true, true)
 	return l, n
 }
 
 func GetNoLimit(index, itype, query string) *[]map[string]interface{} {
-	_, _, l := get(index, itype, query, "", false, false)
+	_, _, l := get(index, itype, "", query, false, false)
 	return l
 }