Hi
I have a 9 data nodes, what kind of settings should I use for insure allocation one index with 9 shards and 1 replica for (one primary shard per data node)???
You can not control where primary shards are placed, but not having primaries evenly spread out is generally not an issue as primaries and replicas generally do the same work.
In order to force a maximum of 2 shards to be allocated per node (any combination of primary and replicas) you can use the total shards per node index setting, but be aware that this may prevent replicas to be reallocated of you were to lose one or more nodes.
ok. so my thoughts are if I have one primary shard from one index on each of node it could be much better performance, of course NW will be covered that good condition in search
If you have 2 primary shards or 2 replica shards on a node should make very little difference, if any.
so during search primary shards and replicas are involved in the same priority in search performance?
Yes. Each search request will hit one of the shards (equal probability) unless you explicitly specify it should prioritise primaries or replicas.
which one parameter is handling for such priority in search
I would recommend not trying to control this as the default behaviour generally is very good and can handle changes and issues in the cluster. If you still want to experiment with it it is done by by specifying preference as part of the search request.