The invention discloses a distributed real-time search engine based on p2p. A cluster of the distributed real-time search engine comprises a plurality of nodes, each node comprises more than one index, each index is divided into more than one index fragmentation, and each index fragmentation only comprises a main fragmentation or simultaneously comprises a main fragmentation and more than one duplicate; the nodes are independent from one another, are connected with one another through peer-to-peer networks, and are communicated with one another in a broadcast or multicast mode, and each independent node stores a cluster index metadata sheet reflecting index information of all the nodes in the whole cluster. When the indexes are updated and searched, the nodes read the cluster index metadata sheets and send requests to the corresponding nodes to conduct indexing or search according to attributes of the requests. By means of the method, main nodes are omitted, a searching route is shortened, and the searching speed is improved. The distributed real-time search engine has high fault tolerance, so that even if one node breaks down, other nodes still can work normally, and no burden is caused on a system.