Propagate scoring function through random sampler#116957
Merged
jan-elastic merged 7 commits intomainfrom Nov 20, 2024
Merged
Conversation
jan-elastic
commented
Nov 18, 2024
.../elasticsearch/search/aggregations/bucket/sampler/random/RandomSamplerAggregatorFactory.java
Outdated
Show resolved
Hide resolved
jan-elastic
commented
Nov 18, 2024
.../elasticsearch/search/aggregations/bucket/sampler/random/RandomSamplerAggregatorFactory.java
Show resolved
Hide resolved
Collaborator
|
Pinging @elastic/ml-core (Team:ML) |
Collaborator
|
Hi @jan-elastic, I've created a changelog YAML for you. |
Contributor
Author
|
Example request / response for the fix: |
Member
|
@jan-elastic I wonder how it would be with multiple layers of nesting? The original issue that @dgieselaar ran into I think had multiple layers of aggregations (random_sampler -> categorize_text -> top hits) |
benwtrent
reviewed
Nov 18, 2024
...ava/org/elasticsearch/search/aggregations/bucket/sampler/random/RandomSamplerAggregator.java
Outdated
Show resolved
Hide resolved
Contributor
Author
|
Regarding multiple layers of nesting: look like it works fine @benwtrent |
b27e007 to
cfe449a
Compare
benwtrent
reviewed
Nov 19, 2024
Member
benwtrent
left a comment
There was a problem hiding this comment.
I think for initial work, this is in a good place. Let's add some yaml testing and such.
cfe449a to
b09af6a
Compare
benwtrent
reviewed
Nov 20, 2024
...s/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/random_sampler.yml
Outdated
Show resolved
Hide resolved
Collaborator
|
Hi @jan-elastic, I've updated the changelog YAML for you. |
490fb1e to
bbdc84e
Compare
Collaborator
💔 Backport failed
You can use sqren/backport to manually backport by running |
jan-elastic
added a commit
that referenced
this pull request
Nov 20, 2024
* Propagate scoring function through random sampler. * Update docs/changelog/116957.yaml * Correct score mode in random sampler weight * Fix random sampling with scores and p=1.0 * Unit test with scores * YAML test * Add capability
elasticsearchmachine
pushed a commit
that referenced
this pull request
Nov 20, 2024
* Propagate scoring function through random sampler. * Update docs/changelog/116957.yaml * Correct score mode in random sampler weight * Fix random sampling with scores and p=1.0 * Unit test with scores * YAML test * Add capability
elasticsearchmachine
pushed a commit
that referenced
this pull request
Nov 20, 2024
* Propagate scoring function through random sampler. * Update docs/changelog/116957.yaml * Correct score mode in random sampler weight * Fix random sampling with scores and p=1.0 * Unit test with scores * YAML test * Add capability
rjernst
pushed a commit
to rjernst/elasticsearch
that referenced
this pull request
Nov 20, 2024
* Propagate scoring function through random sampler. * Update docs/changelog/116957.yaml * Correct score mode in random sampler weight * Fix random sampling with scores and p=1.0 * Unit test with scores * YAML test * Add capability
alexey-ivanov-es
pushed a commit
to alexey-ivanov-es/elasticsearch
that referenced
this pull request
Nov 28, 2024
* Propagate scoring function through random sampler. * Update docs/changelog/116957.yaml * Correct score mode in random sampler weight * Fix random sampling with scores and p=1.0 * Unit test with scores * YAML test * Add capability
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes: #110134