-
Notifications
You must be signed in to change notification settings - Fork 18
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
(dsl): Support Percentile ranks
aggregation
#366
(dsl): Support Percentile ranks
aggregation
#366
Conversation
Percentile ranks
aggregation
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.
Nice job!
Please rebase this PR, and put this aggregation into the Filter
aggregation too.
``` | ||
|
||
You can find more information about `Percentile ranks` aggregation [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-rank-aggregation.html). | ||
|
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.
Is there one or two empty spaces at the end? If two, omit one.
* parameters. | ||
* | ||
* @param field | ||
* the type-safe field for which stats aggregation will be executed |
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.
* the type-safe field for which stats aggregation will be executed | |
* the type-safe field for which percentile ranks aggregation will be executed |
final def percentileRanksAggregation[A: Numeric]( | ||
field: Field[_, A], | ||
name: String, | ||
values: Int* |
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.
Can there be zero values?
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.
Also, you are missing values
in scaladoc.
* parameters. | ||
* | ||
* @param field | ||
* the field for which stats aggregation will be executed |
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.
* the field for which stats aggregation will be executed | |
* the field for which percentile ranks aggregation will be executed |
* an instance of [[zio.elasticsearch.aggregation.PercentileRanksAggregation]] that represents percentile ranks | ||
* aggregation to be performed. | ||
*/ | ||
final def percentileRanksAggregation(field: String, name: String, values: Int*): PercentileRanksAggregation = |
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.
Missing values
in scaladoc.
modules/library/src/main/scala/zio/elasticsearch/aggregation/Aggregations.scala
Show resolved
Hide resolved
93dbe19
to
23ad012
Compare
aceb9b0
to
3bcdf89
Compare
Part of #118