Skip to content

Commit d74552c

Browse files
Add collateMatch to PhraseSuggestion.Entry.Option
1 parent 53772b5 commit d74552c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/elasticsearch/client/elc/SearchDocumentResponseBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private static PhraseSuggestion getPhraseSuggestion(String name, List<Suggestion
219219
var phraseSuggestOptions = phraseSuggest.options();
220220
List<PhraseSuggestion.Entry.Option> options = new ArrayList<>();
221221
phraseSuggestOptions.forEach(optionES -> options
222-
.add(new PhraseSuggestion.Entry.Option(optionES.text(), optionES.highlighted(), optionES.score(), null)));
222+
.add(new PhraseSuggestion.Entry.Option(optionES.text(), optionES.highlighted(), optionES.score(), optionES.collateMatch())));
223223
entries.add(new PhraseSuggestion.Entry(phraseSuggest.text(), phraseSuggest.offset(), phraseSuggest.length(),
224224
options, null));
225225
});

0 commit comments

Comments
 (0)