Elasticsearch: MapperParsingException[object mapping for [matched_details.C03BT006] tried to parse field [null] as object, but found a concrete value]

Created on 13 Jun 2017  路  7Comments  路  Source: elastic/elasticsearch

I defined the mapping like this:
"properties": { "id": { "type": "string", "index": "not_analyzed" }, "level": { "type": "string" }, "matched_sources": { "type": "string" }, "black_data": { "type": "string" }, "black_class": { "type": "string" }, "black_type": { "type": "string" }, "matched_details": { "type": "nested" } }

but when I loaded data to es,some cases would get this error:
tried to parse field [null] as object, but found a concrete value]

however,most of the cases are successful, and all the cases have the same format.
when I get the case that got error to http://json.cn/ to parse, it's really a json,I don't know
what's wrong about the es.

Most helpful comment

@bleskes Could I ask you some question about the datatype of ES. Here it is : I have a piece of data with the format of json, like this:
image

so, what kind of datatype do you think I should define for the field of "matched_details".
I'd appreciate it if you can help me with this.

All 7 comments

@wlxy can I ask you to ask these kind of questions on our forum. If this turns out to be a bug on the ES side, we can open an issue here, with a full reproduction, version etc. Cheers.

@bleskes That's would be great, thanks a lot.

@bleskes I'm sorry, but when I try to click the forum, I can not open the web.

@wlxy sorry, I didn't add the http prefix: http://discuss.elastic.co (I fixed the comment as well)

@bleskes Could I ask you some question about the datatype of ES. Here it is : I have a piece of data with the format of json, like this:
image

so, what kind of datatype do you think I should define for the field of "matched_details".
I'd appreciate it if you can help me with this.

@wlxy please ask these kind of things on our forum

@bleskes Sorry,I just can not open this web "http://discuss.elastic.co ",thanks anyway.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

malpani picture malpani  路  3Comments

clintongormley picture clintongormley  路  3Comments

DhairyashilBhosale picture DhairyashilBhosale  路  3Comments

rpalsaxena picture rpalsaxena  路  3Comments

brwe picture brwe  路  3Comments