...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
|
|
|
namespace Lib\Es;
|
|
|
|
|
|
use Elasticsearch\ClientBuilder;
|
|
|
use Elastic\Elasticsearch\ClientBuilder;
|
|
|
|
|
|
/**
|
|
|
* @see https://github.com/elastic/elasticsearch-php/tree/7.17
|
...
|
...
|
@@ -18,12 +18,12 @@ class Es { |
|
|
// private $host = 'https://es-az664rii.public.tencentelasticsearch.com:9200'; // aicc 服务器
|
|
|
private $host = [
|
|
|
// 'http://elastic:1qOtfZhqy4B7IXdIpl_W@192.168.80.129:9200',
|
|
|
'http://hbb:haizibinbin8837840@es.hagro.cn:80'
|
|
|
'http://elastic:L6PY7r4FsHmEBYFK@127.0.0.1:9200'
|
|
|
]; //内网地址 公网要加ip白名单
|
|
|
|
|
|
|
|
|
/**
|
|
|
* @var \Elasticsearch\Client
|
|
|
* @var \Elastic\Elasticsearch\Client
|
|
|
*/
|
|
|
protected $client;
|
|
|
|
...
|
...
|
@@ -87,7 +87,7 @@ class Es { |
|
|
|
|
|
|
|
|
/**
|
|
|
* @param array $params
|
|
|
* @param array $param
|
|
|
* @return array|callable
|
|
|
* @author:dc
|
|
|
* @time 2023/6/9 15:50
|
...
|
...
|
@@ -226,7 +226,7 @@ class Es { |
|
|
|
|
|
|
|
|
/**
|
|
|
* @return \Elasticsearch\Client
|
|
|
* @return \Elastic\Elasticsearch\Client
|
|
|
* @author:dc
|
|
|
* @time 2025/3/1 16:23
|
|
|
*/
|
...
|
...
|
|