Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not return fieldstats information for fields that exist in the mapping but not in the index. #18212

Merged
merged 1 commit into from
May 9, 2016
Merged

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented May 9, 2016

In #17980 FieldStats was extended to report searchable/aggregatable fields on any mapped field.
Since then it was found that it's problematic to return information on fields that exist in the mapping but not in the index.
This PR reverts this behavior, stats on a mapped field with no values indexed will return null.

@jpountz
Copy link
Contributor

jpountz commented May 9, 2016

LGTM

@clintongormley clintongormley added >enhancement :Data Management/Stats Statistics tracking and retrieval APIs labels May 9, 2016
@jimczi jimczi merged commit ded91d5 into elastic:master May 9, 2016
@jimczi jimczi deleted the field_stats_null branch May 9, 2016 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Stats Statistics tracking and retrieval APIs >enhancement v5.0.0-alpha3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants