elasticsearch-php
elasticsearch-php copied to clipboard
Official PHP client for Elasticsearch.
Hi, I saw the issue (#1227) where an interface for the Client is added to support mocking in the unittest. Maybe it is an idea to also let the ClientBuilder...
### Summary of problem or feature request While requesting I have to unset http proxy, but how to set it during build? I need to call this way. ### Code...
### Summary of problem or feature request I have changed the model mapping in config/elasticsearch.php in my Laravel Project, and clear the config cache. Then, I deleted my index and...
This runs `elasticsearch/elasticsearch` 7.x CI against PHP 8.3. `composer.json` allows PHP 8.3 (`"php": "^7.3 || ^8.0",`) but the tests are not currently being executed against 8.3. Please let me know...
### 使用PHP GET方法,不能获取到文档内容 ### 我的代码以及返回信息,还有配置文件 1、创建索引文档 ```php use Elastic\Elasticsearch\ClientBuilder; $config = App::get("config")->get('elasticsearch'); $client = ClientBuilder::create() ->setHosts([$config['host']]) ->setBasicAuthentication($config['user'], $config['pass']) ->setSSLVerification(false) ->build(); // 如果使用自签名证书,则禁用验证 $params = [ 'index' => 'my_index', 'id' =>...
Adds an `esql.asciidoc` file that sets up a basic structure for the ES|QL documentation. Based on @szabosteve's Java client docs PR ([#789](https://github.com/elastic/elasticsearch-java/pull/789/files)). This includes adding a folder structure for `helpers`...
Add the support of OpenTelemetry using the elasticsearch-transport-php implementation https://github.com/elastic/elastic-transport-php/issues/24
Added inline PHPDoc with variable type for `$endpoint` so it can be navigated to easily, for example when debugging what request URI is called, etc.
Hi there 👋 I've upgraded `elasticsearch/elasticsearch` library from version `6.1.0` to `6.8.0` and observed interesting situation after some investigations I come to conclusion that this change is BC break. See...
Using elasticsearch-php in PHP 8.4 emits 3 deprecation notices when loading `ClientBuilder`, due to the https://wiki.php.net/rfc/deprecate-implicitly-nullable-types RFC: ``` Deprecated: Elastic\Elasticsearch\ClientBuilder::setApiKey(): Implicitly marking parameter $id as nullable is deprecated, the explicit...