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

Add max_expansions option to wildcard interval #1916

Merged

Conversation

mattweber
Copy link
Contributor

Description

Add support for setting the max expansions on a wildcard interval.
The default value is still 128 and the max value is bounded by
BooleanQuery.getMaxClauseCount().

Issues Resolved

#1857

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

@mattweber mattweber requested a review from a team as a code owner January 15, 2022 21:35
@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure df40fd7dcb6e780a97faf46ffeff980aa027743e
Log 1938

Reports 1938

@mattweber
Copy link
Contributor Author

Failure is unrelated to PR, please rerun.

Add support for setting the max expansions on a wildcard interval.
The default value is still 128 and the max value is bounded by
`BooleanQuery.getMaxClauseCount()`.

Signed-off-by: Matt Weber <matt@mattweber.org>
@mattweber mattweber force-pushed the wildcard_interval_max_expansions branch from 83fb289 to 4790ad8 Compare January 16, 2022 21:20
@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 83fb2891e6ed3c8714722b89ba46a34a853cbaa0
Log 1944

Reports 1944

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 4790ad8
Log 1945

Reports 1945

Signed-off-by: Matt Weber <matt@mattweber.org>
@mattweber mattweber mentioned this pull request Jan 17, 2022
5 tasks
@mattweber
Copy link
Contributor Author

Thanks for the review @reta, I have pushed up the change.

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure f4b8913
Log 1954

Reports 1954

@owaiskazi19
Copy link
Member

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success f4b8913
Log 1972

Reports 1972

@mattweber
Copy link
Contributor Author

@nknize can you please take a look at this when you have a chance?

Copy link
Collaborator

@nknize nknize left a comment

Choose a reason for hiding this comment

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

LGTM! Thx @mattweber

@nknize nknize merged commit 3b8db91 into opensearch-project:main Jan 26, 2022
@mattweber
Copy link
Contributor Author

thanks @nknize, can I backport it?

@nknize
Copy link
Collaborator

nknize commented Jan 26, 2022

Yes please! Thx!

@mattweber
Copy link
Contributor Author

@nknize @reta in the backport do I update the version checks? Would I also need to change the check in main as well?

in.getVersion().onOrAfter(Version.V_2_0_0)

@reta
Copy link
Collaborator

reta commented Jan 26, 2022

@nknize @reta in the backport do I update the version checks? Would I also need to change the check in main as well?

in.getVersion().onOrAfter(Version.V_2_0_0)

@mattweber Yes, basically you change it to V_1_3_0 and (sadly) it needs one more PR to master to change V_2_0_0 to V_1_3_0, otherwise backward compatibility tests will fail, thank you

mattweber added a commit to mattweber/OpenSearch that referenced this pull request Jan 26, 2022
Add support for setting the max expansions on a wildcard interval.
The default value is still 128 and the max value is bounded by
`BooleanQuery.getMaxClauseCount()`.

Signed-off-by: Matt Weber <matt@mattweber.org>
mattweber added a commit to mattweber/OpenSearch that referenced this pull request Jan 26, 2022
Change from 2x to 1.3 for wildcard interval max_expansion version check
since opensearch-project#1916 was backported.

Signed-off-by: Matt Weber <matt@mattweber.org>
nknize pushed a commit that referenced this pull request Jan 26, 2022
Add support for setting the max expansions on a wildcard interval.
The default value is still 128 and the max value is bounded by
`BooleanQuery.getMaxClauseCount()`.

Signed-off-by: Matt Weber <matt@mattweber.org>
andrross pushed a commit that referenced this pull request Jan 27, 2022
Change from 2x to 1.3 for wildcard interval max_expansion version check
since #1916 was backported.

Signed-off-by: Matt Weber <matt@mattweber.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants