I'm having trouble upgrading an existing field to a multi-field. I've done
this before with no issues on other fields.
I think the issue here is that the original mapping specifically defines an
analyzer:
"mappings" : {
"person" : {
"properties" : {
"domain_titles" : {
"type" : "string",
"analyzer" : "stop",
"include_in_all" : true
}
}
}
}
The other fields that have been upgraded do not have an analyzer in the
original mapping.
This is the upgrade I'm attempting:
{
"settings" : {
"index.analysis.filter.shingle_filter.type" : "shingle",
"index.analysis.filter.shingle_filter.min_shingle_size" : 2,
"index.analysis.filter.shingle_filter.max_shingle_size" : 5,
"index.analysis.analyzer.shingle_analyzer.type" : "custom",
"index.analysis.analyzer.shingle_analyzer.tokenizer" : "standard",
"index.analysis.analyzer.shingle_analyzer.filter" : [ "lowercase",
"shingle_filter" ]
},
"mappings" : {
"person" : {
"properties" : {
"domain_titles" : {
"type" : "string",
"fields" : {
"suggestions" : {
"type" : "string",
"index" : "analyzed",
"include_in_all" : false,
"analyzer" : "nicknameAnalyzer"
}
}
}
}
}
}
}
Is there any reason why this sort of upgrade should fail? This is the
error message I get:
{"error":"MergeMappingException[Merge failed with failures {[mapper
[domain_titles] has different index_analyzer]}]","status":400}
Thanks for the help.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e057498d-64ca-4f5f-a76c-0a4717b82b9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.