# Dynamic template: eager\_global\_ordinals not applied

**URL:** <https://discuss.elastic.co/t/dynamic-template-eager-global-ordinals-not-applied/45707>\
**Category:** Elasticsearch\
**Created:** [March 29, 2016, 3:48pm UTC](https://discuss.elastic.co/t/dynamic-template-eager-global-ordinals-not-applied/45707 "2016-03-29T15:48:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mguiwin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mguiwin/32/6743_2.png) [@mguiwin](https://discuss.elastic.co/u/mguiwin)\
**Post date:** [March 29, 2016, 3:48pm UTC](https://discuss.elastic.co/t/dynamic-template-eager-global-ordinals-not-applied/45707/1 "2016-03-29T15:48:44Z")

</div>

Hello,

After inserting a dynamic template for a new field in all indices using:

```
PUT myindices-*/_mapping/mytype
{
  "dynamic_templates": [
    {
      "MyField_field": {
        "mapping": {
          "fielddata": {
            "loading": "eager_global_ordinals"
          },
          "index": "not_analyzed",
          "omit_norms": true,
          "type": "string"
        },
        "match_mapping_type": "string",
        "match": "MyField",
        "_all": {
          "enabled": false
        }
      }
    }
  ]
}

```

and after inserting some data for this new field (no data existed for this field before inserting the dynamic template), I checked mappings on a random index, and this is what I got:

```
"mytype" : {
        "_all" : {
          "enabled" : true,
          "omit_norms" : true
        },
    "dynamic_templates" : [ {
    [...]
    {
      "MyField_field" : {
        "_all" : {
          "enabled" : false
        },
        "mapping" : {
          "fielddata" : {
            "loading" : "eager_global_ordinals"
          },
          "index" : "not_analyzed",
          "omit_norms" : true,
          "type" : "string"
        },
        "match" : "MyField",
        "match_mapping_type" : "string"
      }
    },
    [...]
    "properties" : {
    [...]
      "MyField" : {
         "type" : "string",
        "index" : "not_analyzed",
        "fielddata" : {
        "format" : "disabled"
        }
      }
   [...]

```

Why is the "format" set to "disabled" in the mapping and not to "eager\_global\_ordinals" as expected by the dynamic template?

I'm using ES 2.2.1.

Thanks for your help,  
MG

---

<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:04pm UTC](https://discuss.elastic.co/t/dynamic-template-eager-global-ordinals-not-applied/45707/2 "2017-07-05T23:04:19Z")

</div>

Closed on July 5, 2017, 11:04pm UTC


