mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-13 07:32:11 +00:00
Polishing
(cherry picked from commit dfc1be286cfea1b72dc441d1024be364b8578314) (cherry picked from commit fdc03cf29e8c297c110e95ac855698781ce20532)
This commit is contained in:
parent
6c4d101b46
commit
27954e83c2
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user