Polishing
(cherry picked from commitdfc1be286c) (cherry picked from commitfdc03cf29e)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user