elasticsearch-php icon indicating copy to clipboard operation
elasticsearch-php copied to clipboard

Official PHP client for Elasticsearch.

Results 66 elasticsearch-php issues
Sort by recently updated
recently updated
newest added

This PR removes the usage of `getenv()` because it's not thread safe. Fixes for #1237

enhancement
7.x

### Summary of problem or feature request Hi, We are getting an exception randomly as follows when we perform the indexing. While checking the logs on the elastic search server...

question

### Summary of problem or feature request When using symfony/dotenv to provide enviornment variables, this does not use `putenv` as `putenv` is not thread safe https://github.com/symfony/dotenv/blob/v5.4.5/Dotenv.php#L70 However, if one uses...

enhancement

### Summary of problem or feature request `ClientBuilder::build()` adds an `Accept-Encoding:gzip` header when `elasticCloudId` is provided but does not handle decompression of gzip compressed responses. We're using `Symfony\Component\HttpClient\HttplugClient` as `asyncHttpClient`...

### Summary of problem or feature request When a list of multiple hosts is configured, `randomizeHosts` is disabled and `StickyRoundRobinSelector` is used the first connection goes to the second host...

### Summary of problem or feature request Getting error Elastic\Elasticsearch\Exception\ProductCheckException: The client noticed that the server is not Elasticsearch and we do not support this unknown product in file \elasticsearch\elasticsearch\src\Traits\ProductCheckTrait.php...

### Summary of problem or feature request There's some error when i connected to elasticsearch use elasticsearch-php . my es server is : https://elasticsearch:9200, all this is configed in $cfg...

### Summary of problem or feature request When the elasticsearch password contains the character @ then authentication fails. This is my code that setups the client: ```php $client = Elastic\Elasticsearch\ClientBuilder::create()...

bug

### Code snippet ``` $hosts= [ [ 'host' => '', 'port' => '', 'scheme' => '', 'user' => '', 'pass' => '', ] ], $builder = ClientBuilder::create()->setHosts($hosts); $builder->build(); ``` ###...

### Summary of problem or feature request Since client was made final we can not mock the class anymore. However, good practice would tell us that we need to mock...