# I'm still able to define a document type in 7.9. Is this a bug?

**URL:** https://discuss.elastic.co/t/im-still-able-to-define-a-document-type-in-7-9-is-this-a-bug/247125
**Category:** Elasticsearch
**Created:** [September 1, 2020, 3:53pm UTC](https://discuss.elastic.co/t/im-still-able-to-define-a-document-type-in-7-9-is-this-a-bug/247125 "2020-09-01T15:53:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Vitaly\_il](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vitaly_il/32/130964_2.png) [@Vitaly\_il](https://discuss.elastic.co/u/Vitaly_il)
#### Post date: [September 1, 2020, 3:53pm UTC](https://discuss.elastic.co/t/im-still-able-to-define-a-document-type-in-7-9-is-this-a-bug/247125/1 "2020-09-01T15:53:24Z")

</div>

By adding a new document this way

```auto
    curl --location --request PUT 'http://localhost:9200/example1/product/1' \
    --header 'Content-Type: application/json' \
     --data-raw '{
     "title": "example title",
      "author": "example author",
     "category": "books"
     }'

```

I'm able to add document with "\_type": "product", even this is deprecated according to [https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html).  
Is this a feature or bug?

---

<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: [September 2, 2020, 1:48am UTC](https://discuss.elastic.co/t/im-still-able-to-define-a-document-type-in-7-9-is-this-a-bug/247125/2 "2020-09-02T01:48:27Z")

</div>

It's expected behaviour. It so that people have time to switch over to no types.

---

<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: [September 30, 2020, 1:48am UTC](https://discuss.elastic.co/t/im-still-able-to-define-a-document-type-in-7-9-is-this-a-bug/247125/3 "2020-09-30T01:48:42Z")

</div>

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