Polishing

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

View File

@ -155,8 +155,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));
}