# Is it possible to upgrade Elastic 6.x to 7.0 if I have a document type?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-upgrade-elastic-6-x-to-7-0-if-i-have-a-document-type/188506>\
**Category:** Elasticsearch\
**Created:** [July 2, 2019, 12:08pm UTC](https://discuss.elastic.co/t/is-it-possible-to-upgrade-elastic-6-x-to-7-0-if-i-have-a-document-type/188506 "2019-07-02T12:08:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![virgilp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/virgilp/32/49291_2.png) [@virgilp](https://discuss.elastic.co/u/virgilp)\
**Post date:** [July 2, 2019, 12:08pm UTC](https://discuss.elastic.co/t/is-it-possible-to-upgrade-elastic-6-x-to-7-0-if-i-have-a-document-type/188506/1 "2019-07-02T12:08:39Z")

</div>

So, i have an application deployed in production that uses a non-standard document type name (logEvent).  
Can I upgrade to 7.0, or am I stuck to 6.x forever? Basically, I have this problem:

- if I ask the clients to upgrade the ElasticSearch servers first, the application will no longer work - NEST 6.x is not compatible with Elasticsearch7, and will issue REST API requests that do not work.
- if I ask the clients to upgrade my application first, then it will no longer work with their Elasticsearch deployment - since the NEST client no longer supports specifying a document type, and I presume it will always hit the "\_doc" endpoints, thus likely failing.

I'd like to perform the upgrade without downtime on the client side. Is that even possible? I could tell them to reindex into a new index where the document type is \_doc .... but then data is continuously flowing in, I don't see how I can do the switch without losing data (at least temporarily; and the procedure for getting all data reindexed would be fairly convoluted and would require 2 successive reindexes).

It just seems I'm missing something. Isn't there a simpler way? Has nobody had this problem before? How does one upgrade a production system to 7.x ?

---

<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:** [July 30, 2019, 12:08pm UTC](https://discuss.elastic.co/t/is-it-possible-to-upgrade-elastic-6-x-to-7-0-if-i-have-a-document-type/188506/2 "2019-07-30T12:08:46Z")

</div>

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