Fix NFAQuery in TestRegexpRandom2 (#12793)

This commit is contained in:
Patrick Zhai 2023-11-10 11:17:35 -08:00 committed by GitHub
parent a47ba3369f
commit 72ec96b1d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -181,7 +181,9 @@ public class TestRegexpRandom2 extends LuceneTestCase {
0,
RegexpQuery.DEFAULT_PROVIDER,
0,
MultiTermQuery.CONSTANT_SCORE_BLENDED_REWRITE,
// TODO: The NFA query is not able to use rewrite method that will utilize the
// concurrency
MultiTermQuery.CONSTANT_SCORE_BOOLEAN_REWRITE,
false);
DumbRegexpQuery dumb = new DumbRegexpQuery(new Term(fieldName, regexp), RegExp.NONE);