Hi
Is it possible to set the null_value to different values for different doc type of same index?
I'm able to do it for version 1.4. I'm working on upgrading our cluster to 2.4 now and its erroring out.
{
"text "status": 400,
"error": {
"caused_by": {
"reason": "Mapper for [product] conflicts with existing mapping in other types:\n[mapper [product] is used by multiple types. Set update_all_types to true to update [null_value] across all types.]",
"type": "illegal_argument_exception"
},
"reason": "Failed to parse mapping [my_doc_type]: Mapper for [product] conflicts with existing mapping in other types:\n[mapper [product] is used by multiple types. Set update_all_types to true to update [null_value] across all types.]",
"type": "mapper_parsing_exception",
"root_cause": [
{
"reason": "Failed to parse mapping [my_doc_type]: Mapper for [product] conflicts with existing mapping in other types:\n[mapper [product] is used by multiple types. Set update_all_types to true to update [null_value] across all types.]",
"type": "mapper_parsing_exception"
}
]
}
}
I want to have something like...
{
"mappings": {
"type_one": {
"properties": {
"product": {
"type": "string",
"null_value": "type_one_value"
}
}
},
"type_two": {
"properties": {
"product": {
"type": "string",
"null_value": "type_two_value"
}
}
}
}