# Mapper parsing exception for dynamic field mapping

**URL:** <https://discuss.elastic.co/t/mapper-parsing-exception-for-dynamic-field-mapping/103899>\
**Category:** Elasticsearch\
**Created:** [October 13, 2017, 1:08pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-for-dynamic-field-mapping/103899 "2017-10-13T13:08:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel\_Tincu](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@Gabriel\_Tincu](https://discuss.elastic.co/u/Gabriel_Tincu)\
**Post date:** [October 13, 2017, 1:08pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-for-dynamic-field-mapping/103899/1 "2017-10-13T13:08:22Z")

</div>

Hey guys,  
I'm trying to setup my index and i'm running into an issue concerning empty field values

I have a default dynamic template defined for fields starting with en that looks like so:

```auto
        {
          "english": {
            "match": "en_*",
            "match_mapping_type": "string",
            "mapping": {
              "type": "text",
              "analyzer": "english",
              "copy_to": "suggest"
            }
          }
        }

```

This is suppose to analyze any fields starting with that prefix with the english analyzer and copy it's content to a suggest field defined below. The problem is that any indexing operation that contains a field with the name matching that pattern will fail if the field's value is an empty string. I tried enabling the ignore\_malformed option as an index setting , but that still didn't fix the issue.

Where should i look to enable ES to drop these fields or ideally keep them with the empty value and not fail the entire index operation?  
Thanks

---

<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 10, 2017, 1:08pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-for-dynamic-field-mapping/103899/2 "2017-11-10T13:08:23Z")

</div>

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