# Are document\_types still a thing?

**URL:** https://discuss.elastic.co/t/are-document-types-still-a-thing/202382
**Category:** Elastic Search
**Tags:** elastic-site-search
**Created:** [October 4, 2019, 7:50pm UTC](https://discuss.elastic.co/t/are-document-types-still-a-thing/202382 "2019-10-04T19:50:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![webinc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/webinc/32/55414_2.png) [@webinc](https://discuss.elastic.co/u/webinc)
#### Post date: [October 4, 2019, 7:50pm UTC](https://discuss.elastic.co/t/are-document-types-still-a-thing/202382/1 "2019-10-04T19:50:05Z")

</div>

I'm just starting with swiftype and Elasticsearch (are they really the same now?). And I followed the instructions [here](https://swiftype.com/documentation/site-search/indexing?size=n_10_n#add-documenttype) to add document types to my engine, so I could bulk-upload documents that way.

Its not clear to me that it worked however, and I don't see any references to 'document\_types' in my swiftype dashboard. Neither can I get the api call to work showing me document\_types in my engine, and nor can I find a way to add documents to a particular document\_type using the Documents API.

So either I'm missing something, or doing it wrong (very likely) or is the current documentation at odds with the old? Something which makes me wonder that is that I can't get either of my swiftype api keys (public or private) to work with the call to display existing document\_types:

```auto
curl -X GET 'https://api.swiftype.com/api/v1/engines/bookstore/document_types.json?auth_token=YOUR_API_KEY'

```

This is documented [here](https://swiftype.com/documentation/site-search/indexing#get-documenttype).

Any help and advice would be much welcomed. I like the idea of document\_types for my data, but I'm unsure if they exist...

Thanks

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [October 7, 2019, 7:04am UTC](https://discuss.elastic.co/t/are-document-types-still-a-thing/202382/2 "2019-10-07T07:04:07Z")

</div>

I have moved your post from the `elasticsearch` forum to the `site search` one.

Swiftype Site Search is a product built on top of Elasticsearch, but Site Search has its own API, and it is not the same as the Elasticsearch API.

---

<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 4, 2019, 7:04am UTC](https://discuss.elastic.co/t/are-document-types-still-a-thing/202382/3 "2019-11-04T07:04:11Z")

</div>

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