A large number of resource locating algorithms have been proposed in peer-to-peer (P2P) networks. However, the query efficiency of most existing methods is limited to large-scale P2P networks. In this paper, we propose a new decentralized P2P architecture, by taking advantage of the heterogeneous characters of nodes to integrate the resources of stable nodes, and simplify the management of dynamic nodes based on two different types of clustering. In our proposed architecture, group-based semantic overlay network is formed by node clustering and resources of stable nodes are organized by a set of cooperative resource clustering frameworks. When a query is generated, it will be first processed in local group, and if it fails to hit the targets, it will be relayed to the resource clustering frameworks. Simulation shows that this architecture can greatly reduce the search traffic in large-scale P2P networks.