Polishing

(cherry picked from commit dfc1be286cfea1b72dc441d1024be364b8578314)
(cherry picked from commit fdc03cf29e8c297c110e95ac855698781ce20532)
This commit is contained in:
Peter-Josef Meisch 2023-04-10 11:22:45 +02:00
parent 6c4d101b46
commit 27954e83c2
No known key found for this signature in database
GPG Key ID: DE108246970C7708

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));
}