4

According to docs, this should be sufficient:

"settings": {
    "index.mapping.ignore_malformed": true 
  }

But how can I achieve this on python wrapper? My current code looks like this:

from elasticsearch_dsl import Index

index = Index('my_index', my_conn)
index.settings(
     number_of_shards=ES_NUMBER_OF_SHARDS,
     number_of_replicas=ES_NUMBER_OF_REPLICAS
)
index.create()
Imran
  • 76,055
  • 23
  • 93
  • 124
Montenegrodr
  • 1,443
  • 10
  • 26

1 Answers1

4

Surprisingly,

    index.settings(
        index={'mapping':{'ignore_malformed':True}}
    )

Worked perfectly. I'll leave the Q here, since might be useful.

Montenegrodr
  • 1,443
  • 10
  • 26