Definition of path based analyzer for nested documents

Hello!

Out data model in ES roughly looks as follows:

{
"translation" : {
"_id" : {
"path" : "id"
},
"_all" : {
"enabled" : "false"
},
"dynamic" : "strict",
"properties" : {
"id" : { "type" : "string", "index" :
"not_analyzed" },
"groupId" : { "type" : "string", "index" :
"not_analyzed" },
"segments" : {
"type" : "nested",
"_analyzer" : {
"path" : "analyzer_name"
},
"properties" : {
"id" : { "type" : "string", "index" :
"not_analyzed" },
"analyzer_name" : { "type" : "string", "index" :
"not_analyzed" },
"type" : { "type" : "string", "index" :
"not_analyzed" },
"lang" : { "type" : "string", "index" :
"not_analyzed" },
"content" : { "type" : "string" }
}
}
}
}
}

So we basically model a translation entity as a document which can contain
an arbitrary number of nested documents - each holding the translation for
a specific language.
What I'm trying to achieve is to define a language specific analyzer for
the content field based on the value of the analyzer_name field. While the
mapping can be created without problems it seems that the analyzer defined
in the analyzer_name field is not used but instead the content of each
nested document is analyzed using the default analyzer.
As far as I understand nested documents are internally indexed as separate
documents, so it would be interesting why this is not possible. Or am I
missing some important point here?

br,

Christian

--
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/f47adce9-d8cb-4bc6-a5b4-7b39371c2203%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.