Skip to content
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

[Backport 13821] Support Dynamic Pruning in Cardinality Aggregation #14203

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

bowenlan-amzn
Copy link
Member

@bowenlan-amzn bowenlan-amzn commented Jun 11, 2024

Description

Backport #13821 Manually

The only conflict is in change log.

Related Issues

Resolves #11959

Check List

  • Functionality includes testing.
  • [ ] API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…t#13821)

* Cardinality aggregation dynamic pruning changes

Signed-off-by: bowenlan-amzn <[email protected]>

* Reading

Signed-off-by: bowenlan-amzn <[email protected]>

* remaining disjunction scorer full understand

Signed-off-by: bowenlan-amzn <[email protected]>

* utilize competitive iterator api to perform pruning

Signed-off-by: bowenlan-amzn <[email protected]>

* handle missing input

Signed-off-by: bowenlan-amzn <[email protected]>

* add change log

Signed-off-by: bowenlan-amzn <[email protected]>

* clean up

Signed-off-by: bowenlan-amzn <[email protected]>

* Clean up

Signed-off-by: bowenlan-amzn <[email protected]>

* Test fix

Signed-off-by: bowenlan-amzn <[email protected]>

* Do all the scoring within Cardinality

Signed-off-by: bowenlan-amzn <[email protected]>

* clean unnecessary

Signed-off-by: bowenlan-amzn <[email protected]>

* fix

Signed-off-by: bowenlan-amzn <[email protected]>

* Add dynamic flag for this feature

Signed-off-by: bowenlan-amzn <[email protected]>

* Add random test, small bug fix

Signed-off-by: bowenlan-amzn <[email protected]>

* address comment

Signed-off-by: bowenlan-amzn <[email protected]>

* Address comments

Signed-off-by: bowenlan-amzn <[email protected]>

* address comments

Signed-off-by: bowenlan-amzn <[email protected]>

---------

Signed-off-by: bowenlan-amzn <[email protected]>
Co-authored-by: Rishabh Maurya <[email protected]>
Copy link
Contributor

✅ Gradle check result for 6d67099: SUCCESS

@mch2 mch2 merged commit 5ad0f5d into opensearch-project:2.x Jun 12, 2024
52 checks passed
@bowenlan-amzn bowenlan-amzn deleted the backport13821 branch June 12, 2024 00:52
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…t#13821) (opensearch-project#14203)

* Cardinality aggregation dynamic pruning changes

* Reading

* remaining disjunction scorer full understand

* utilize competitive iterator api to perform pruning

* handle missing input

* add change log

* clean up

* Clean up

* Test fix

* Do all the scoring within Cardinality

* clean unnecessary

* fix

* Add dynamic flag for this feature

* Add random test, small bug fix

* address comment

* Address comments

* address comments

---------

Signed-off-by: bowenlan-amzn <[email protected]>
Co-authored-by: Rishabh Maurya <[email protected]>
Signed-off-by: kkewwei <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Search:Aggregations v2.15.0 Issues and PRs related to version 2.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants