# Why index in 5.0 is bigger than that in 1.3?

**URL:** <https://discuss.elastic.co/t/why-index-in-5-0-is-bigger-than-that-in-1-3/67146>\
**Category:** Elasticsearch\
**Created:** [November 25, 2016, 2:46am UTC](https://discuss.elastic.co/t/why-index-in-5-0-is-bigger-than-that-in-1-3/67146 "2016-11-25T02:46:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenjinyuan87](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@chenjinyuan87](https://discuss.elastic.co/u/chenjinyuan87)\
**Post date:** [November 25, 2016, 2:46am UTC](https://discuss.elastic.co/t/why-index-in-5-0-is-bigger-than-that-in-1-3/67146/1 "2016-11-25T02:46:57Z")

</div>

Hello:  
I've upgraded my cluster to 5.0 these days.  
And i found the index size is bigger than 1.3.  
The following is the index metadata in 5.0:

```auto
"_all": {
    "search_analyzer": "default_search",
    "analyzer": "default",
    "enabled": false
    },
    "properties": {
    "heat": {
    "type": "integer"
    },
    "_nid": {
    "type": "keyword",
    "doc_values": false
    },
    "channel": {
    "type": "keyword",
    "doc_values": false
    },
    "_tid": {
    "type": "long"
    },
    "title": {
    "index": false,
    "type": "keyword"
    }
    }

```

And the metadata in 1.3:

```auto
 "_all": {
    "enabled": false
    },
    "properties": {
    "heat": {
    "type": "integer"
    },
    "_nid": {
    "index": "not_analyzed",
    "type": "string"
    },
    "channel": {
    "index": "not_analyzed",
    "type": "string"
    },
    "_tid": {
    "type": "long"
    },
    "title": {
    "index": "no",
    "type": "string"
    }
    }

```

Thanks

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [November 25, 2016, 11:01am UTC](https://discuss.elastic.co/t/why-index-in-5-0-is-bigger-than-that-in-1-3/67146/2 "2016-11-25T11:01:36Z")

</div>

How much bigger?

One difference is that your 5.x index has doc values enabled on the `heat`, `tid` and `title` fields since the default was changed in 2.0.

---

<div class="post-metadata">

**Author:** ![chenjinyuan87](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@chenjinyuan87](https://discuss.elastic.co/u/chenjinyuan87)\
**Post date:** [November 25, 2016, 11:25am UTC](https://discuss.elastic.co/t/why-index-in-5-0-is-bigger-than-that-in-1-3/67146/3 "2016-11-25T11:25:11Z")

</div>

In 1.3, it's about 500M, and know 750M..  
I thought it will be smaller in 5.0

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [November 25, 2016, 12:41pm UTC](https://discuss.elastic.co/t/why-index-in-5-0-is-bigger-than-that-in-1-3/67146/4 "2016-11-25T12:41:21Z")

</div>

High cardinality numeric fields can indeed be expected to compress a bit better, but here you have more features enabled compared to the 1.3 index so we are comparing apples to oranges. One good news is that the fact that you have doc values enabled, in spite of increasing disk usage, should significantly decrease memory usage when aggregating or sorting on those fields.

---

<div class="post-metadata">

**Author:** ![chenjinyuan87](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@chenjinyuan87](https://discuss.elastic.co/u/chenjinyuan87)\
**Post date:** [November 28, 2016, 2:17am UTC](https://discuss.elastic.co/t/why-index-in-5-0-is-bigger-than-that-in-1-3/67146/5 "2016-11-28T02:17:42Z")

</div>

doc values in title field is not needed.  
I thought it was disabled in not indexed fields.  
Thanks for your help

---

<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:** [December 26, 2016, 2:17am UTC](https://discuss.elastic.co/t/why-index-in-5-0-is-bigger-than-that-in-1-3/67146/6 "2016-12-26T02:17:53Z")

</div>

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