"Type" deprecation warnings

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?

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

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

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