Unclaimed project
Are you a maintainer of elasticsearch-php? Claim this project to take control of your public changelog and roadmap.
Claim this projectChangelog
elasticsearch-php
Official PHP client for Elasticsearch.
Back to changelogNew
Release 9.3.0
New packDenseVector helper function #1499
The packDenseVector function can be used to pack dense vectors for efficient bulk ingesting.
Example usage:
use Elastic\Elasticsearch\Helper\Vectors;
$params = ['body' => []];
// ...
$params['body'][] = ['index' => ['_index' => $index]];
$params['body'][] = [
'docid' => $doc['docid'],
'title' => $doc['title'],
'text' => $doc['text'],
'emb' => Vectors::packDenseVector($doc['emb']),
];
// ...
$response = $client->bulk($params);
Packed dense vectors can provide significant bulk ingest performance improvements.
Cat.circuitBreaker (new API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/cat.circuit_breaker.json
Esql.getView (new experimental API)
API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/esql.get_view.jsonEsql.putView (new experimental API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/esql.put_view.json
Esql.deleteView (new experimental API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/esql.delete_view.json
Indices.getSample (new experimental API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_sample.json
Indices.getSampleConfiguration (new experimental API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_sample_configuration.json
Indices.getAllSampleConfiguration (new experimental API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_all_sample_configuration.json
Indices.putSampleConfiguration (new experimental API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_sample_configuration.json
Indices.deleteSampleConfiguration (new experimental API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_sample_configuration.json
Indices.getSampleStats (new experimental API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_sample_stats.json
Inference.putGroq (new API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_groq.json
Inference.putNvidia (new API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_nvidia.json
Inference.putOpenshiftAi (new API)
- API: https://github.com/elastic/elasticsearch/blob/9.3/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_openshift_ai.json
Ml.openJob
- Added the
timeout parameter (int|string)
Ml.stopDatafeed
- Added the
close_job parameter (bool)
knnSearch (removed API)
- This endpoint is not supported since release 9.0 and was inadvertently left in this client.