How to change the mapping type while reindexing


(suresh) #1

How to change the dynamic mapping type from logs to docs while reindexing

    "index_name1_template": {
        "order": 0,
        "index_patterns": [
          "index_name1_v1_*"
        ],
        "settings": {
          "index": {
            "number_of_shards": "3",
            "number_of_replicas": "1"
          }
        },
        "mappings": {
          "logs": {
            "dynamic_templates": [
              {
                "strings_as_keyword": {
                  "mapping": {
                    "ignore_above": 1024,
                    "type": "keyword"
                  },
                  "match_mapping_type": "string"
                }
              }
            ]
          }
        },
        "aliases": {}
      }
    }

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.