*bump*

Does anyone know if upgrading an existing field with a specified analyzer 
to a multi-field has been fixed in the recent versions of ElasticSearch?

On Monday, July 7, 2014 5:15:06 PM UTC-6, Ryan Tanner wrote:
>
> 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/f59655a2-1ffe-4d64-8e25-7113a264ecaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to