Elasticsearch does not work like that. Any node that holds a replica of a shard will write and reads can gio to any node. Why are you looking to restrict this? What is the high-level problem you are trying to solve?
This also seems to be a duplicate of this issue. Please do not open multiple issues on the same topic.