Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix corner case in REPEAT_MIN_MAX and clean up code
If a regex has e.g. `(foo){0,5}`, we shouldn't treat the expression as required. Instead, we should throw our hands in the air and return MatchAllDocs. Also, I realized that you can only reach the end of regexpToQuery if you have a BooleanQuery, so there's no need to type-check and cast before collapsing the single-clause case. Signed-off-by: Michael Froh <[email protected]>
- Loading branch information