Hello everyone,
I encoutered a very strange behavior causing query error due to invalid type.
On a project I create several indexes with the same mapping, but different names
"anSampleOriginalIndex" : {
"mappings" : {
"properties" : {
"action" : {
"type" : "keyword",
},
"device_type" : {
"type" : "keyword",
},
}
}
But some indexes found out with this mapping
"indexAltered" : {
"mappings" : {
"properties" : {
"action" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"device_type" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
}
}
As you can see all my properties became text with a keyword field instead of the original mapping.
Dynamic mapping is disabled on each index.
The only difference I notified in kibana' index management page, it's replica for the altered mapping indexes was set to 1.
How come it be possible without dynamic mapping?
Thanks in advance!