摘要 |
The invention discloses an information storage and query method based on a vertical search engine and a device of the information storage and query method based on the vertical search engine. The method comprises the steps of confirming attribute correlation values of each document to be stored according to attribute values included in a specified attribute field, judging whether numerical values identical with the attribute correlation values are stored in a message dictionary or not, writing offset and the number of the attribute values of an initial position stored in the message dictionary in a positive row table index file if the numerical values identical with the attribute correlation values are stored in the message dictionary, confirming offset and the number of the attribute values of the initial position of the attribute values in the positive row table index file if the numerical values identical with the attribute correlation values are not stored in the message dictionary, storing the confirmed attribute correlation values, the confirmed offset and the confirmed number of the attribute values in the message dictionary, writing the confirmed offset and the confirmed number of the attribute values in the positive row table index file, and starting to write the attribute values included in the specified attribute field of the document to be stored. Therefore, occupation of internal memory resources is reduced, and the rate that a user uses the vertical search engine to inquire relevant information is improved. |