How to set index setting using Python ElasticSearch client
You can set index settings using the official ElasticSearch python client library by using:
es.indices.put_settings(index="my-index", body={
# Put your index settings here
# Example: "index.mapping.total_fields.limit": 100000
})
Full example:
from elasticsearch import Elasticsearch
es = Elasticsearch()
es.indices.put_settings(index="ways", body={
"index.mapping.total_fields.limit": 100000
})