赞
踩
org.springframework.data.elasticsearch.BulkFailureException: Bulk operation has failures. Use ElasticsearchException.getFailedDocuments() for detailed messages [{Q37230=ElasticsearchException[Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse field [claims.founded] of type [date] in document with id 'Q37230'. Preview of field's value: '2009.12.10']]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=failed to parse date field [2009.12.10] with format [strict_date_optional_time||epoch_millis]]]; nested: ElasticsearchException[Elasticsearch exception [type=date_time_parse_exception, reason=date_time_parse_exception: Failed to parse with all enclosed parsers]];}] at org.springframework.data.elasticsearch.core.AbstractElasticsearchTemplate.checkForBulkOperationFailure(AbstractElasticsearchTemplate.java:529) ~[spring-data-elasticsearch-4.1.3.jar:4.1.3] at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.doBulkOperation(ElasticsearchRestTemplate.java:228) ~[spring-data-elasticsearch-4.1.3.jar:4.1.3] at org.springframework.data.elasticsearch.core.AbstractElasticsearchTemplate.bulkOperation(AbstractElasticsearchTemplate.java:302) ~[spring-data-elasticsearch-4.1.3.jar:4.1.3] at org.springframework.data.elasticsearch.core.AbstractElasticsearchTemplate.bulkIndex(AbstractElasticsearchTemplate.java:286) ~[spring-data-elasticsearch-4.1.3.jar:4.1.3] at org.springframework.data.elasticsearch.core.DocumentOperations.bulkIndex(DocumentOperations.java:174) ~[spring-data-elasticsearch-4.1.3.jar:4.1.3] at org.springframework.data.elasticsearch.core.AbstractElasticsearchTemplate.save(AbstractElasticsearchTemplate.java:183) ~[spring-data-elasticsearch-4.1.3.jar:4.1.3] at org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository.lambda$saveAll$8(SimpleElasticsearchRepository.java:211) ~[spring-data-elasticsearch-4.1.3.jar:4.1.3] at org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository.executeAndRefresh(SimpleElasticsearchRepository.java:376) ~[spring-data-elasticsearch-4.1.3.jar:4.1.3] at org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository.saveAll(SimpleElasticsearchRepository.java:211) ~[spring-data-elasticsearch-4.1.3.jar:4.1.3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_281] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_281] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_281] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_281] at org.springframework.data.repository.core.support.RepositoryMethodInvoker$RepositoryFragmentMethodInvoker.lambda$new$0(RepositoryMethodInvoker.java:289) ~[spring-data-commons-2.4.3.jar:2.4.3] ......
解决办法,将时间2009.12.10改成2009-12-10格式
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。