Can't change settings for an index with a geo_shape field using term strategy


(Tristan Buckner) #1

When creating an index with a field of type geo_shape that uses the term strategy, I've observed some strange behaviors (this is in hosted 6.3.0):

Issuing this command in Kibana dev tools is successful (though takes 30 seconds to respond)

PUT /example
{
  "mappings": {
    "doc": {
      "properties": {
        "location": {
          "type": "geo_shape",
          "tree": "quadtree",
          "precision": "10m",
          "strategy": "term"
        }
      }
    }
  }
}

But when you subsequently attempt to change the Index settings this happens

PUT /example/_settings
{
 "settings": {"refresh_interval": "-1"} 
}

Response:

{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "Mapping definition for [location] has unsupported parameters:  [points_only : true]"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Failed to parse mapping [doc]: Mapping definition for [location] has unsupported parameters:  [points_only : true]",
    "caused_by": {
      "type": "mapper_parsing_exception",
      "reason": "Mapping definition for [location] has unsupported parameters:  [points_only : true]"
    }
  },
  "status": 400
}

Everything works fine if you change the strategy to recursive


(Mark Walkom) #2

I can confirm it does that too, do you mind raising this as a (potential) bug on GitHub so we can take a closer look? https://github.com/elastic/elasticsearch/issues


(Tristan Buckner) #3

Will do.


(Tristan Buckner) #4

For your reference: https://github.com/elastic/elasticsearch/issues/31707


(system) #5

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