Code example miss single quotes (#19783)

This commit is contained in:
wispxjtu 2018-06-19 00:11:53 +08:00 committed by Jonathan Budzenski
parent efc97a7ad0
commit 0945154302
No known key found for this signature in database
GPG key ID: D28BF9418FA0F292

View file

@ -12,8 +12,8 @@ other requests. The clients use the {client-ref}/javascript-api/current/index.h
Server clients are exposed through the elasticsearch plugin.
[source,javascript]
----
const adminCluster = server.plugins.elasticsearch.getCluster('admin);
const dataCluster = server.plugins.elasticsearch.getCluster('data);
const adminCluster = server.plugins.elasticsearch.getCluster('admin');
const dataCluster = server.plugins.elasticsearch.getCluster('data');
//ping as the configured elasticsearch.user in kibana.yml
adminCluster.callWithInternalUser('ping');