Found differences in mapping. Can I simply update the mapping?

Hello! I am very new to Elasticsearch and was tasked to add a new cluster and put it to work. Any help is much appreciated!

My company has a few existing ES cluster. After I added the new cluster and the indexes, I am seeing differences in the mapping in one of the indexes. For example, the existing cluster has

  "subscriptionId" : {
    "type" : "keyword"
  },

while the new cluster has

      "subscriptionId" : {
        "type" : "text",
        "fields" : {
          "keyword" : {
            "type" : "keyword",
            "ignore_above" : 256
          }
        }
      },

Other than the ignore_above, are they the same thing??

The new cluster has already ingested a bunch of data. Can I just simply update the mapping and ES will take care of it or I need to re-ingest again?

Thank you!

Welcome!

No you can't update the mapping to transform a field into something else (here text to keyword).

You need to reindex.

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