-
Notifications
You must be signed in to change notification settings - Fork 795
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
Fix index field count #675
Fix index field count #675
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're missing the DCO. The check has instructions for how to fix.
I'm not sure this takes into account a situation where both type and properties are set. I'm not sure if these are mutually exclusive, but if not these would potentially double count those fields.
@sysadmind , thank you for the quick feedback. I will address those required changes you pointed out. As for counting a mapping where both type and property are set, although the type
Having said that, the possibility is a valid edge case that should be accounted for, so I'll go ahead and make the modification to take that into account. Thank you for bringing that up. |
…indices_mappings feature Signed-off-by: Alain Lefebvre <[email protected]>
Signed-off-by: Alain Lefebvre <[email protected]>
… field is set to object as it will be counted in the recursion case Signed-off-by: Alain Lefebvre <[email protected]>
Signed-off-by: Alain Lefebvre <[email protected]>
183ea6a
to
7e902c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thanks!
BREAKING CHANGES: The flag `--es.cluster_settings` has been renamed to `--collector.clustersettings`. * [CHANGE] Rename --es.cluster_settings to --collector.clustersettings * [FEATURE] Add ILM metrics #513 * [ENHANCEMENT] Add ElasticCloud node roles to role label #652 * [ENHANCEMENT] Add ability to use AWS IAM role for authentication #653 * [ENHANCEMENT] Add metric for index replica count #483 * [BUGFIX] Set elasticsearch_clusterinfo_version_info guage to 1 #728 * [BUGFIX] Fix index field counts with nested fields #675 --------- Signed-off-by: Joe Adams <[email protected]>
This change applies a small modification that adds 1 to the field count prior to recursively counting the other nested fields in the mapping. (Issue #674)