当前位置:   article > 正文

Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse field [claims.founded_bulk operation has failures. use bulkfailureexcept

bulk operation has failures. use bulkfailureexception.getfaileddocuments() f

ES 导入时间格式错误

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] 
 	......
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16

解决办法,将时间2009.12.10改成2009-12-10格式

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/817575
推荐阅读
相关标签
  

闽ICP备14008679号