File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
server/src/test/java/org/elasticsearch/index/similarity Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,6 @@ public double execute(
152152 dir .close ();
153153 }
154154
155- @ AwaitsFix (bugUrl = "https://github.com/elastic/elasticsearch/issues/128502" )
156155 public void testInitScript () throws IOException {
157156 final AtomicBoolean initCalled = new AtomicBoolean ();
158157 SimilarityWeightScript .Factory weightScriptFactory = () -> {
@@ -189,7 +188,8 @@ public double execute(
189188
190189 StackTraceElement [] stackTraceElements = Thread .currentThread ().getStackTrace ();
191190 if (Arrays .stream (stackTraceElements ).anyMatch (ste -> {
192- return ste .getClassName ().endsWith (".TermScorer" ) && ste .getMethodName ().equals ("score" );
191+ return ste .getClassName ().endsWith (".TermScorer" )
192+ && (ste .getMethodName ().equals ("score" ) || ste .getMethodName ().equals ("nextDocsAndScores" ));
193193 }) == false ) {
194194 // this might happen when computing max scores
195195 return Float .MAX_VALUE ;
You can’t perform that action at this time.
0 commit comments