[Backport 8.0] Update connecting documentation (#1667)
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e68dec802a
commit
85459370bc
@ -14,7 +14,10 @@ and others may contain some errors, but we are continuously pushing fixes & impr
|
||||
----
|
||||
import { Client } from '@elastic/elasticsearch'
|
||||
|
||||
const client = new Client({ node: 'http://localhost:9200' })
|
||||
const client = new Client({
|
||||
cloud: { id: '<cloud-id>' },
|
||||
auth: { apiKey: 'base64EncodedKey' }
|
||||
})
|
||||
|
||||
interface Document {
|
||||
character: string
|
||||
|
||||
Reference in New Issue
Block a user