Skip to content

Consider Document as simple type #1675

Closed
@crazyjurich

Description

@crazyjurich

Adding spring-data-elasticsearch to spring project causes multiple warnings in app log, like:
o.s.d.c.CustomConversions - Registering converter from class org.springframework.data.elasticsearch.core.geo.GeoJsonMultiPoint to interface java.util.Map as writing converter although it doesn't convert to a store-supported type! You might want to check your annotation setup at the converter implementation.
More log lines here: log.txt

First of all app shouldn't behave like this, especially considering these converters are not used. And secondly, error message looks irrelevant for me, looks like it was initially created for user converters.

Related classes are:
org/springframework/data/convert/CustomConversions.java
org/springframework/data/elasticsearch/core/convert/ElasticsearchCustomConversions.java

Workaround: https://stackoverflow.com/questions/60001034/how-to-remove-spring-data-customconversions-warnings-from-application-startup

Related issue: spring-projects/spring-data-commons#2043

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions