Skip to content

Conversation

@pquentin
Copy link
Member

No description provided.

* Must be greater than 0, less than 0.5, or exactly 1.
* The lower the probability, the fewer documents are matched.
*/
probability: float
Copy link
Contributor

Choose a reason for hiding this comment

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

Docs say float, but server says double

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, I should have checked that part, sorry. Done in 919eb559 (#2944).

Copy link
Contributor

@Anaethelion Anaethelion left a comment

Choose a reason for hiding this comment

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

Added a suggestion for what I believe is a typo.

*
* A single bucket aggregation that randomly includes documents in the aggregated results.
* Sampling provides significant speed improvement at the cost of accuracy.
* @doc_id search-aggregations-pipeline-random-sampler-aggregation
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @doc_id search-aggregations-pipeline-random-sampler-aggregation
* @doc_id search-aggregations-bucket-random-sampler-aggregation

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@l-trotta l-trotta left a comment

Choose a reason for hiding this comment

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

LGTM!

@pquentin pquentin merged commit 3c75c87 into main Sep 27, 2024
6 checks passed
@pquentin pquentin deleted the random-sampler branch September 27, 2024 09:26
github-actions bot pushed a commit that referenced this pull request Sep 27, 2024
* Add random sampler aggregation

* Address review comments

* Run make contrib

(cherry picked from commit 3c75c87)
github-actions bot pushed a commit that referenced this pull request Oct 2, 2024
* Add random sampler aggregation

* Address review comments

* Run make contrib

(cherry picked from commit 3c75c87)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants