Index-Einstellung mit Python ElasticSearch-Client setzen
English
Deutsch
Index-Einstellungen können mit der offiziellen ElasticSearch Python-Client-Bibliothek gesetzt werden mit:
es_put_settings.py
es.indices.put_settings(index="my-index", body={
# Put your index settings here
# Example: "index.mapping.total_fields.limit": 100000
})Vollständiges Beispiel:
es_put_settings_full_example.py
from elasticsearch import Elasticsearch
es = Elasticsearch()
es.indices.put_settings(index="ways", body={
"index.mapping.total_fields.limit": 100000
})Check out similar posts by category:
Databases, ElasticSearch, Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow