Skip to content

Commit d613be3

Browse files
authored
Minor corrections to v8 compatiblity doc (#6265)
1 parent 8b2b5be commit d613be3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/client-concepts/connection/connecting-to-elasticsearch-v8.asciidoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ please modify the original csharp file found at the link and submit the PR with
1515
[[connecting-to-elasticsearch-v8]]
1616
=== Connecting to Elasticsearch v8.x using the v7.17.x client
1717

18-
We recommend using the latest client with a corresponding major version when connecting to Elasticsearch. Until the v7 .NET client is
18+
We recommend using the latest client with a corresponding major version when connecting to Elasticsearch. Until the v8 .NET client is
1919
generally available, you may use the v7.17.x client to communicate with a 8.x Elasticsearch cluster. There are several important considerations
2020
regarding configuration. Failure to correctly configure the client to connect using the security features enabled on the server will result in
2121
an exception being thrown during the initial client communication that will prevent further use of the client.
@@ -69,10 +69,11 @@ var settings = new ConnectionSettings(pool)
6969
var client = new ElasticClient(settings);
7070
----
7171

72+
[[enabling-compatibility-mode]]
7273
==== Enabling Compatibility Mode
7374

7475
The Elasticsearch server version 8.0 is introducing a new compatibility mode that allows you a smoother upgrade
75-
experience from 7 to 8. In a nutshell, you can use the latest 7.x Elasticsearch client with an 8.x Elasticsearch
76+
experience from v7 to v8. In a nutshell, you can use the latest 7.x Elasticsearch client with an 8.x Elasticsearch
7677
server, giving more room to coordinate the upgrade of your codebase to the next major version.
7778

7879
If you want to leverage this functionality, please make sure that you are using the latest 7.x client and set

tests/Tests/ClientConcepts/Connection/ConnectingToElasticsearchV8.doc.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class ConnectingToElasticsearchV8
1414
/**[[connecting-to-elasticsearch-v8]]
1515
* === Connecting to Elasticsearch v8.x using the v7.17.x client
1616
*
17-
* We recommend using the latest client with a corresponding major version when connecting to Elasticsearch. Until the v7 .NET client is
17+
* We recommend using the latest client with a corresponding major version when connecting to Elasticsearch. Until the v8 .NET client is
1818
* generally available, you may use the v7.17.x client to communicate with a 8.x Elasticsearch cluster. There are several important considerations
1919
* regarding configuration. Failure to correctly configure the client to connect using the security features enabled on the server will result in
2020
* an exception being thrown during the initial client communication that will prevent further use of the client.
@@ -68,18 +68,18 @@ [U] public void BasicAuth()
6868
}
6969

7070
/**
71+
* [[enabling-compatibility-mode]]
7172
* ==== Enabling Compatibility Mode
7273
*
7374
* The Elasticsearch server version 8.0 is introducing a new compatibility mode that allows you a smoother upgrade
74-
* experience from 7 to 8. In a nutshell, you can use the latest 7.x Elasticsearch client with an 8.x Elasticsearch
75+
* experience from v7 to v8. In a nutshell, you can use the latest 7.x Elasticsearch client with an 8.x Elasticsearch
7576
* server, giving more room to coordinate the upgrade of your codebase to the next major version.
7677
7778
* If you want to leverage this functionality, please make sure that you are using the latest 7.x client and set
7879
* the environment variable `ELASTIC_CLIENT_APIVERSIONING` to `true`. The client is handling the rest internally.
7980
*
8081
* Compatibility mode may also be enabled directly on `ConnectionSettings` by calling `EnableApiVersioningHeader`.
8182
*/
82-
8383
[U] public void CompatibilityMode()
8484
{
8585
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));

0 commit comments

Comments
 (0)