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

Add support for weighted average aggregation #3417

Merged
merged 4 commits into from
Oct 17, 2018
Merged

Conversation

@Mpdreamz Mpdreamz mentioned this pull request Sep 24, 2018
89 tasks
Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, think the ValueType mapped as an enum would make the values more discoverable

[JsonProperty("value_type")]
// TODO map as on server enum ?
// https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/search/aggregations/support/ValueType.java
string ValueType { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weighted Avg Aggregation is not marked as beta or experimental, so mapping as an enum might be better, as it would help guide users as to which values are supported.

@russcam russcam merged commit fdb05e8 into 6.4 Oct 17, 2018
@russcam russcam deleted the feature/weighted-average-agg branch October 18, 2018 09:45
russcam pushed a commit that referenced this pull request Oct 26, 2018
This commit adds support for weighted average aggregation

(cherry picked from commit fdb05e8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants