Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit 51255d0

Browse files
rawpixel-vincentdelvedor
authored andcommitted
Add apiVersion to the code example (#13)
* Add apiVersion to the code example * set the apiVersion in code example Co-Authored-By: Tomas Della Vedova <[email protected]>
1 parent 8c359ae commit 51255d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ Create a client instance
5858
var elasticsearch = require('elasticsearch');
5959
var client = new elasticsearch.Client({
6060
host: 'localhost:9200',
61-
log: 'trace'
61+
log: 'trace',
62+
apiVersion: '7.2', // use the same version of your Elasticsearch instance
6263
});
6364
```
6465

0 commit comments

Comments
 (0)