作者 邓超

es

@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 2
3 namespace Lib\Es; 3 namespace Lib\Es;
4 4
5 -use Elasticsearch\ClientBuilder; 5 +use Elastic\Elasticsearch\ClientBuilder;
6 6
7 /** 7 /**
8 * @see https://github.com/elastic/elasticsearch-php/tree/7.17 8 * @see https://github.com/elastic/elasticsearch-php/tree/7.17
@@ -18,12 +18,12 @@ class Es { @@ -18,12 +18,12 @@ class Es {
18 // private $host = 'https://es-az664rii.public.tencentelasticsearch.com:9200'; // aicc 服务器 18 // private $host = 'https://es-az664rii.public.tencentelasticsearch.com:9200'; // aicc 服务器
19 private $host = [ 19 private $host = [
20 // 'http://elastic:1qOtfZhqy4B7IXdIpl_W@192.168.80.129:9200', 20 // 'http://elastic:1qOtfZhqy4B7IXdIpl_W@192.168.80.129:9200',
21 - 'http://hbb:haizibinbin8837840@es.hagro.cn:80' 21 + 'http://elastic:L6PY7r4FsHmEBYFK@127.0.0.1:9200'
22 ]; //内网地址 公网要加ip白名单 22 ]; //内网地址 公网要加ip白名单
23 23
24 24
25 /** 25 /**
26 - * @var \Elasticsearch\Client 26 + * @var \Elastic\Elasticsearch\Client
27 */ 27 */
28 protected $client; 28 protected $client;
29 29
@@ -87,7 +87,7 @@ class Es { @@ -87,7 +87,7 @@ class Es {
87 87
88 88
89 /** 89 /**
90 - * @param array $params 90 + * @param array $param
91 * @return array|callable 91 * @return array|callable
92 * @author:dc 92 * @author:dc
93 * @time 2023/6/9 15:50 93 * @time 2023/6/9 15:50
@@ -226,7 +226,7 @@ class Es { @@ -226,7 +226,7 @@ class Es {
226 226
227 227
228 /** 228 /**
229 - * @return \Elasticsearch\Client 229 + * @return \Elastic\Elasticsearch\Client
230 * @author:dc 230 * @author:dc
231 * @time 2025/3/1 16:23 231 * @time 2025/3/1 16:23
232 */ 232 */