The invention provides a method and equipment for building indexes and matching inquiry input information of a user. According to text information, structural information is determined and subject words are extracted; according to a subject corresponding to the subject words,
label words corresponding to the subject are determined; and the indexes are built form the subject words and the
label words. Moreover, the subject words and the
label words are obtained through analysis of the inquiry input information input by the user, matching inquiry is carried out in the built indexes, and candidate text information is obtained; according to the
semantic matching degree of the candidate text information and the inquiry input information, and
target text information matched with the inquiry input information is determined. Compared with the prior art, on the basis of
encyclopedia or other network resource knowledge, extracting of subjects and titles is carried out, effective description of resource
knowledge content is formed, and accordingly semantic searching of the resource knowledge is more efficient, the searching requirements of the user for complicated descriptions which the user cannot accurately express by means of key words are met, and use experience of the user is improved.