作者 邓超

优化同步

@@ -71,7 +71,7 @@ class Es { @@ -71,7 +71,7 @@ class Es {
71 'body' => $body, 71 'body' => $body,
72 'from' => $from, 72 'from' => $from,
73 'size' => $size, 73 'size' => $size,
74 - "track_total_hits"=> true // 确保返回总匹配文档数量 74 + "track_total_hits"=> $track_total_hits // 确保返回总匹配文档数量
75 ]; 75 ];
76 // 排序 76 // 排序
77 if($sort){ 77 if($sort){