From ac761ea4309ad1ed4b1038e42465f561b29e6134 Mon Sep 17 00:00:00 2001 From: Enrico Zimuel Date: Thu, 23 Jun 2022 23:03:34 +0200 Subject: [PATCH] Fixed docs + comments in Client --- docs/guide/release_notes/715.asciidoc | 2 +- docs/guide/release_notes/80.asciidoc | 2 +- src/Client.php | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/guide/release_notes/715.asciidoc b/docs/guide/release_notes/715.asciidoc index d60c17c..fa2dbf8 100644 --- a/docs/guide/release_notes/715.asciidoc +++ b/docs/guide/release_notes/715.asciidoc @@ -2,7 +2,7 @@ === 7.15 Release notes [discrete] -[[release_notes_7151]] +[[release_notes_7150]] === 7.15.0 Release notes Release created to be compatible with the **7.15** API of https://www.elastic.co/enterprise-search[Enterprise Search], https://www.elastic.co/app-search/[App Search] and https://www.elastic.co/workplace-search[Workplace Search]. \ No newline at end of file diff --git a/docs/guide/release_notes/80.asciidoc b/docs/guide/release_notes/80.asciidoc index b021ed3..4ca6c54 100644 --- a/docs/guide/release_notes/80.asciidoc +++ b/docs/guide/release_notes/80.asciidoc @@ -11,7 +11,7 @@ This major release includes the following changes: - License changed from Apache-2.0 to MIT -- Usage of the `elastic-transport-php` version 8.x +- Usage of the `elastic-transport-php` version 8.x, https://github.com/elastic/elastic-transport-php/blob/master/CHANGELOG.md[here the CHANGELOG] We didn't change the existing API architecture of the client, if you notice something you can open an https://github.com/elastic/enterprise-search-php/issues[issue on github], thanks! diff --git a/src/Client.php b/src/Client.php index 29ee866..8679b69 100644 --- a/src/Client.php +++ b/src/Client.php @@ -43,10 +43,14 @@ class Client * 'password' => 'insert password here' * ], * 'app-search' => [ - * 'token' => 'insert token or API key here' + * 'token' => 'insert token from Elasticsearch', + * // or + * 'apiKey' => 'insert API key from App Search Credentials' * ], * 'workplace-search' => [ - * 'token' => 'insert token or API key here' + * 'token' => 'insert token or API key here', + * // or + * 'apiKey' => 'insert API key from Workplace Search API key or OAuth' * ] * ]; */