Mapping Value is not changing after updating

"mappings": {
"properties": {
"client.ip":{"type": "ip"},
"host.ip":{"type": "ip"},
"server.ip":{"type": "ip"},
"source.ip":{"type": "ip"},
"destination.ip":{"type": "ip"},
"geoip":
{
"dynamic": true,
"properties": {
"ip":{"type":"ip"},
"latitude":{"type":"half_float"},
"longitude":{"type":"half_float"},
"location":{"type":"geo_point"}
}

  }

This was the first mapping i created and the result i got successfull that is geo.ip type was ip and geo.latitude type was half float.
After that i want to add some fields so i update my mapping
"mappings": {
"properties": {
"client.ip":{"type": "ip"},
"host.ip":{"type": "ip"},
"server.ip":{"type": "ip"},
"source.ip":{"type": "ip"},
"destination.ip":{"type": "ip"},
"geoip":
{
"dynamic": true,
"properties": {
"ip":{"type":"ip"},
"latitude":{"type":"half_float"},
"longitude":{"type":"half_float"},
"location":{"type":"geo_point"}
}

  },
  "destination.geo":
  {
    "dynamic":false,
    "properties": {
      "ip":{"type":"ip"},
      "latitude":{"type":"half_float"},
      "longitude":{"type":"half_float"},
      "location":{"type":"geo_point"}
      
    }
  }

when i run this query("acknowledged" : true) and refresh my index pattern there is no change in its type earlier destination.geo.ip type was string after updating it type was same i m not talking about only one field.

If index already has a "destination.geo.ip" field of type "text" because you ingested doc with that field name before defining the field, index mapping change should fail as "type" change is not allowed.

You are not changing it in the index template right?

when i delete my index and recreated then i got destination.geo.ip type ip

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