# Probleme template behavior

**URL:** <https://discuss.elastic.co/t/probleme-template-behavior/81591>\
**Category:** Elasticsearch\
**Created:** [April 7, 2017, 9:40am UTC](https://discuss.elastic.co/t/probleme-template-behavior/81591 "2017-04-07T09:40:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beuhlet\_Reseau](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@Beuhlet\_Reseau](https://discuss.elastic.co/u/Beuhlet_Reseau)\
**Post date:** [April 7, 2017, 9:40am UTC](https://discuss.elastic.co/t/probleme-template-behavior/81591/1 "2017-04-07T09:40:09Z")

</div>

Hello !

I have a problem with my dynamic template. I wanted to put "not analyze" for all string fields. (see below the screeshot)

```
"dynamic_templates": [
          {
            "string_fields": {
              "mapping": {
                "norms": false,
                "type": "text",
                "fields": {
                  "keyword": {
                    "type": "keyword",
                    "index": "not_analyzed"
                  },
                  "string": {
                    "type": "string",
                    "index": "not_analyzed"
                  },
                  "text": {
                    "type": "text",
                    "index": "not_analyzed"
                  }
                }
              },
              "match_mapping_type": "string",
              "match": "*"
            }
          }
        ]

```

Here the result.... I have 4 fields now ! (example for ctename) :

 ![](https://us1.discourse-cdn.com/elastic/original/3X/f/0/f0c0747f1111054071496d6ac4d37325669332b8.JPG)

I don't understand. (In addition they are analyzed ! )

---

<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:** [April 8, 2017, 11:16pm UTC](https://discuss.elastic.co/t/probleme-template-behavior/81591/2 "2017-04-08T23:16:53Z")

</div>

What version are you on?  
What does the applied mapping look like?

---

<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:** [May 6, 2017, 11:19pm UTC](https://discuss.elastic.co/t/probleme-template-behavior/81591/3 "2017-05-06T23:19:32Z")

</div>

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