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

Allow configurabe max_expansions on wildcard interval #1857

Closed
mattweber opened this issue Jan 6, 2022 · 1 comment
Closed

Allow configurabe max_expansions on wildcard interval #1857

mattweber opened this issue Jan 6, 2022 · 1 comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing & Search

Comments

@mattweber
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It is currently impossible to change the max expansions setting on a wildcard interval even though lucene allows it.

Describe the solution you'd like
Add a max_expansions setting in turn uses the lucene Intervals.wildcard(BytesRef wildcard, int maxExpansions) api. Default's can stay as-is but this would give the user ability increase the expansions. Even if the user goes crazy with this setting it is still further protected by lucene BooleanQuery.getMaxClauseCount().

Describe alternatives you've considered
Making intervals pluggable so users can create the own wildcard interval exposing this setting. I would love to see this but might not be needed if you expose more of the lucene interval functionality.

Additional context
Intervals are future and users wishing to migrate from a multi term span query would need this option.

@mattweber mattweber added enhancement Enhancement or improvement to existing feature or request untriaged labels Jan 6, 2022
@mattweber
Copy link
Contributor Author

BTW, I am willing to do this work if it has a chance of being accepted.

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 Indexing & Search
Projects
None yet
Development

No branches or pull requests

2 participants