Add support for $bottomN aggregation operator.

Closes #4139
Original pull request: #4182.
This commit is contained in:
Christoph Strobl
2022-09-22 10:55:19 +02:00
committed by Mark Paluch
parent 052cfdfd45
commit 59464f3b3c
5 changed files with 59 additions and 8 deletions

View File

@@ -82,7 +82,7 @@ At the time of this writing, we provide support for the following Aggregation Op
| `setEquals`, `setIntersection`, `setUnion`, `setDifference`, `setIsSubset`, `anyElementTrue`, `allElementsTrue`
| Group/Accumulator Aggregation Operators
| `addToSet`, `covariancePop`, `covarianceSamp`, `expMovingAvg`, `first`, `last`, `max`, `min`, `avg`, `push`, `sum`, `count` (+++*+++), `stdDevPop`, `stdDevSamp`
| `addToSet`, `bottom`, `bottomN`, `covariancePop`, `covarianceSamp`, `expMovingAvg`, `first`, `last`, `max`, `min`, `avg`, `push`, `sum`, `count` (+++*+++), `stdDevPop`, `stdDevSamp`
| Arithmetic Aggregation Operators
| `abs`, `acos`, `acosh`, `add` (+++*+++ via `plus`), `asin`, `asin`, `atan`, `atan2`, `atanh`, `ceil`, `cos`, `cosh`, `derivative`, `divide`, `exp`, `floor`, `integral`, `ln`, `log`, `log10`, `mod`, `multiply`, `pow`, `round`, `sqrt`, `subtract` (+++*+++ via `minus`), `sin`, `sinh`, `tan`, `tanh`, `trunc`
@@ -120,9 +120,6 @@ At the time of this writing, we provide support for the following Aggregation Op
| Script Aggregation Operators
| `function`, `accumulator`
| Selection Aggregation Operators
| `bottom`
|===
+++*+++ The operation is mapped or added by Spring Data MongoDB.