You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Plain Highlighter ordering for none (#74084) (#74912)
The plain highlighter should order the fragments by order of appearance by
default, but sorts them by score internally. This fix changes the sorting
comparator in case ordering by score is not selected (the default) and adds
testing around this.
Closes#58236
Copy file name to clipboardExpand all lines: server/src/internalClusterTest/java/org/elasticsearch/search/fetch/subphase/highlight/HighlighterSearchIT.java
+47-2Lines changed: 47 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -698,15 +698,60 @@ public void testPlainHighlighter() throws Exception {
698
698
.setSource("field1", "this is a test", "field2", "The quick brown fox jumps over the lazy dog").get();
699
699
refresh();
700
700
701
-
logger.info("--> highlighting and searching on field1");
0 commit comments