Skip to content

Commit 72ec96b

Browse files
authored
Fix NFAQuery in TestRegexpRandom2 (#12793)
1 parent a47ba33 commit 72ec96b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lucene/core/src/test/org/apache/lucene/search/TestRegexpRandom2.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ protected void assertSame(String regexp) throws IOException {
181181
0,
182182
RegexpQuery.DEFAULT_PROVIDER,
183183
0,
184-
MultiTermQuery.CONSTANT_SCORE_BLENDED_REWRITE,
184+
// TODO: The NFA query is not able to use rewrite method that will utilize the
185+
// concurrency
186+
MultiTermQuery.CONSTANT_SCORE_BOOLEAN_REWRITE,
185187
false);
186188
DumbRegexpQuery dumb = new DumbRegexpQuery(new Term(fieldName, regexp), RegExp.NONE);
187189

0 commit comments

Comments
 (0)