Add ignore_above mapping when creating documents with Python elasticsearch_dsl


(Carl Nyman) #1

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?