Update connecting documentation (#1666)
This commit is contained in:
committed by
GitHub
parent
77c1ef36aa
commit
eac00e1200
@ -15,7 +15,10 @@ the house Stark and remove the `house` field from the document source.
|
||||
'use strict'
|
||||
|
||||
const { Client } = require('@elastic/elasticsearch')
|
||||
const client = new Client({ node: 'http://localhost:9200' })
|
||||
const client = new Client({
|
||||
cloud: { id: '<cloud-id>' },
|
||||
auth: { apiKey: 'base64EncodedKey' }
|
||||
})
|
||||
|
||||
async function run () {
|
||||
await client.index({
|
||||
|
||||
Reference in New Issue
Block a user