Skip to content

[6.x] Add explicit format parameter to docvalue_fields requests (#22771)#22837

Merged
Bargs merged 1 commit intoelastic:6.xfrom
Bargs:backport/22771/6.x
Sep 7, 2018
Merged

[6.x] Add explicit format parameter to docvalue_fields requests (#22771)#22837
Bargs merged 1 commit intoelastic:6.xfrom
Bargs:backport/22771/6.x

Conversation

@Bargs
Copy link
Copy Markdown
Contributor

@Bargs Bargs commented Sep 7, 2018

Fixes #22484

Elasticsearch 6.4 added an optional format parameter for doc_value
fields. In 6.x if the param is not included it defaults to returning
the same values we see in scripted fields. In 7.0 this is changing to
use the mapping configured format by default. In kibana we want our date
values in ISO format, so this PR future proofs us for 7.0. It also eliminates
deprecation warnings ES is returning due to the missing param, which is
currently spamming some users.

…2771)

Fixes elastic#22484

Elasticsearch 6.4 added an optional `format` parameter for doc_value
fields. In 6.x if the param is not included it defaults to returning
the same values we see in scripted fields. In 7.0 this is changing to
use the mapping configured format by default. In kibana we want our date
values in ISO format, so this PR future proofs us for 7.0. It also eliminates
deprecation warnings ES is returning due to the missing param, which is
currently spamming some users.
@Bargs Bargs added the backport This PR is a backport of another PR label Sep 7, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@Bargs Bargs merged commit 108b524 into elastic:6.x Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants