Mapping changes in Elasticsearch 5.x

According to 5.x doc, 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

The default is true.

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

1 Like

Thanks, @warkolm

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