Skip to content

Commit d2e4611

Browse files
committed
Set noMatchSize on highlighting request
1 parent 55277a0 commit d2e4611

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/rank/textsimilarity/TextSimilarityRerankingRankFeaturePhaseRankShardContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public void prepareForFetch(SearchContext context) {
8888
int tokenSizeLimit = snippetRankInput.tokenSizeLimit();
8989
int fragmentSize = tokenSizeLimit * TOKEN_SIZE_LIMIT_MULTIPLIER;
9090
highlightBuilder.fragmentSize(fragmentSize);
91+
highlightBuilder.noMatchSize(fragmentSize);
9192
SearchHighlightContext searchHighlightContext = highlightBuilder.build(context.getSearchExecutionContext());
9293
context.highlight(searchHighlightContext);
9394
} catch (IOException e) {

0 commit comments

Comments
 (0)