Field name contains dots

Hi Team,

When put the mappings in Index, we have some field name that contains dots, for example: Server.users.

PUT my_index
{
  "mappings": {
    "_doc": {
      "properties": {
        "Server.users": {
          "type":   "text"
        }
      }
    }
  }
}

I got the mappings as below. The question is that is there a way the keep the 'Server.users' as the field name ?

"my_index" : {
    "aliases" : { },
    "mappings" : {
      "_doc" : {
        "properties" : {
          "Server" : {
            "properties" : {
              "users" : {
                "type" : "text"
              }
            }
          }
        }
      }
    },
1 Like

I have the same issue, I guess so far there is no support for field name with dot. ES just interpret dotted field as a nested json object. And we just cannot disable this transformation :cry:

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