Limiting the nested fields in Elasticsearch

后端 未结 1 638
醉话见心
醉话见心 2021-01-22 08:42

I am trying to index json documents in ElasticSearch with dynamic mappings on. Some of the documents have unpredictable number of keys (nested levels) because of which I started

相关标签:
1条回答
  • 2021-01-22 09:40

    For Total Field

    PUT <index_name>/_settings
    {
      "index.mapping.total_fields.limit": 2000
    }
    

    For depth limit

    PUT <index_name>/_settings
    {
      "index.mapping.depth.limit": 2
    }
    

    https://www.elastic.co/guide/en/elasticsearch/reference/master/mapping.html

    0 讨论(0)
提交回复
热议问题