# Can't change settings for an index with a geo\_shape field using term strategy

**URL:** <https://discuss.elastic.co/t/cant-change-settings-for-an-index-with-a-geo-shape-field-using-term-strategy/138039>\
**Category:** Elasticsearch\
**Created:** [June 29, 2018, 9:11pm UTC](https://discuss.elastic.co/t/cant-change-settings-for-an-index-with-a-geo-shape-field-using-term-strategy/138039 "2018-06-29T21:11:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbuckner](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@tbuckner](https://discuss.elastic.co/u/tbuckner)\
**Post date:** [June 29, 2018, 9:11pm UTC](https://discuss.elastic.co/t/cant-change-settings-for-an-index-with-a-geo-shape-field-using-term-strategy/138039/1 "2018-06-29T21:11:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 30, 2018, 7:25am UTC](https://discuss.elastic.co/t/cant-change-settings-for-an-index-with-a-geo-shape-field-using-term-strategy/138039/2 "2018-06-30T07:25:09Z")

</div>

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](https://github.com/elastic/elasticsearch/issues)

---

<div class="post-metadata">

**Author:** ![tbuckner](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@tbuckner](https://discuss.elastic.co/u/tbuckner)\
**Post date:** [June 30, 2018, 11:26pm UTC](https://discuss.elastic.co/t/cant-change-settings-for-an-index-with-a-geo-shape-field-using-term-strategy/138039/3 "2018-06-30T23:26:53Z")

</div>

Will do.

---

<div class="post-metadata">

**Author:** ![tbuckner](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@tbuckner](https://discuss.elastic.co/u/tbuckner)\
**Post date:** [June 30, 2018, 11:39pm UTC](https://discuss.elastic.co/t/cant-change-settings-for-an-index-with-a-geo-shape-field-using-term-strategy/138039/4 "2018-06-30T23:39:59Z")

</div>

For your reference: [https://github.com/elastic/elasticsearch/issues/31707](https://github.com/elastic/elasticsearch/issues/31707)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 28, 2018, 11:40pm UTC](https://discuss.elastic.co/t/cant-change-settings-for-an-index-with-a-geo-shape-field-using-term-strategy/138039/5 "2018-07-28T23:40:08Z")

</div>

Closed on July 28, 2018, 11:40pm UTC

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