From 72ec96b1d1ddb29233ac9a4ab62b69e121c5d6fd Mon Sep 17 00:00:00 2001 From: Patrick Zhai Date: Fri, 10 Nov 2023 11:17:35 -0800 Subject: [PATCH] Fix NFAQuery in TestRegexpRandom2 (#12793) --- .../src/test/org/apache/lucene/search/TestRegexpRandom2.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/search/TestRegexpRandom2.java b/lucene/core/src/test/org/apache/lucene/search/TestRegexpRandom2.java index bf977cbe746..4b5f0eb5c08 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestRegexpRandom2.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestRegexpRandom2.java @@ -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);