Template priority explanation

Hi all,

I'm trying to change the number_of_replicas of some indexes, applying a loosely index_patterns but... I'm struggling with priority.

If I make a change on number_of_replicas and define a priority 1 on my new template and some other template with priority 3 applies to the same index but lacks the number_of_replicas definition, it will be applied?

So my template:

{
  "priority": 1,
  "index_patterns": [
    "xpto*"
  ],
  "template": {
    "aliases": {},
    "settings": {
      "index": {
        "number_of_replicas": 0
      }
    }
  }
}

The other template

{
  "priority": 3,
  "index_patterns": [
    "xpto*"
  ],
  "template": {
    "aliases": {},
    "mappings": {
      ...
    }
  }
}

If it will not apply the number_of_replicas how can I make it to work without change the highest priority template?

Thank you, Pedro