Skip to content

Conversation

@Mpdreamz
Copy link
Member

@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.

3 participants