# "Type" deprecation warnings

**URL:** <https://discuss.elastic.co/t/type-deprecation-warnings/67038>\
**Category:** Elasticsearch\
**Created:** [November 23, 2016, 10:42pm UTC](https://discuss.elastic.co/t/type-deprecation-warnings/67038 "2016-11-23T22:42:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Barham](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Sam\_Barham](https://discuss.elastic.co/u/Sam_Barham)\
**Post date:** [November 23, 2016, 10:42pm UTC](https://discuss.elastic.co/t/type-deprecation-warnings/67038/1 "2016-11-23T22:42:23Z")

</div>

I've recently started using ES 5.0 on Elastic Cloud. The logs are showing me lots of warnings of the form:

[WARN][org.elasticsearch.deprecation.common.ParseField] Deprecated field [type] used, replaced by [match\_phrase and match\_phrase\_prefix query]

I don't know where to look to fix these warnings, and Google isn't showing me anything. Any hints?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [November 25, 2016, 3:09pm UTC](https://discuss.elastic.co/t/type-deprecation-warnings/67038/2 "2016-11-25T15:09:23Z")

</div>

I suspect you are using a `match` query with eg. `type: phrase`, which should be replaced with a `match_phrase` query.

---

<div class="post-metadata">

**Author:** ![Sam\_Barham](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Sam\_Barham](https://discuss.elastic.co/u/Sam_Barham)\
**Post date:** [November 29, 2016, 3:52am UTC](https://discuss.elastic.co/t/type-deprecation-warnings/67038/3 "2016-11-29T03:52:09Z")

</div>

I figured out what it was - logstash was applying a pre-5.0 template to the logs, which was then causing all the warnings

---

<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:** [December 27, 2016, 3:52am UTC](https://discuss.elastic.co/t/type-deprecation-warnings/67038/4 "2016-12-27T03:52:32Z")

</div>

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