Polishing

(cherry picked from commit dfc1be286c)
(cherry picked from commit fdc03cf29e)
This commit is contained in:
Peter-Josef Meisch
2023-04-10 11:22:45 +02:00
parent 6c4d101b46
commit 27954e83c2

View File

@@ -153,8 +153,7 @@ public class SearchHitMapping<T> {
}
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));
}