A tree , in an edge-colored graph , is called a if no two edges of are assigned the same color. A - of is an edge coloring of having the property that for every set of vertices of , there exists a rainbow tree in such that . The minimum number of colors needed in a -rainbow coloring of is the - of , denoted by . In this paper, we investigate the -rainbow index of a connected graph . For a connected graph , it is shown that a sharp upper bound of is , where is a connected 3-way dominating set and a connected 2-dominating set of . Moreover, we determine a sharp upper bound for () and a better bound for -free graphs, respectively. Finally, a sharp bound for the -rainbow index of general graphs is obtained.