# No handler for type \[flattened\] declared on field \[host\]"

**URL:** <https://discuss.elastic.co/t/no-handler-for-type-flattened-declared-on-field-host/258177>\
**Category:** Elasticsearch\
**Created:** [December 9, 2020, 7:51pm UTC](https://discuss.elastic.co/t/no-handler-for-type-flattened-declared-on-field-host/258177 "2020-12-09T19:51:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![voipas](https://avatars.discourse-cdn.com/v4/letter/v/7feea3/32.png) [@voipas](https://discuss.elastic.co/u/voipas)\
**Post date:** [December 9, 2020, 7:51pm UTC](https://discuss.elastic.co/t/no-handler-for-type-flattened-declared-on-field-host/258177/1 "2020-12-09T19:51:18Z")

</div>

Hello,

I'm taking some trainings on Elasticsearch, and I I receive an error if I try use flattened:

```auto
        ../bin/curl -XPUT "http://elastic.192.168.0.1.nip.io/demo-flattened/_mapping" -d '
        {
           "properties": {
              "host": {
                "type": "flattened"
              }
            }
        }'

```

And I receive the following error:  
`{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [flattened] declared on field [host]"}],"type":"mapper_parsing_exception","reason":"No handler for type [flattened] declared on field [host]"},"status":400}`

I have deployed Elasticsearch from Bitnami on K3s cluster and here is the information:

```auto
    curl -s -X GET http://elastic.192.168.0.1.nip.io
    {
      "name" : "elasticsearch-elasticsearch-coordinating-only-8bd745b84-p9ft7",
      "cluster_name" : "elastic",
      "cluster_uuid" : "EXqBWJuTSymJ7cmXEVnRBA",
      "version" : {
        "number" : "7.10.0",
        "build_flavor" : "oss",
        "build_type" : "tar",
        "build_hash" : "51e9d6f22758d0374a0f3f5c6e8f3a7997850f96",
        "build_date" : "2020-11-09T21:30:33.964949Z",
        "build_snapshot" : false,
        "lucene_version" : "8.7.0",
        "minimum_wire_compatibility_version" : "6.8.0",
        "minimum_index_compatibility_version" : "6.0.0-beta1"
      },
      "tagline" : "You Know, for Search"
    }

```

Do you have any ideas why it is failing? Do I need install additional licenses or xpack?  
Thanks

---

<div class="post-metadata">

**Author:** ![mayya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayya/32/83147_2.png) [@mayya](https://discuss.elastic.co/u/mayya)\
**Post date:** [December 9, 2020, 10:19pm UTC](https://discuss.elastic.co/t/no-handler-for-type-flattened-declared-on-field-host/258177/2 "2020-12-09T22:19:34Z")

</div>

`flattened` data type is not available in `oss` elasticsearch. You need to get a version with at least `basic` license (which is free).

---

<div class="post-metadata">

**Author:** ![voipas](https://avatars.discourse-cdn.com/v4/letter/v/7feea3/32.png) [@voipas](https://discuss.elastic.co/u/voipas)\
**Post date:** [December 10, 2020, 6:04am UTC](https://discuss.elastic.co/t/no-handler-for-type-flattened-declared-on-field-host/258177/3 "2020-12-10T06:04:27Z")

</div>

Thanks, this is what I thought... Is there any documentation , what features are available for each flavour ? I was not able to find that information...

---

<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:** [December 10, 2020, 6:05am UTC](https://discuss.elastic.co/t/no-handler-for-type-flattened-declared-on-field-host/258177/4 "2020-12-10T06:05:17Z")

</div>

[https://www.elastic.co/subscriptions](https://www.elastic.co/subscriptions) has that info.

---

<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:** [January 7, 2021, 6:05am UTC](https://discuss.elastic.co/t/no-handler-for-type-flattened-declared-on-field-host/258177/5 "2021-01-07T06:05:20Z")

</div>

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