Newbie indexing question

Sorry for the rather novice question. I am trying to index a large set of
data in which I have a field that is sometimes nested and other times not.
I have tried a variety of things with the mapping file but for some reason,
I always get an error when elasticsearch tries to index one of the
documents that has a nest field. Here is the error:

{
"create": {
"_index": "entities",
"_type": "concept",
"_id":
"http://experiment.worldcat.org/entity/work/data/118014578#Topic/frisyrer_1800_talet",
"status": 400,
"error": "MapperParsingException[failed to parse [schema:name]];
nested: ElasticsearchIllegalArgumentException[unknown property
[@language]]; "
}
}

Here are two example documents:

Doc 1

{
"@context": {
"bgn": "http://bibliograph.net/",
"dc": "http://purl.org/dc/elements/1.1/",
"library": "http://purl.org/library",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"schema": "http://schema.org/"
},
"@id":
"http://experiment.worldcat.org/entity/work/data/118014578#Topic/frisyrer_1800_talet",
"schema:name": {
"@language": "sv",
"@value": "Frisyrer--1800-talet"
}
}

*Notice the @language and @value nested fields.

DOC 2

{
"@context": {
"bgn": "http://bibliograph.net/",
"dc": "http://purl.org/dc/elements/1.1/",
"library": "http://purl.org/library",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"schema": "http://schema.org/"
},
"@id": "http://id.worldcat.org/fast/1205075",
"schema:name": "Ohio"
}

*Notice the schema:name field is just a string

I am trying to index JSON-LD, so if there are any recommendations on better
ways to do so, that would be great also.

Thanks,

Jeff Mixter

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d00e22a6-5cf3-453c-83fb-78f60312bb92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.