# Add ignore\_above mapping when creating documents with Python elasticsearch\_dsl

**URL:** <https://discuss.elastic.co/t/add-ignore-above-mapping-when-creating-documents-with-python-elasticsearch-dsl/152253>\
**Category:** Elasticsearch\
**Created:** [October 12, 2018, 1:56pm UTC](https://discuss.elastic.co/t/add-ignore-above-mapping-when-creating-documents-with-python-elasticsearch-dsl/152253 "2018-10-12T13:56:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eCalle](https://avatars.discourse-cdn.com/v4/letter/e/85e7bf/32.png) [@eCalle](https://discuss.elastic.co/u/eCalle)\
**Post date:** [October 12, 2018, 1:56pm UTC](https://discuss.elastic.co/t/add-ignore-above-mapping-when-creating-documents-with-python-elasticsearch-dsl/152253/1 "2018-10-12T13:56:46Z")

</div>

Hi

I'm on elasticsearch 6.4.2 using elasticsearch\_dsl 6.2.1 with Python.  
if I define a field like this:

```
instance = Text(fields={'raw': Keyword()})

```

I'll get this mapping:

```
      "instance" : {
        "type" : "text",
        "fields" : {
          "raw" : {
            "type" : "keyword"
          }
        }
      },

```

Is it possible to add the mapping parameter ignore\_above to the mapping using elasticsearch\_dsl?

---

<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 9, 2018, 1:56pm UTC](https://discuss.elastic.co/t/add-ignore-above-mapping-when-creating-documents-with-python-elasticsearch-dsl/152253/2 "2018-11-09T13:56:48Z")

</div>

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