# Mapping changes in Elasticsearch 5.x

**URL:** <https://discuss.elastic.co/t/mapping-changes-in-elasticsearch-5-x/104975>\
**Category:** Elasticsearch\
**Created:** [October 23, 2017, 9:37pm UTC](https://discuss.elastic.co/t/mapping-changes-in-elasticsearch-5-x/104975 "2017-10-23T21:37:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhondup](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@dhondup](https://discuss.elastic.co/u/dhondup)\
**Post date:** [October 23, 2017, 9:37pm UTC](https://discuss.elastic.co/t/mapping-changes-in-elasticsearch-5-x/104975/1 "2017-10-23T21:37:23Z")

</div>

According to [5.x doc](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_mapping_changes.html#_literal_index_literal_property), the index option now accepts only true or false.

My question:  
Is it set to true by default or do I have to set it as true every time I want field values to be indexed?

```
{
  "my_index": {
    "mappings": {
      "blog": {
        "properties": {
          "title": {
            "type": "text",
            "index": "true"
          }
        }
      }
    }
  }
}

```

OR

```
{
  "my_index": {
    "mappings": {
      "blog": {
        "properties": {
          "title": {
            "type": "text"
          }
        }
      }
    }
  }
}

```

Thanks

---

<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:** [October 25, 2017, 3:08am UTC](https://discuss.elastic.co/t/mapping-changes-in-elasticsearch-5-x/104975/2 "2017-10-25T03:08:55Z")

</div>

The default is true.

I've raised [https://github.com/elastic/elasticsearch/pull/27104](https://github.com/elastic/elasticsearch/pull/27104) to make that clear.

---

<div class="post-metadata">

**Author:** ![dhondup](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@dhondup](https://discuss.elastic.co/u/dhondup)\
**Post date:** [October 25, 2017, 1:25pm UTC](https://discuss.elastic.co/t/mapping-changes-in-elasticsearch-5-x/104975/3 "2017-10-25T13:25:00Z")

</div>

Thanks, @warkolm

---

<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:** [November 22, 2017, 1:25pm UTC](https://discuss.elastic.co/t/mapping-changes-in-elasticsearch-5-x/104975/4 "2017-11-22T13:25:09Z")

</div>

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