fix: Update engine.js

pull/6904/head
Nicolas Giard 1 year ago committed by GitHub
parent fbfbfee74b
commit b6434bd425
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -83,9 +83,9 @@ module.exports = {
await this.client.indices.create({ await this.client.indices.create({
index: this.config.indexName, index: this.config.indexName,
body: { body: {
mappings: { mappings: (this.config.apiVersion === '6.x') ? {
_doc: idxBody _doc: idxBody
}, } : idxBody,
settings: { settings: {
analysis: { analysis: {
analyzer: { analyzer: {

Loading…
Cancel
Save