# Mapping definition for \[fields\] has unsupported parameters: \[analyzer : not\_standard\]

**URL:** <https://discuss.elastic.co/t/mapping-definition-for-fields-has-unsupported-parameters-analyzer-not-standard/204782>\
**Category:** Elasticsearch\
**Created:** [October 23, 2019, 6:25am UTC](https://discuss.elastic.co/t/mapping-definition-for-fields-has-unsupported-parameters-analyzer-not-standard/204782 "2019-10-23T06:25:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [October 23, 2019, 6:25am UTC](https://discuss.elastic.co/t/mapping-definition-for-fields-has-unsupported-parameters-analyzer-not-standard/204782/1 "2019-10-23T06:25:53Z")

</div>

Hi,

```auto
   "givenName": {
                "analyzer": "my_analyzer",
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword",
                        "analyzer":"not_standard"
                    }
                }
            },

```

this is the mapping i have for givenName attribute, and i get this exception

```auto
"caused_by": {
            "type": "mapper_parsing_exception",
            "reason": "Mapping definition for [fields] has unsupported parameters: [analyzer : not_standard]"
        }

```

whats wrong with this mapping

Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 23, 2019, 6:42am UTC](https://discuss.elastic.co/t/mapping-definition-for-fields-has-unsupported-parameters-analyzer-not-standard/204782/2 "2019-10-23T06:42:30Z")

</div>

You can't have an analyzer with a keyword data type. You can use a normalizer if needed.

---

<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:** [November 20, 2019, 6:42am UTC](https://discuss.elastic.co/t/mapping-definition-for-fields-has-unsupported-parameters-analyzer-not-standard/204782/3 "2019-11-20T06:42:31Z")

</div>

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