This release contains the following changes:
- Added the ES|QL query builder #1462 (thanks to @miguelgrinberg 🎉)
This query builder should simplify the usage of the Elasticsearch Query Language (ES|QL) in PHP.
Example usage:
$query = Esql\Query::from("books", "books*")
->where('author == "King"', 'year == 1982')
->limit(10);
echo $query;Output:
FROM books, books*
| WHERE author == "King" AND year == 1982
| LIMIT 10
This release includes the following endpoint changes for Elasticsearch 9.2.0:
AsyncSearch.submit
- Added the
project_routingparameter (string), a Lucene query using project metadata tags to limit which projects to search, such as _alias:_origin or _alias:pr. Only supported in serverless.
Cat.aliases
- Added the
bytesparameter (string), the unit in which to display byte values - Added the
timeparameter (string), the unit in which to display time values
Cat.componentTemplates
- Added the
bytesparameter (string), the unit in which to display byte values - Added the
timeparameter (string), the unit in which to display time values
Cat.count
- Added the
project_routingparameter (string), a Lucene query using project metadata tags to limit which projects to search, such as _alias:_origin or _alias:pr. Only supported in serverless. - Added the
bytesparameter (string), the unit in which to display byte values - Added the
timeparameter (string), the unit in which to display time values
Cat.fielddata
- Added the
timeparameter (string), the unit in which to display time values
Cat.health
- Added the
bytesparameter (string), the unit in which to display byte values
Cat.master
- Added the
bytesparameter (string), the unit in which to display byte values - Added the
timeparameter (string), the unit in which to display time values
Cat.mlDatafeeds
- Added the
bytesparameter (string), the unit in which to display byte values
Cat.nodeattrs
- Added the
bytesparameter (string), the unit in which to display byte values - Added the
timeparameter (string), the unit in which to display time values
Cat.pendingTasks
- Added the
bytesparameter (string), the unit in which to display byte values
Cat.plugins
- Added the
bytesparameter (string), the unit in which to display byte values - Added the
timeparameter (string), the unit in which to display time values
Cat.repositories
- Added the
bytesparameter (string), the unit in which to display byte values - Added the
timeparameter (string), the unit in which to display time values
Cat.segments
- Added the
timeparameter (string), the unit in which to display time values - Added the
ignore_unavailableparameter (bool), whether specified concrete indices should be ignored when unavailable (missing or closed). Only allowed when providing an index expression. - Added the
ignore_throttled(bool), whether specified concrete, expanded or aliased indices should be ignored when throttled. Only allowed when providing an index expression. - Added the
allow_no_indices(bool), whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_allstring or when no indices have been specified). Only allowed when providing an index expression. - Added the
expand_wildcardsparameter (string), whether to expand wildcard expression to concrete indices that are open, closed or both. - Added the
allow_closedparameter (bool), if true, allow closed indices to be returned in the response otherwise if false, keep the legacy behaviour of throwing an exception if index pattern matches closed indices
Cat.snapshots
- Added the
bytesparemeter (string), the unit in which to display byte values
Cat.tasks
- Added the
bytesparemeter (string), the unit in which to display byte values
Cat.templates
- Added the
bytesparameter (string), the unit in which to display byte values - Added the
timeparameter (string), the unit in which to display time values
Cat.threadPool
- Added the
bytesparameter (string), the unit in which to display byte values
Cat.transforms
- Added the
bytesparameter (string), the unit in which to display byte values
Cluster.allocationExplain
- Added the
indexparameter (string), specifies the name of the index that you would like an explanation for - Added the
shardparemeter (int), specifies the ID of the shard that you would like an explanation for - Added the
primaryparameter (bool), if true, returns explanation for the primary shard for the given shard ID - Added the
current_nodeparameter (string), specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node
Connector.lastSync
This experimental endpoint has been removed.
Eql.search
- Added the
project_routingparameter (string), a Lucene query using project metadata tags to limit which projects to search, such as _alias:_origin or _alias:pr. Only supported in serverless.
Indices.cancelMigrateReindex (new API)
- API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/indices.cancel_migrate_reindex.json
- Documentation: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-cancel-migrate-reindex
Indices.createFrom (new API)
- API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/indices.create_from.json
- Documentation: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-create-from
Indices.getDataStreamMappings (new API)
- API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_mappings.json
- Documentation: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-stream-mappings
Indices.getMigrateReindexStatus (new API)
- API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_migrate_reindex_status.json
- Documentation: https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-migration
Indices.migrateReindex (new API)
- API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/indices.migrate_reindex.json
- Documentation: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-migrate-reindex
Indices.putDataStreamMappings (new API)
- API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_mappings.json
- Documentation: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-data-stream-mappings
Inference.chatCompletionUnified
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.completion
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.inference
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.put
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putAi21 (new API)
- API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_ai21.json
- Documentation: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-ai21
Inference.putAmazonbedrock
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putAmazonsagemaker
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putAnthropic
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putAzureaistudio
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putAzureopenai
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putCohere
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putContextualai (new API)
- API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_contextualai.json
- Documentation: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-contextualai
Inference.putDeepseek
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putElasticsearch
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putElser
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putGoogleaistudio
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putGooglevertexai
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putHuggingFace
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putJinaai
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putLlama (new API)
- API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_llama.json
- Documentation: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-llama
Inference.putMistral
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putOpenai
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putVoyageai
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.putWatsonx
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.rerank
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.sparseEmbedding
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.streamCompletion
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Inference.textEmbedding
- Added
timeoutparameter (int|string), specifies the amount of time to wait for the inference request to complete.
Project.tags (new API)
- API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/project.tags.json
- Documentation: https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-project-tags
Security.getStats (new API)
- API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/security.get_stats.json
- Documentation: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-stats
Simulate.ingest
- Added the
merge_typeparameter (string), the mapping merge type if mapping overrides are being provided in mapping_addition.The allowed values are one of index or template.The index option merges mappings the way they would be merged into an existing index.The template option merges mappings the way they would be merged into a template.
Sql.query
- Added the
project_routingparameter (string), a Lucene query using project metadata tags to limit which projects to search, such as _alias:_origin or _alias:pr. Only supported in serverless.