Hi all,
I'm new to Elasticsearch and I'm trying to bulk-insert into Elasticsearch using python
After I read in the data using pandas, I created an index:
es = Elasticsearch()
es.indices.create(
index="cars",
mappings={
"properties": {
"manufacture_year": {
"type": "date",
},
"engine_displacement": {
"type": "date",
},
"date_created": {
"type": "date",
"format": ["yyyy-MM-dd HH:mm:ss.SSSSSSZ"]
},
"date_last_seen": {
"type": "date",
"format": ["yyyy-MM-dd HH:mm:ss.SSSSSZ"]
}
}
}
)
But I got errors when I was bulk-inserting and the errors were on date_created and date_last_seen
date_created sample: 2015-11-14 18:10:06.838319+00
date_last_seen sample: 2016-01-27 20:40:15.46361+00
'type': 'illegal_argument_exception', 'reason': 'failed to parse date field [2015-11-14 18:10:06.838319+00] with format [[yyyy-MM-dd HH:mm:ss.SSSSSSZ]]', 'caused_by': {'type': 'date_time_parse_exception', 'reason': "Text '2015-11-14 18:10:06.838319+00' could not be parsed, unparsed text found at index 0
what is that "unparsed text found at index 0"? I can't find any errors at index 0
Best Wishes
Steven Zeng
