-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Propagate scoring function through random sampler #116957
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
Conversation
.../elasticsearch/search/aggregations/bucket/sampler/random/RandomSamplerAggregatorFactory.java
Outdated
Show resolved
Hide resolved
.../elasticsearch/search/aggregations/bucket/sampler/random/RandomSamplerAggregatorFactory.java
Show resolved
Hide resolved
|
Pinging @elastic/ml-core (Team:ML) |
|
Hi @jan-elastic, I've created a changelog YAML for you. |
|
Example request / response for the fix: |
|
@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) |
...ava/org/elasticsearch/search/aggregations/bucket/sampler/random/RandomSamplerAggregator.java
Outdated
Show resolved
Hide resolved
|
Regarding multiple layers of nesting: look like it works fine @benwtrent |
b27e007 to
cfe449a
Compare
benwtrent
left a comment
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.
I think for initial work, this is in a good place. Let's add some yaml testing and such.
cfe449a to
b09af6a
Compare
...s/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/random_sampler.yml
Outdated
Show resolved
Hide resolved
|
Hi @jan-elastic, I've updated the changelog YAML for you. |
490fb1e to
bbdc84e
Compare
benwtrent
left a comment
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.
![]()
💔 Backport failed
You can use sqren/backport to manually backport by running |
* 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
* 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
* 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
* 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
* 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
fixes: #110134