Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
(cherry picked from commit dfc1be2)
(cherry picked from commit fdc03cf)
  • Loading branch information
sothawo committed Apr 10, 2023
1 parent 6c4d101 commit 27954e8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ private Map<String, List<String>> getHighlightsAndRemapFieldNames(SearchDocument
}

return highlightFields.entrySet().stream().collect(Collectors.toMap(entry -> {
ElasticsearchPersistentProperty property = persistentEntity
.getPersistentPropertyWithFieldName(entry.getKey());
ElasticsearchPersistentProperty property = persistentEntity.getPersistentPropertyWithFieldName(entry.getKey());
return property != null ? property.getName() : entry.getKey();
}, Map.Entry::getValue));
}
Expand Down

0 comments on commit 27954e8

Please sign in to comment.