I have a template when indices get created to route to box_type: hot. Then I run curator and say allocate to box_type: cold. If I check the index settings after running curator I see the following:
"index": {
"routing": {
"allocation": {
"require": {
"box_type": "cold"
}
}
},
"refresh_interval": "5s",
"number_of_shards": "5",
"index": {
"routing": {
"allocation": {
"require": {
"box_type": "hot"
}
}
}
},
Why does the setting tell be I have both box_type cold, then further down box_type hot. Is this correct? Will elasticsearch just see the change in allocation and use only the first one ? Am I doing something wrong?