diff --git a/core/elasticsearch.md b/core/elasticsearch.md index cfd334f7b41..370085e987e 100644 --- a/core/elasticsearch.md +++ b/core/elasticsearch.md @@ -8,12 +8,19 @@ application search, security analytics, metrics, logging, etc. API Platform comes natively with the **reading** support for Elasticsearch. It uses internally the official PHP client for Elasticsearch: [Elasticsearch-PHP](https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html). -Be careful, API Platform only supports Elasticsearch >= 7.11.0 < 8.0. +Be careful, API Platform only supports Elasticsearch >= 7.11.0 < 8.0 and Elasticsearch >= 8.4 < 9.0. Support for +Elasticsearch 8 was introduced in API Platform 3.2. ## Enabling Reading Support -To enable the reading support for Elasticsearch, simply require the Elasticsearch-PHP package using Composer: +To enable the reading support for Elasticsearch, simply require the Elasticsearch-PHP package using Composer. For +Elasticsearch 8: +```console +composer require elasticsearch/elasticsearch:^8.4 +``` + +For Elasticsearch 7: ```console composer require elasticsearch/elasticsearch:^7.11 ```