mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-08 13:12:10 +00:00
Polishing
This commit is contained in:
parent
1f7fa77c15
commit
dfc1be286c
@ -155,8 +155,7 @@ public class SearchHitMapping<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return highlightFields.entrySet().stream().collect(Collectors.toMap(entry -> {
|
return highlightFields.entrySet().stream().collect(Collectors.toMap(entry -> {
|
||||||
ElasticsearchPersistentProperty property = persistentEntity
|
ElasticsearchPersistentProperty property = persistentEntity.getPersistentPropertyWithFieldName(entry.getKey());
|
||||||
.getPersistentPropertyWithFieldName(entry.getKey());
|
|
||||||
return property != null ? property.getName() : entry.getKey();
|
return property != null ? property.getName() : entry.getKey();
|
||||||
}, Map.Entry::getValue));
|
}, Map.Entry::getValue));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user