Is it possible to have a mapping for a field that is both multi-valued and
has properties? If I have a title field and I want to support both language
specific and non-language specific versions of the field
{
"book" :{
"title": {
"type":"multi_field",
"fields":{
"title":{
"type": "string",
"index": "analyzed"
},
"untouched":{
"type": "string",
"index": "not_analyzed",
}
}
"properties":{
"en":{
"type": "multi_field",
"fields": {
"en": {
"type": "string",
"index": "analyzed"
},
"untouched": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}
}
I want be able to index both documents below with the above mapping.
This works OK.
{
"book":{
"description": "Enterprise Search"
}
}
This fails with {"error":"MapperParsingException[failed to parse
[description]]; nested: Elastic
SearchIllegalArgumentException[unknown property [en]]; ","status":400}
{
"book":{
"description": {
"en":"Enterprise Search"
}
}
}
--
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.
For more options, visit https://groups.google.com/groups/opt_out.