mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-22 12:02:10 +00:00
DATAES-52 - Allow for mapping single element arrays to get around an inconsistency in elastic search using Multi Get and fields. See https://github.com/elasticsearch/elasticsearch/issues/3418
This commit is contained in:
parent
dd0ce8a947
commit
ab7c01b37c
@ -33,6 +33,7 @@ public class DefaultEntityMapper implements EntityMapper {
|
||||
public DefaultEntityMapper() {
|
||||
objectMapper = new ObjectMapper();
|
||||
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
objectMapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user