xxxxxxxxxx
/*
Just add
headers: {
'Content-Type': 'application/json; charset=utf-8',
}
*/
const client = new Client({
node: 'https://elasticsearch.my-server.com.br',
auth: {
username: 'user',
password: 'pass',
},
headers: {
'Content-Type': 'application/json; charset=utf-8',
}
})