Can a "multi_type" type contain different "token_count"s for the different fields?

Hello - I have a es mapping that looks like this for a "multi_field" type:

"Name": {
"type": "multi_field",
"path" : "just_name",
"fields" : {
"Name" : {"store" : "no","type" : "string"},
"Name_TC": {"type": "token_count","analyzer" : "simple", "store"
: "no"},
"Name_Std" : {"store" : "no", "type" : "string"},
"Name_Std_NA" : {"store" : "no", "type" : "string", "index" :
"not_analyzed"}, }
}

This stores the token counts for the "Name" field. Great.

Now if I wanted to also store the token counts for the "Name_Std" field,
how would I do it?

"Name": {
"type": "multi_field",
"path" : "just_name",
"fields" : {
"Name" : {"store" : "no","type" : "string"},
"Name_TC": {"type": "token_count","analyzer" : "simple", "store"
: "no"},
"Name_Std" : {"store" : "no", "type" : "string"},
"Name_Std_TC": {"type": "token_count","analyzer" : "simple",
"store" : "no"},
"Name_Std_NA" : {"store" : "no", "type" : "string", "index" :
"not_analyzed"}, }
}

I tried this adding: "Name_Std_TC": {"type": "token_count","analyzer" :
"simple", "store" : "no"},
but clearly this will not work because I did not specify what field the
Name_Std_TC should store the token count for, so it counts the tokens in
the default field of "Name".

Is there a way to specify the field name fore a multi_field type to get the
token count for that specific field?

Thanks!

--
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/4d763748-11ab-42c1-805f-7133cccc96a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.