摘要 |
Provided are a data query method and system. The method comprises: receiving an input query request, the query request carries a field to be queried and query words in the field; querying a concentration index table corresponding to the field to obtain a collector identity corresponding to the query words; generating, according to the query request, a query command carrying the field and the query words, and sending the query command to a data collector corresponding to the collector identity, so that the data collector queries a local index table corresponding to the field carried in the query command in the data collector for data matching the query words carried in the query command; and receiving the data returned by the data collector, forming a query result of the query request according to the received data and outputting the result. The present invention can improve processing speed of data query, reduce occupation of system resources of the data collector, and decrease the load and pressure of a data query server. |