use of org.springframework.data.elasticsearch.core.convert.ElasticsearchCustomConversions in project spring-data-elasticsearch by spring-projects.
the class ElasticsearchStringQueryUnitTestBase method setupConverter.
protected ElasticsearchConverter setupConverter() {
MappingElasticsearchConverter converter = new MappingElasticsearchConverter(new SimpleElasticsearchMappingContext());
Collection<Converter<?, ?>> converters = new ArrayList<>();
converters.add(ElasticsearchStringQueryUnitTests.CarConverter.INSTANCE);
CustomConversions customConversions = new ElasticsearchCustomConversions(converters);
converter.setConversions(customConversions);
converter.afterPropertiesSet();
return converter;
}
Aggregations