Data retrieval methods and devices
By extracting and querying the target index in the index list in data retrieval, the problem of low retrieval efficiency of massive data is solved, and the target data is quickly obtained, which improves the retrieval efficiency and accuracy.
Patent Information
- Application Number
- CN202211211584.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-09-30
AI Technical Summary
When searching in massive data, the existing technology is less efficient, resulting in a long search time.
By receiving the target search request sent by the client, at least one first keyword is extracted, and the set index list is queried to determine whether there is a matching target index. If there is, data search is performed to obtain the matching target data. This index list is generated by reference search requests, and the index is optimized by clustering and compressed data mapping relationships.
It improves the efficiency and accuracy of data retrieval, reduces the search time, and improves the user experience.
Smart Images

Figure CN116126896B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a data retrieval method and device. Background Art
[0002] Data retrieval is to extract the data stored in the database according to the needs of users. At present, with the continuous expansion of the application field of database information systems and the continuous growth of application time, the amount of data has increased dramatically. When extracting data from the database, it is necessary to search from a large amount of data, which leads to a long search time and low data retrieval efficiency. Therefore, how to efficiently perform data retrieval has become a problem that needs to be solved urgently. Summary of the invention
[0003] The present disclosure provides a data retrieval method and device to solve one of the technical problems in the related art at least to a certain extent. The technical solution of the present disclosure is as follows:
[0004] According to a first aspect of an embodiment of the present disclosure, a data retrieval method is provided, comprising: receiving a target search request sent by a client; extracting at least one first keyword from the target search request; querying a set index list based on the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to a reference search request; when there is a target index matching the at least one first keyword in the index list, performing data retrieval based on the target index to obtain at least one target data matching the target index.
[0005] Optionally, the method also includes: receiving multiple reference search requests sent by the client; for any reference search request among the multiple reference search requests, generating an index corresponding to the any reference search request according to the any reference search request; generating the index list according to the indexes corresponding to the multiple reference search requests.
[0006] Optionally, for any reference search request among the multiple reference search requests, an index corresponding to the any reference search request is generated according to the any reference search request, including: in response to any reference search request, obtaining reference data matching the any reference search request from a set data source; extracting at least one second keyword from the reference data matching the any reference search request; and generating an index corresponding to the any reference search request according to the at least one second keyword.
[0007] Optionally, generating the index list according to the indexes corresponding to the multiple reference search requests includes: clustering the indexes corresponding to the reference data matching any reference search request according to the request type to which the any reference search request belongs to generate at least one index directory; and generating the index list according to the at least one index directory.
[0008] Optionally, based on the distribution characteristics of the reference data matching any reference search request, the data category to which the reference data matching any reference search request belongs is determined; based on the data category to which the reference data matching any reference search request belongs and the request type to which any reference search request belongs, the reference data matching any reference search request is compressed to obtain compressed data corresponding to any reference search request; and a target mapping relationship between an index corresponding to any reference search request and the compressed data is established.
[0009] Optionally, when there is a target index matching the target search information in the index list, data retrieval is performed based on the target index to obtain at least one target data matching the target index, including: when there is a target index matching the target search information in the index list, querying the target mapping relationship based on the target index to obtain at least one compressed data matching the target index.
[0010] Optionally, the method also includes: for any target data among the at least one target data, obtaining the similarity between the any target data and the at least one first keyword; sorting the at least one target data according to the similarity corresponding to the any target data among the at least one target data to obtain an arrangement order of the at least one target data; and sending the at least one target data to the client according to the arrangement order.
[0011] Optionally, for any first keyword among the at least one first key, the number of retrievals of the any first keyword is counted; when the number of retrievals is greater than or equal to a set threshold, at least one target data matching the any first keyword is stored.
[0012] According to a second aspect of an embodiment of the present disclosure, another data retrieval method is provided, comprising: sending a target search request to a server; wherein the target search request is used to extract at least one first keyword from the target search request, and based on the at least one first keyword, query a set index list to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to a reference search request, and when there is a target index matching the target search information in the index list, data retrieval is performed based on the target index to obtain at least one target data matching the target index.
[0013] Optionally, the method also includes: reading a set reference file to obtain request parameter information from the reference file; generating multiple reference search requests based on the request parameter information; sending multiple reference search requests to the server, wherein the multiple reference search requests are used to generate an index corresponding to any reference search request among the multiple reference search requests based on the any reference search request, and generate the index list based on the indexes corresponding to the multiple reference search requests.
[0014] Optionally, the method also includes: receiving target data sent by the server; wherein, the at least one target data is to obtain the similarity between the at least one target data and the at least one first keyword, sorting the at least one target data according to the similarity to obtain an arrangement order of the at least one target data, and sending it according to the arrangement order; displaying the at least one target data.
[0015] According to a third aspect of an embodiment of the present disclosure, a data retrieval device is provided, comprising: a receiving module for receiving a target search request sent by a client; an extraction module for extracting at least one first keyword from the target search request; a query module for querying a set index list based on the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to a reference search request; a retrieval module for performing data retrieval based on the target index when there is a target index matching the at least one first keyword in the index list to obtain at least one target data matching the target index.
[0016] According to a fourth aspect of an embodiment of the present disclosure, another data retrieval device is provided, including: a sending module, used to send a target search request to a server; wherein the target search request is used to extract at least one first keyword from the target search request, and based on the at least one first keyword, query a set index list to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to a reference search request, and when there is a target index matching the target search information in the index list, data retrieval is performed based on the target index to obtain at least one target data matching the target index.
[0017] According to the fifth aspect of the embodiments of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the data retrieval method as described in the embodiment of the first aspect of the present disclosure, or to implement the data retrieval method as described in the embodiment of the second aspect of the present disclosure.
[0018] According to the sixth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by the processor of an electronic device, the electronic device is enabled to execute the data retrieval method as described in the embodiment of the first aspect of the present disclosure, or to execute the data retrieval method as described in the embodiment of the second aspect of the present disclosure.
[0019] According to the seventh aspect of the embodiments of the present disclosure, a computer program product is provided, comprising: a computer program, which, when executed by a processor, implements the data retrieval method as described in the embodiments of the first aspect of the present disclosure, or implements the data retrieval method as described in the embodiments of the second aspect of the present disclosure.
[0020] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0021] By receiving a target search request sent by a client; extracting at least one first keyword from the target search request; querying a set index list based on the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request; when there is a target index matching the at least one first keyword in the index list, performing data retrieval based on the target index to obtain at least one target data matching the target index, thereby, when performing data retrieval, first querying whether there is a target index matching the at least one first keyword in the target search request, and when a target index exists, performing data retrieval based on the target index, so that at least one target data matching the target search request can be quickly obtained, thereby improving data retrieval efficiency and accuracy.
[0022] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0024] Figure 1 It is a flowchart of the data retrieval method shown in the first embodiment of the present disclosure.
[0025] Figure 2 It is a flowchart of the data retrieval method shown in the second embodiment of the present disclosure.
[0026] Figure 3 It is a flowchart of the data retrieval method shown in the third embodiment of the present disclosure.
[0027] Figure 4 It is a flowchart of the data retrieval method shown in the fourth embodiment of the present disclosure.
[0028] Figure 5 It is a flowchart of the data retrieval method shown in the fifth embodiment of the present disclosure.
[0029] Figure 6 It is a flowchart of the data retrieval method shown in the sixth embodiment of the present disclosure.
[0030] Figure 7 It is a structural diagram of a data retrieval device shown in the seventh embodiment of the present disclosure.
[0031] Figure 8It is a structural diagram of a data retrieval device shown in the eighth embodiment of the present disclosure.
[0032] Fig. 9 It is a schematic structural diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0035] The data retrieval method and device according to the embodiments of the present disclosure are described below with reference to the accompanying drawings. Figure 1 It is a flow chart of the data retrieval method shown in the first embodiment of the present disclosure. It should be noted that in the embodiment of the present disclosure, the data retrieval method can be applied to the server.
[0036] like Figure 1 As shown, the data retrieval method may include the following steps:
[0037] Step 101: Receive a target search request sent by a client.
[0038] As a possible implementation of the embodiment of the present disclosure, the client may generate a target search request according to the search information input by the user, and send the target search request to the server. For example, the user may enter the search information in the search box of the main interface of the client application. After entering the search information, the user may click the search button corresponding to the search box, thereby triggering the client to generate the corresponding target search request and send the target search request to the server, and the server may receive the target search request sent by the client.
[0039] Step 102: extract at least one first keyword from the target search request.
[0040] As an example, the target search request may be segmented based on natural language processing technology to obtain at least one segmented word corresponding to the target search request, and at least one first keyword may be selected from the at least one segmented word. For example, at least one segmented word may be matched with a set keyword library to select at least one first keyword from the at least one segmented word; for another example, at least one first keyword may be selected from the at least one segmented word according to the part of speech of each segmented word in the at least one segmented word. For example, a segmented word with a part of speech of a noun may be selected from the at least one segmented word as the at least one first keyword.
[0041] Step 103: query a set index list according to at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list.
[0042] The index list includes multiple indexes, and the index is generated according to at least one second keyword corresponding to the reference search request.
[0043] Furthermore, at least one first keyword is used to query a set index list to determine whether there is a target index matching the at least one first keyword in the index list.
[0044] Step 104: When there is a target index matching at least one first keyword in the index list, data retrieval is performed according to the target index to obtain at least one target data matching the target index.
[0045] As an example, when there is a target index matching at least one first keyword in the index list, the target index may be used to perform data retrieval to obtain at least one target data matching the target index.
[0046] As another example, when there is no target index matching the at least one first keyword in the index list, the search result is empty.
[0047] In summary, a target search request sent by a client is received; at least one first keyword is extracted from the target search request; based on the at least one first keyword, a set index list is queried to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request; when there is a target index matching the at least one first keyword in the index list, data retrieval is performed based on the target index to obtain at least one target data matching the target index. Thus, when performing data retrieval, first query whether there is a target index matching the at least one first keyword in the target search request. When the target index exists, data retrieval is performed based on the target index, so that at least one target data matching the target search request can be quickly obtained, thereby improving data retrieval efficiency and accuracy.
[0048] In order to clearly illustrate how the index list is generated in the above embodiment, the present disclosure proposes another data retrieval method.
[0049] Figure 2 It is a flow chart of the data retrieval method shown in the second embodiment of the present disclosure. It should be noted that the data retrieval method of the embodiment of the present disclosure can be applied to the server.
[0050] like Figure 2 As shown, the data retrieval method may include the following steps:
[0051] Step 201: receiving multiple reference search requests sent by a client.
[0052] As a possible implementation method of the embodiment of the present disclosure, relevant technical personnel can input multiple search information on the client, and the client can generate multiple reference search requests based on the request parameter information in the multiple search information. Then, the client can send multiple reference search requests to the server.
[0053] As another possible implementation of the embodiment of the present disclosure, relevant technical personnel may input relevant multiple request parameter information into the data collection interface of the search engine on the server side, and the data collection interface generates multiple reference search requests according to the multiple parameter information.
[0054] Step 202: for any reference search request among the multiple reference search requests, generate an index corresponding to any reference search request according to any reference search request.
[0055] Optionally, in response to any reference search request, reference data matching any reference search request is obtained from a set data source; at least one second keyword is extracted from the reference data matching any reference search request; and based on the at least one second keyword, an index corresponding to any reference search request is generated.
[0056] That is to say, after the server receives the reference search request, it can obtain reference data matching any reference search request from the set data source, extract at least one second keyword from the reference data, and generate an index corresponding to any reference search request based on the at least one second keyword. For example, at least one second keyword can be spliced to generate an index corresponding to the corresponding reference search request, wherein at least one second keyword can be attribute information in the reference data. For example, the reference data is personal information, and the attribute information of the reference data can be name, phone number, or date of birth, etc. The index corresponding to the reference search request can be name, phone number, or date of birth, or the index corresponding to the reference search request can be a combination of any multiple attribute information of name, phone number, or date of birth.
[0057] It should be noted that when performing data retrieval according to a reference search request, different types of data sources have different request parameters for the reference search request, where the types of data sources may include: web pages, applications, and databases.
[0058] For example, when the data source type is a web page, the request parameter information of the reference search request may include: website name, website Uniform Resource Locator (URL) access address, collection keywords and corresponding authorization information, wherein the authorization information can be used to instruct the authorization server to obtain data from the corresponding website. For another example, when the data source type is an application (APP), the request parameter information of the reference search request may include: APP name, authorization information and the address of the data access interface provided by APP, etc.; for another example, when the data source type is a database, the request parameter information of the reference search request may include: Internet Protocol (IP) address, database type (such as relational database or non-relational database), port, database name, user name and password, etc.; when the data source type is unstructured data, the request parameter information of the reference search request may include: data file storage path, data file type and data file name, etc.
[0059] Step 203: Generate an index list according to the indexes corresponding to the multiple reference search requests.
[0060] Optionally, according to the request type to which any reference search request belongs, indexes corresponding to reference data matching any reference search request are clustered to generate at least one index directory; and an index list is generated based on the at least one index directory.
[0061] In an embodiment of the present disclosure, after generating indexes corresponding to multiple reference search requests, the indexes corresponding to the reference data matching any reference search request may be clustered according to the request type to which the reference search request belongs, and at least one index directory may be generated, and then, the at least one index directory may be spliced to generate an index list. The request type to which the reference search request belongs is a web page; then, clustering the indexes corresponding to the reference search requests of the same request type may generate at least one index directory, and then, splicing the at least one index directory may generate an index list.
[0062] Step 204: Receive a target search request sent by the client.
[0063] Step 205: extract at least one first keyword from the target search request.
[0064] Step 206: query a set index list according to the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list.
[0065] Step 207: When there is a target index matching at least one first keyword in the index list, data retrieval is performed according to the target index to obtain at least one target data matching the target index.
[0066] It should be noted that the execution process of steps 204 to 207 can be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0067] In summary, by receiving multiple reference search requests sent by the client; for any reference search request in the multiple reference search requests, generating an index corresponding to any reference search request according to any reference search request; generating an index list according to the indexes corresponding to the multiple reference search requests, thereby, the index list corresponding to the multiple reference search requests can be effectively generated, so that when performing data retrieval, first query whether there is a target index that matches at least one first keyword in the target search request, and when the target index exists, data retrieval is performed according to the target index, and at least one target data matching the target search request can be quickly obtained, thereby improving data retrieval efficiency and accuracy.
[0068] It should be understood that, during data retrieval, a large amount of data may result in a long retrieval time. Therefore, in order to improve data retrieval efficiency, the present disclosure proposes another data retrieval method.
[0069] Figure 3 It is a flow chart of the data retrieval method shown in the third embodiment of the present disclosure. It should be noted that the data retrieval method of the embodiment of the present disclosure can be applied to the server.
[0070] like Figure 3 As shown, the data retrieval method may include the following steps:
[0071] Step 301: receiving multiple reference search requests sent by a client.
[0072] Step 302: for any reference search request among the multiple reference search requests, generate an index corresponding to any reference search request according to any reference search request.
[0073] Step 303: Generate an index list according to the indexes corresponding to the multiple reference search requests.
[0074] Step 304: Determine the data category to which the reference data matching any reference search request belongs based on the distribution characteristics of the reference data matching any reference search request.
[0075] In an embodiment of the present disclosure, in response to any reference search request, reference data matching any reference search request is obtained from a set data source, and the data category of the reference data can be judged based on the distribution characteristics of the reference data. For example, if the reference data is continuously distributed, then the data category of the reference data is continuous data; for another example, if the reference data is discretely distributed, then the data category of the reference data is discrete data.
[0076] Step 305 , compressing the reference data matching any reference search request according to the data category to which the reference data matching any reference search request belongs and the request type to which any reference search request belongs, to obtain compressed data corresponding to any reference search request.
[0077] In order to further improve the data retrieval efficiency and reduce the amount of retrieved data, in the embodiment of the present disclosure, the reference data is compressed according to the data category corresponding to the reference data and the request type to which the corresponding reference search request belongs. For example, the reference data corresponding to the reference search request A is continuous data, and the request type to which the reference search request A belongs is a web page. The reference data corresponding to the reference search request B is discrete data, and the request type to which the reference search request B belongs is a web page. Then, the reference data corresponding to the reference search request A and the reference data corresponding to the reference search request B are compressed respectively to obtain the compressed data corresponding to the reference search request A and the reference search request B. For another example, the reference data corresponding to the reference search request A is continuous data, and the request type to which the reference search request A belongs is a web page. For example, if the request type of reference search request A is a web page, the reference data corresponding to reference search request B is continuous data, and the request type to which reference search request B belongs is a database, the reference data corresponding to reference search request A and the reference data corresponding to reference search request B are compressed separately to obtain compressed data corresponding to reference search request A and reference search request B; for another example, if the reference data corresponding to reference search request A is continuous data, the request type to which reference search request A belongs is a web page, the reference data corresponding to reference search request B is continuous data, and the request type to which reference search request B belongs is a web page, the reference data corresponding to reference search request A and the reference data corresponding to reference search request B are compressed together to obtain compressed data corresponding to reference search request A and reference search request B. Among them, continuous data can be compressed using a bit vector algorithm or a dictionary algorithm, and discrete data can be compressed using Heaps' law and Zipf's law after removing repeated content in discrete data.
[0078] Step 306: Establish a target mapping relationship between an index corresponding to any reference search request and compressed data.
[0079] Furthermore, a correspondence between the index corresponding to any reference search request and the corresponding compressed data is established, and the correspondence is used as the target mapping relationship.
[0080] In the disclosed embodiment, in order to facilitate subsequent data retrieval, the compressed data corresponding to any reference request and the corresponding target mapping relationship can be stored. In order to improve data retrieval efficiency, when storing the compressed data, the compressed data can be processed into a data format that is easy to search, for example, the compressed data is stored in a structured data format.
[0081] Step 307: Receive a target search request sent by the client.
[0082] Step 308: extract at least one first keyword from the target search request.
[0083] Step 309: query a set index list according to the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list.
[0084] Step 310: When there is a target index matching the target search information in the index list, query the target mapping relationship according to the target index to obtain at least one compressed data matching the target index.
[0085] In an embodiment of the present disclosure, when there is a target index matching the target search information in the index list, the target mapping relationship is queried according to the target index, and at least one compressed data corresponding to the target index can be quickly obtained.
[0086] It should be noted that the execution process of steps 301 to 303 and steps 307 to 309 can be implemented in any way in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0087] In summary, the data category to which the reference data matching any reference search request belongs is determined based on the distribution characteristics of the reference data matching any reference search request; the reference data matching any reference search request is compressed based on the data category to which the reference data matching any reference search request belongs and the request type to which any reference search request belongs, so as to obtain compressed data corresponding to any reference search request. Thus, by compressing the reference data corresponding to the reference search request and establishing a target mapping relationship between the index corresponding to any reference search request and the compressed data, the amount of retrieved data is reduced, and when a target index exists, the target mapping relationship can be queried based on the target index, so that at least one target data matching the target search request can be quickly obtained, thereby improving data retrieval efficiency.
[0088] In order to achieve accurate recommendation of data retrieval results and improve user experience, the present disclosure proposes another data retrieval method.
[0089] Figure 4 It is a flow chart of the data retrieval method shown in the fourth embodiment of the present disclosure. It should be noted that the data retrieval method of the embodiment of the present disclosure can be applied to the server.
[0090] like Figure 4 As shown, the data retrieval method may include the following steps:
[0091] Step 401: Receive a target search request sent by a client.
[0092] Step 402: extract at least one first keyword from the target search request.
[0093] Step 403: query a set index list according to the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list.
[0094] The index list includes multiple indexes, and the index is generated according to at least one second keyword corresponding to the reference search request.
[0095] Step 404: when there is a target index matching at least one first keyword in the index list, data retrieval is performed according to the target index to obtain at least one target data matching the target index.
[0096] Step 405: For any target data in the at least one target data, obtain the similarity between any target data and at least one first keyword.
[0097] In the embodiment of the present disclosure, a similarity algorithm may be used to calculate the similarity between any target data in at least one target data and any first keyword in at least one first keyword. For example, taking any target data as A, at least one first keyword may include first keyword a, first keyword b and first keyword c, and the similarity between target data A and first keyword a, first keyword b and first keyword c may be calculated respectively. Among them, the similarity algorithm may include: cosine similarity, Euclidean distance, etc.
[0098] Step 406: sort the at least one target data according to the similarity corresponding to any target data in the at least one target data to obtain an arrangement order of the at least one target data.
[0099] As a possible implementation method of the embodiment of the present disclosure, the similarity between any target data and at least one first keyword can be weighted and summed according to the weight of each first keyword to obtain the similarity corresponding to the any target data, and then, according to the similarity corresponding to each target data, each target data is sorted to obtain the arrangement order of at least one target data, for example, each target data is sorted from high to low according to the similarity to obtain the arrangement order of at least one target data. It should be noted that the weight of each first keyword can be determined by word frequency or word frequency inverse document method.
[0100] Step 407: Send at least one target data to the client in the arrangement order.
[0101] Furthermore, at least one target data is sent to the client according to the arrangement order of at least one target data, and the client can display the received at least one target data. For example, at least one target data is sent to the client in sequence according to the arrangement order, and the client can determine the arrangement order of at least one target data according to the receiving order, and display the at least one target data according to the arrangement order; for another example, the first n target data in the arrangement order can be sent to the client together, and the client can arrange the n target data according to the set order, and display the arranged n target data.
[0102] In addition, in order to further improve data retrieval efficiency, the number of retrievals of any first keyword in at least one first key can be counted; when the number of retrievals is greater than or equal to a set threshold, at least one target data matching any first keyword will be stored. Thus, by pre-storing at least one target data matching any first keyword, during subsequent data retrieval, a search request can be quickly responded to and the target data can be obtained.
[0103] It should be noted that the execution process of steps 401 to 404 can be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0104] In summary, by obtaining the similarity between any target data and at least one first keyword for any target data in at least one target data; sorting the at least one target data according to the similarity corresponding to any target data in at least one target data to obtain the arrangement order of at least one target data; sending at least one target data to the client according to the arrangement order, thereby sorting each target data according to the similarity between each target data and at least one first keyword, thereby improving the accuracy of data retrieval result recommendation and improving user experience.
[0105] The data retrieval method of the disclosed embodiment receives a target search request sent by a client; extracts at least one first keyword from the target search request; queries a set index list based on the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request; when there is a target index matching the at least one first keyword in the index list, performs data retrieval based on the target index to obtain at least one target data matching the target index, thereby, when performing data retrieval, first queries whether there is a target index matching the at least one first keyword in the target search request, and when the target index exists, performs data retrieval based on the target index, and can quickly obtain at least one target data matching the target search request, thereby improving data retrieval efficiency and accuracy.
[0106] Figure 5 It is a flow chart of the data retrieval method shown in the fifth embodiment of the present disclosure. It should be noted that the data retrieval method of the embodiment of the present disclosure can be applied to the client.
[0107] like Figure 5 As shown, the data retrieval method may include the following steps:
[0108] Step 501: Send a target search request to the server.
[0109] Among them, the target search request is used to extract at least one first keyword from the search request, and based on the at least one first keyword, query the set index list to determine whether there is a target index in the index list that matches the at least one first keyword, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request. When there is a target index matching the target search information in the index list, data retrieval is performed based on the target index to obtain at least one target data matching the target index.
[0110] In the disclosed embodiment, the client can generate a target search request according to the search information input by the user, and send the target search request to the server, so that the server can extract at least one first keyword from the target search request, and query the set index list according to the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list, and when there is a target index matching the target search information in the index list, perform data retrieval according to the target index to obtain at least one target data matching the target index. The index list includes multiple indexes, and the index is generated according to at least one second keyword corresponding to the reference search request.
[0111] In summary, by sending a target search request to the server, the server can extract at least one first keyword from the target search request; based on the at least one first keyword, query the set index list to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request; when there is a target index matching the at least one first keyword in the index list, perform data retrieval based on the target index to obtain at least one target data matching the target index. Therefore, when performing data retrieval, first query whether there is a target index matching the at least one first keyword in the target search request. When the target index exists, perform data retrieval based on the target index, so that at least one target data matching the target search request can be quickly obtained, thereby improving data retrieval efficiency and accuracy.
[0112] In order to clearly illustrate how the above embodiment generates an index list, the present disclosure proposes another data retrieval method.
[0113] Figure 6 It is a flow chart of the data retrieval method shown in the sixth embodiment of the present disclosure. It should be noted that the data retrieval method in the embodiment of the present disclosure can be applied to the client.
[0114] like Figure 6 As shown, the data retrieval method may include the following steps:
[0115] Step 601: read a set reference file to obtain request parameter information from the reference file.
[0116] As a possible implementation manner of the embodiment of the present disclosure, a reference file uploaded by a user may be received, and the reference file may be read to obtain request parameter information from the reference file.
[0117] Step 602: Generate multiple reference search requests according to the request parameter information.
[0118] As a possible implementation of the embodiment of the present disclosure, the client may use a set request template to generate multiple reference search requests with the request parameter information in the reference file. For example, the request parameter information in the reference file is filled into the set request template to generate multiple reference search requests.
[0119] Among them, the reference search requests generated by different request parameter information may correspond to different request types. For example, the request parameter information includes: website name, website Uniform Resource Locator (URL) access address, collection keywords and corresponding authorization information, and the request type corresponding to the reference search request generated by the request parameter information may be a web page; for another example, the request parameter information includes: APP name, authorization information and the address of the data access interface provided by the APP, etc., then the request type corresponding to the reference search request generated by the request parameter information is APP; for another example, the request parameter information includes: Internet Protocol (IP) address, database type (such as relational database or non-relational database), port, database name, user name and password, etc., then the request type corresponding to the reference search request generated by the request parameter information is database.
[0120] Step 603: Send multiple reference search requests to the server.
[0121] Among them, the multiple reference search requests are used to generate an index corresponding to any reference search request among the multiple reference search requests according to any reference search request, and generate an index list according to the indexes corresponding to the multiple reference search requests.
[0122] As a possible implementation method of an embodiment of the present disclosure, after the server receives a reference search request, it can respond to any reference search request and obtain reference data matching any reference search request from a set data source; extract at least one second keyword from the reference data matching any reference search request; and generate an index corresponding to any reference search request based on the at least one second keyword.
[0123] That is to say, after receiving the reference search request, the server can obtain reference data matching any reference search request from the set data source, extract at least one second keyword from the reference data, and generate an index corresponding to any reference search request based on the at least one second keyword. For example, the at least one second keyword can be spliced to generate an index corresponding to the corresponding reference search request, wherein the at least one second keyword can be attribute information in the reference data, for example, the reference data is personal information, and the attribute information of the reference data can be name, telephone number, or date of birth, etc. Further, after generating indexes corresponding to multiple reference search requests, the indexes corresponding to the reference data matching any reference search request can be clustered according to the request type to which the reference search request belongs, and at least one index directory can be generated. Further, the at least one index directory can be spliced to generate an index list.
[0124] For example, the request type to which the reference search request belongs is a web page; then, by clustering the indexes corresponding to the reference search requests of the same request type, at least one index directory can be generated, and then, by splicing at least one index directory, an index list can be generated.
[0125] Step 604: Send a target search request to the server.
[0126] Among them, the target search request is used to extract at least one first keyword from the search request, and based on the at least one first keyword, query the set index list to determine whether there is a target index in the index list that matches the at least one first keyword, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request. When there is a target index matching the target search information in the index list, data retrieval is performed based on the target index to obtain at least one target data matching the target index.
[0127] In addition, in order to make the search results more intuitively displayed, in the embodiment of the present disclosure, the client can also receive target data sent by the server; wherein, at least one target data is to obtain the similarity between at least one target data and at least one first keyword, sort the at least one target data according to the similarity to obtain the arrangement order of at least one target data, and send it according to the arrangement order; the client can display the at least one target data.
[0128] In summary, by reading the set reference file, request parameter information is obtained from the reference file; multiple reference search requests are generated according to the request parameter information; and multiple reference search requests are sent to the server. As a result, the client can generate multiple reference search requests according to the request parameter information in the reference file, and by sending multiple reference search requests to the server, the server can effectively generate an index list according to the multiple reference search requests. Therefore, when performing data retrieval, it is first queried whether there is a target index that matches at least one first keyword in the target search request. When a target index exists, data retrieval is performed according to the target index, and at least one target data that matches the target search request can be quickly obtained, thereby improving data retrieval efficiency and accuracy.
[0129] In any embodiment of the present disclosure, the data retrieval method of the embodiment of the present disclosure can also be implemented based on the following steps:
[0130] Step 1: Obtain the collection engine, indexing engine, information knowledge base, search engine and storage routing engine pre-established on the server side;
[0131] Step 2: The data collected by the collection engine from the data source can be compressed and stored using the storage routing engine. It should be noted that the collected data is judged to determine whether it is continuous data or discrete data. Continuous data can be compressed and stored using a bit vector algorithm or a dictionary algorithm. Discrete data can be compressed and stored using the Heaps law and the Zipf law after removing repeated content in the discrete data. Therefore, compressing the collected data can not only save space, but also reduce IO and improve reading performance. In addition, when storing, a global dictionary table (such as a structured data format) can be created, and the data can be processed into a data format that is easy to search. It should also be noted that different data sources correspond to different search terms. The request parameter information of the request is different. For example, when the data source type is a web page, the request parameter information that can be entered in the data collection interface includes: website name, website URL access address, collection keyword, and authorization information; when the data source type is an APP, the request parameter information that can be entered in the data collection interface includes: APP name, address of the data access interface provided by the APP, and authorization information; when the data source type is structured data, the request parameter information that can be entered in the data collection interface includes: IP address, database type, port, database name, user name, password, etc.; when the data source type is unstructured data, the request parameter information that can be entered in the data collection interface includes: data file storage path, data file type, name, etc.
[0132] Step 3: The index engine is responsible for collecting data resources collected by the collection engine, and indexing the data according to the attribute information (keyword information) of the data. The index engine starts working according to the request parameter information input by the collection engine, and analyzes the collected original data, creates an index directory for the data, and stores the index directory in the index library, and corresponds the index directory to the original data one by one. The information knowledge base is responsible for storing the data index information established by the indexer, and storing various data resources collected by the collector; therefore, by forming one or more business scenario index tables from the compressed data, the index engine can parse the index table to provide pointing services for the searcher, thereby quickly performing cold data search operations;
[0133] Step 4. After receiving the target search request, the kernel will quickly match the search keywords and request types in the information resource library. When there is no matching index, an empty search queue is returned to the searcher. If a matching index is found in the information resource library, the big data kernel will access the information knowledge base, search for matching data according to the index, and sort the search results according to similarity. It will be fed back through the searcher in the form of a list to end the search. Among them, when a certain search keyword appears frequently, the big data kernel will cache the matching search results so that it can quickly respond to the search request next time.
[0134] Therefore, in the application scenario of big data, if the database has a large amount of data in a single data table and too many index fields, the consumption of the central processing unit (CPU) and input / output (IO) interface by conditional query will increase dramatically with the increase of data volume, resulting in a relatively slow data retrieval speed. By compressing the collected data in different types of ways, the storage pressure can be improved and the cost increase caused by physical disk overhead can be alleviated without affecting the query of data.
[0135] The data retrieval method of the disclosed embodiment sends a target search request to the server, and the server can extract at least one first keyword from the target search request; based on the at least one first keyword, query the set index list to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request; when there is a target index matching the at least one first keyword in the index list, perform data retrieval based on the target index to obtain at least one target data matching the target index, thereby, when performing data retrieval, first query whether there is a target index matching the at least one first keyword in the target search request, and when the target index exists, perform data retrieval based on the target index, so as to quickly obtain at least one target data matching the target search request, thereby improving data retrieval efficiency and accuracy.
[0136] With the above Figures 1 to 4 Corresponding to the data retrieval method provided in the embodiment, the present disclosure also provides a data retrieval device. Figures 1 to 4 The data retrieval method provided in the embodiment corresponds to the embodiment, so the implementation of the data retrieval method is also applicable to the data retrieval device provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.
[0137] Figure 71 is a schematic diagram of the structure of a data retrieval device shown in the seventh embodiment of the present disclosure. The data retrieval device of the embodiment of the present disclosure can be applied to a server.
[0138] Reference Figure 7 The data retrieval device 700 may include: a receiving module 710, an extracting module 720, a query module 730 and a retrieval module 740.
[0139] Among them, the receiving module 710 is used to receive a target search request sent by the client; the extraction module 720 is used to extract at least one first keyword from the target search request; the query module 730 is used to query the set index list according to the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request; the retrieval module 740 is used to perform data retrieval according to the target index when there is a target index matching the at least one first keyword in the index list to obtain at least one target data matching the target index.
[0140] As a possible implementation of the embodiment of the present disclosure, the data retrieval device 700 further includes: a generation module.
[0141] Among them, the receiving module 710 is also used to: receive multiple reference search requests sent by the client; the generating module is used to generate an index corresponding to any reference search request among the multiple reference search requests according to any reference search request; the generating module is also used to generate an index list according to the indexes corresponding to the multiple reference search requests.
[0142] As a possible implementation method of an embodiment of the present disclosure, the generation module is also used to: in response to any reference search request, obtain reference data matching any reference search request from a set data source; extract at least one second keyword from the reference data matching any reference search request; and generate an index corresponding to any reference search request based on the at least one second keyword.
[0143] As a possible implementation method of an embodiment of the present disclosure, the generation module is also used to: cluster the indexes corresponding to the reference data matching any reference search request according to the request type to which any reference search request belongs, so as to generate at least one index directory; and generate an index list based on at least one index directory.
[0144] As a possible implementation of the embodiment of the present disclosure, the data retrieval device 700 further includes: a determination module, a compression module and an establishment module.
[0145] Among them, the determination module is used to determine the data category to which the reference data matching any reference search request belongs based on the distribution characteristics of the reference data matching any reference search request; the compression module is used to compress the reference data matching any reference search request based on the data category to which the reference data matching any reference search request belongs and the request type to which any reference search request belongs, so as to obtain compressed data corresponding to any reference search request; the establishment module is used to establish a target mapping relationship between an index corresponding to any reference search request and the compressed data.
[0146] As a possible implementation method of the embodiment of the present disclosure, the retrieval module 740 is used to: when there is a target index matching the target search information in the index list, query the target mapping relationship according to the target index to obtain at least one compressed data matching the target index.
[0147] As a possible implementation of the embodiment of the present disclosure, the data retrieval device 700 further includes: an acquisition module, a sorting module and a sending module.
[0148] Among them, the acquisition module is used to obtain the similarity between any target data and at least one first keyword for any target data in at least one target data; the sorting module is used to sort the at least one target data according to the similarity corresponding to any target data in at least one target data to obtain the arrangement order of at least one target data; the sending module is used to send at least one target data to the client according to the arrangement order.
[0149] As a possible implementation of the embodiment of the present disclosure, the data retrieval device 700 further includes: a statistical module and a storage module.
[0150] Among them, the statistical module is used to count the number of retrievals of any first keyword in at least one first key; the storage module is used to store at least one target data matching any first keyword when the number of retrievals is greater than or equal to a set threshold.
[0151] The data retrieval device of the disclosed embodiment receives a target search request sent by a client; extracts at least one first keyword from the target search request; queries a set index list based on the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request; when there is a target index matching the at least one first keyword in the index list, performs data retrieval based on the target index to obtain at least one target data matching the target index, thereby, when performing data retrieval, first queries whether there is a target index matching the at least one first keyword in the target search request, and when the target index exists, performs data retrieval based on the target index, and can quickly obtain at least one target data matching the target search request, thereby improving data retrieval efficiency and accuracy.
[0152] With the above Figures 5 and 6 Corresponding to the data retrieval method provided in the embodiment, the present disclosure also provides a data retrieval device. Figures 5 and 6 The data retrieval method provided in the embodiment corresponds to the embodiment, so the implementation of the data retrieval method is also applicable to the data retrieval device provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.
[0153] Figure 8 1 is a schematic diagram of the structure of a data retrieval device shown in the eighth embodiment of the present disclosure. The data retrieval device of the embodiment of the present disclosure can be applied to a client.
[0154] like Figure 8 As shown, the data retrieval device 800 includes: a sending module 810.
[0155] Among them, the sending module 810 is used to send a target search request to the server; wherein the target search request is used to extract at least one first keyword from the search request, and based on the at least one first keyword, query the set index list to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request. When there is a target index matching the target search information in the index list, data retrieval is performed based on the target index to obtain at least one target data matching the target index.
[0156] As a possible implementation of the embodiment of the present disclosure, the data retrieval device 800 further includes: a reading module and a generating module.
[0157] Among them, the reading module is used to read the set reference file to obtain request parameter information from the reference file; the generating module is used to generate multiple reference search requests according to the request parameter information; the sending module 810 is also used to send multiple reference search requests to the server, wherein the multiple reference search requests are used to generate an index corresponding to any reference search request among any reference search request, and generate an index list according to the indexes corresponding to the multiple reference search requests.
[0158] As a possible implementation of the embodiment of the present disclosure, the data retrieval device 800 further includes: a receiving module and a display module.
[0159] Among them, the receiving module is used to receive the target data sent by the server; wherein, at least one target data is to obtain the similarity between at least one target data and the at least one first keyword, sort the at least one target data according to the similarity to obtain the arrangement order of at least one target data, and send it according to the arrangement order; the display module is used to display at least one target data.
[0160] The data retrieval device of the disclosed embodiment sends a target search request to the server, and the server can extract at least one first keyword from the target search request; based on the at least one first keyword, query the set index list to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request; when there is a target index matching the at least one first keyword in the index list, perform data retrieval based on the target index to obtain at least one target data matching the target index, thereby, when performing data retrieval, first query whether there is a target index matching the at least one first keyword in the target search request, and when the target index exists, perform data retrieval based on the target index, so as to quickly obtain at least one target data matching the target search request, thereby improving data retrieval efficiency and accuracy.
[0161] In an exemplary embodiment, an electronic device is also provided.
[0162] Among them, electronic equipment includes:
[0163] processor;
[0164] a memory for storing processor-executable instructions;
[0165] The processor is configured to execute instructions to implement the report processing method proposed in any of the aforementioned embodiments.
[0166] As an example, Fig. 9 is a schematic diagram of the structure of an electronic device 900 shown in an exemplary embodiment of the present disclosure, such as Fig. 9 As shown, the electronic device 900 may further include:
[0167] The memory 910 and the processor 920, a bus 930 connecting different components (including the memory 910 and the processor 920), the memory 910 stores a computer program, and when the processor 920 executes the program, the data retrieval method described in the embodiment of the present disclosure is implemented.
[0168] Bus 930 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0169] The electronic device 900 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 900, including volatile and non-volatile media, removable and non-removable media.
[0170] The memory 910 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 940 and / or cache memory 950. The server 900 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 960 may be used to read and write non-removable, non-volatile magnetic media ( Fig. 9 not shown, usually called a "hard drive"). Although Fig. 9 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 930 via one or more data medium interfaces. The memory 910 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.
[0171] A program / utility 980 having a set (at least one) of program modules 970 may be stored, for example, in the memory 910, such program modules 970 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 970 generally perform the functions and / or methods of the embodiments described in the present disclosure.
[0172] The electronic device 900 may also communicate with one or more external devices 990 (e.g., keyboard, pointing device, display 991, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 900, and / or communicate with any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 992. In addition, the electronic device 900 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 993. As shown, the network adapter 993 communicates with other modules of the electronic device 900 through a bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0173] The processor 920 executes various functional applications and data processing by running the programs stored in the memory 910 .
[0174] It should be noted that the implementation process and technical principles of the electronic device of this embodiment refer to the aforementioned explanation of the data retrieval method of the embodiment of the present disclosure, and will not be repeated here.
[0175] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of an electronic device to complete the data retrieval method proposed in any of the above embodiments. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0176] In an exemplary embodiment, a computer program product is also provided, including a computer program / instruction, wherein the computer program / instruction implements the data retrieval method proposed in any of the above embodiments when executed by a processor.
[0177] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0178] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A data retrieval method, characterized in that: include: Receive a target search request sent by a client; extracting at least one first keyword from the target search request; According to the at least one first keyword, query a set index list to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes a plurality of indexes, and the indexes are generated according to the at least one second keyword corresponding to the reference search request; When there is a target index matching the at least one first keyword in the index list, performing data retrieval according to the target index to obtain at least one target data matching the target index; The method further includes: receiving a plurality of reference search requests sent by the client; In response to any reference search request, obtaining reference data matching the any reference search request from a set data source; extracting at least one second keyword from the reference data matching any one of the reference search requests; generating an index corresponding to any one of the reference search requests according to the at least one second keyword; The index list is generated according to the indexes corresponding to the multiple reference search requests.
2. The method according to claim 1, characterized in that The step of generating the index list according to the indexes corresponding to the multiple reference search requests includes: Clustering indexes corresponding to reference data matching any one of the reference search requests according to the request type to which any one of the reference search requests belongs, so as to generate at least one index directory; The index list is generated according to the at least one index directory.
3. The method according to claim 1, characterized in that The method further comprises: determining, according to distribution characteristics of the reference data matching any one of the reference search requests, a data category to which the reference data matching any one of the reference search requests belongs; compressing the reference data matching any one of the reference search requests according to the data category to which the reference data matching any one of the reference search requests belongs and the request type to which the any one of the reference search requests belongs, so as to obtain compressed data corresponding to the any one of the reference search requests; A target mapping relationship between an index corresponding to any of the reference search requests and compressed data is established.
4. The method according to claim 3, characterized in that When there is a target index matching the target search information in the index list, performing data retrieval according to the target index to obtain at least one target data matching the target index includes: When there is a target index matching the target search information in the index list, the target mapping relationship is queried according to the target index to obtain at least one compressed data matching the target index.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: For any target data among the at least one target data, obtaining a similarity between the any target data and the at least one first keyword; Sorting the at least one target data according to the similarity corresponding to any target data in the at least one target data to obtain an arrangement order of the at least one target data; The at least one target data is sent to the client according to the arrangement order.
6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: For any first keyword in the at least one first keyword, counting the number of searches for the any first keyword; When the number of retrieval times is greater than or equal to a set threshold, at least one target data matching any one of the first keywords is stored.
7. A data retrieval method, characterized in that: include: Sending a target search request to a server; wherein the target search request is used to extract at least one first keyword from the target search request, and query a set index list based on the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated based on at least one second keyword corresponding to the reference search request, and when there is a target index matching the target search information in the index list, data retrieval is performed based on the target index to obtain at least one target data matching the target index; The method further comprises: Reading a set reference file to obtain request parameter information from the reference file; generating a plurality of reference search requests according to the request parameter information; Send multiple reference search requests to a server, wherein the multiple reference search requests are used to obtain reference data matching any reference search request from a set data source according to any reference search request for any reference search request among the multiple reference search requests; extract at least one second keyword from the reference data matching any reference search request; generate an index corresponding to any reference search request according to the at least one second keyword; and generate the index list according to the indexes corresponding to the multiple reference search requests.
8. The method according to claim 7, characterized in that The method further comprises: Receiving the at least one target data sent by the server; wherein the at least one target data is obtained by obtaining a similarity between the at least one target data and the at least one first keyword, sorting the at least one target data according to the similarity to obtain an arrangement order of the at least one target data, and sending the at least one target data according to the arrangement order; The at least one target data is displayed.
9. A data retrieval device, characterized in that: include: A receiving module, used for receiving a target search request sent by a client; An extraction module, configured to extract at least one first keyword from the target search request; a query module, configured to query a set index list according to the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes a plurality of indexes, and the indexes are generated according to the at least one second keyword corresponding to the reference search request; A retrieval module, configured to, when there is a target index matching the at least one first keyword in the index list, perform data retrieval according to the target index to obtain at least one target data matching the target index; The data retrieval device further comprises: a generating module, The receiving module is further used to: receive multiple reference search requests sent by the client; The generation module is used to, in response to any reference search request, obtain reference data matching any reference search request from a set data source; extract at least one second keyword from the reference data matching any reference search request; generate an index corresponding to any reference search request based on the at least one second keyword; and generate the index list based on the indexes corresponding to the multiple reference search requests.
10. A data retrieval device, characterized in that: include: A sending module, used for sending a target search request to a server; wherein, the target search request is used to extract at least one first keyword from the target search request, and query a set index list according to the at least one first keyword to determine whether there is a target index matching the at least one first keyword in the index list, wherein the index list includes multiple indexes, and the index is generated according to at least one second keyword corresponding to the reference search request, and when there is a target index matching the target search information in the index list, data retrieval is performed according to the target index to obtain at least one target data matching the target index; Wherein, the data retrieval device further comprises: a reading module and a generating module; The reading module is used to read the set reference file to obtain the request parameter information from the reference file; The generating module is used to generate multiple reference search requests according to the request parameter information; The sending module is also used to send multiple reference search requests to the server, wherein the multiple reference search requests are used to obtain reference data matching any reference search request from a set data source according to any reference search request for any reference search request among the multiple reference search requests; extract at least one second keyword from the reference data matching any reference search request; generate an index corresponding to any reference search request according to the at least one second keyword; and generate the index list according to the indexes corresponding to the multiple reference search requests.
11. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the data retrieval method according to any one of claims 1 to 6, or to implement the data retrieval method according to any one of claims 7 to 8.
12. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data retrieval method as described in any one of claims 1 to 6, or implement the data retrieval method as described in any one of claims 7 to 8.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the data retrieval method according to any one of claims 1 to 6, or implements the data retrieval method according to any one of claims 7 to 8.
