Index failure MapperParsingException

I'm trying to index my json file with command "curl -XPOST 'http://localhost:9200/mgi_2/11' -d @/Users/yzhou9/WG3-MetadataSpecifications/json-instances/datacommons/MGI_0928/jsonld/dats_MGI_99205.json" via elasticsearch 1.7.

Then I got the error message: "{"error":"MapperParsingException[failed to parse [isAbout.extraProperties.values]]; nested: ElasticsearchIllegalArgumentException[unknown property [@type]]; ","status":400}"

I tried to use dynamic mapping by curl -XPUT 'http://localhost:9200/mgi_2/' -d '{"index":{"index.query.parse.allow_unmapped_fields": true}}' but it still doesn't work.

My json file is in this format:
{
"@type": "Dataset",
"@id": "http://127.0.0.1/TMPID/0e6cww7k-b62s-zcf5-qz4z-8mol4agvo0n4",
"@context": [
"http://datatagsuite.github.org/dats/context/sdo/dataset_sdo_context.jsonld",
"http://datatagsuite.github.org/dats/context/obo/dataset_sdo_context.jsonld"
],
"isAbout": [
{
"extraProperties": [
{
"@type": "CategoryValuesPair",
"@id": "http://127.0.0.1/TMPID/0e6cww7k-b62s-zcf5-qz4z-8mol4agvo0n4",
"@context": [
"http://datatagsuite.github.org/dats/context/sdo/category_values_pair_sdo_context.jsonld",
"http://datatagsuite.github.org/dats/context/obo/category_values_pair_sdo_context.jsonld"
],
"values": [
"HGNC"
],
"category": "predictionMethodsMatched"
},
{
"values": [
"HGNC"
],
"@type": "CategoryValuesPair",
"@id": "http://127.0.0.1/TMPID/0e6cww7k-b62s-zcf5-qz4z-8mol4agvo0n4",
"@context": [
"http://datatagsuite.github.org/dats/context/sdo/category_values_pair_sdo_context.jsonld",
"http://datatagsuite.github.org/dats/context/obo/category_values_pair_sdo_context.jsonld"
],
"category": "predictionMethodsMatched"
}
]
}
]
}

Thank you very much!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.