Elasticsearch mapping ES2.3 -> ES 7.8

Assume that the defined mapping in ES2.3 has this format.

"properties": {
   "accountId": {
        "type": "string",
        "index": "not_analyzed"
   }
}

Is it equivalent to this in ES 7.8 version?

"properties": {
   "accountId": {
        "type": "text"
   }
}

What parameters can I choose for "index" if it is still in use?

No, it should be equivalent to this:

"properties": {
   "accountId": {
        "type": "keyword"
   }
}
2 Likes
"fields": {
        "length": {
          "type": "token_count",
          "analyzer": "proper_name"
        }
}

and how do I debug this "analyzer" to match an equivalent expression in ES 7.8?

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