# Doc\_value in murmur3 hash

**URL:** <https://discuss.elastic.co/t/doc-value-in-murmur3-hash/2462>\
**Category:** Elasticsearch\
**Created:** [June 11, 2015, 12:52pm UTC](https://discuss.elastic.co/t/doc-value-in-murmur3-hash/2462 "2015-06-11T12:52:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![navatm](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@navatm](https://discuss.elastic.co/u/navatm)\
**Post date:** [June 11, 2015, 12:52pm UTC](https://discuss.elastic.co/t/doc-value-in-murmur3-hash/2462/1 "2015-06-11T12:52:30Z")

</div>

Continuing a [previous question.](http://stackoverflow.com/questions/30766792/elasticsearch-kibana-unique-count-using-pre-computed-hashes?noredirect=1#comment49604500_30766792)

## What am I trying to do?

Thanks to @AndreiStefan I'm trying to put a `murmur3` hash off the heap, using `doc_values`:

```
"dynamic_templates": [
{
  "murmur3_hashed": {
    "mapping": {
      "index": "not_analyzed",
      "norms": {
        "enabled": false
      },
      "fielddata": {
        "format": "doc_values"
      },
      "doc_values": true,
      "type": "string",
      "fields": {
        "hash": {
          "index": "no",
          "doc_values": true,
          "type": "murmur3"
        }
      }
    },
    "match_mapping_type": "string",
    "match": "my_prop"
  }
}
]

```

I used stream2es for reindexing.

## What is the result?

After a reindexing, the result property is:

```
  "my_prop": {
    "index": "not_analyzed",
    "fielddata": {
      "format": "doc_values"
    },
    "doc_values": true,
    "type": "string",
    "fields": {
      "hash": {
        "null_value": -1,
        "precision_step": 2147483647,
        "type": "murmur3"
      }
    }
  },

```

## What is the problem?

Why is the `"index": "no", "doc_values": true` missing in the result property?

---

<div class="post-metadata">

**Author:** ![ppf2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppf2/32/52219_2.png) [@ppf2](https://discuss.elastic.co/u/ppf2)\
**Post date:** [September 2, 2015, 1:47am UTC](https://discuss.elastic.co/t/doc-value-in-murmur3-hash/2462/2 "2015-09-02T01:47:57Z")

</div>

I have seen this before with stream2es. Something to do with dynamic templates. To workaround this, you can first create the target index (empty one) using the updated index template (which has the dynamic template changes). Then run stream2es (instead of having stream2es auto-create the target index).

---

<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 5, 2017, 11:52pm UTC](https://discuss.elastic.co/t/doc-value-in-murmur3-hash/2462/3 "2017-07-05T23:52:45Z")

</div>


