Method for retrieving data, method and device for sending retrieved data to client

By working collaboratively between the client and the cloud, using the cloud's analytical processing capabilities and local inverted index technology to determine keywords and conduct data retrieval, the efficiency problem of massive application data retrieval is solved and the computing resources of the cloud are saved.

CN113326416BActive Publication Date: 2024-10-29BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
CN202110663571.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-15
Publication Date
2024-10-29
Estimated Expiration
2041-06-15

AI Technical Summary

Technical Problem

As the amount of data increases, the demand for data retrieval generated by applications increases. It is difficult for existing technologies to efficiently retrieve massive application data, especially because the communication and computing resources between the cloud and the client are excessively consumed.

Method used

By sending the retrieval request to the cloud, the cloud determines the keywords and sends them back to the client. The client uses the local database to perform retrieval, combining the analysis and processing capabilities of the cloud and the local inverted index technology to achieve data retrieval.

Benefits of technology

It effectively solves the retrieval problem of massive application data, saves cloud computing resources, and improves retrieval efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113326416B_ABST
    Figure CN113326416B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for retrieving data, a method for sending retrieved data to a client, a device, an electronic device, and a storage medium, which relate to the field of computer technology, and in particular to the field of intelligent search technology. The specific implementation scheme is: sending the retrieved request for application data to the cloud, so that the cloud determines at least one keyword according to the retrieve request; receiving at least one keyword from the cloud; and retrieving data in a local database according to the at least one keyword to obtain a retrieve result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to the field of intelligent search technology. Background Art

[0002] As users use the application, the amount of data generated by the application continues to increase. For example, the messages received in the IM (Instant Messaging) application and the resources stored in the cloud disk application will become more and more as the usage time increases. Therefore, the demand for retrieving the data generated by the application is becoming more and more urgent. Summary of the invention

[0003] The present disclosure provides a method for retrieving data, a method, an apparatus, a device and a storage medium for sending retrieved data to a client.

[0004] According to one aspect of the present disclosure, a method for retrieving data is provided, comprising: sending an acquired retrieval request for application data to a cloud, so that the cloud determines at least one keyword based on the retrieval request; receiving the at least one keyword from the cloud; and retrieving data in a local database based on the at least one keyword to obtain a retrieval result.

[0005] According to another aspect of the present disclosure, a method for sending retrieval data to a client is provided, comprising: obtaining a retrieval request from the client; determining at least one keyword according to the retrieval request; and sending the at least one keyword as retrieval data to the client.

[0006] According to another aspect of the present disclosure, a device for retrieving data is provided, comprising: a first sending module, used to send an acquired retrieval request to a cloud, so that the cloud determines at least one keyword based on the retrieval request; a receiving module, used to receive the at least one keyword from the cloud; and a retrieval module, used to retrieve data in a local database based on the at least one keyword to obtain a retrieval result.

[0007] According to another aspect of the present disclosure, there is provided a device for sending retrieval data to a client, comprising: an acquisition module for acquiring a retrieval request from a client; a determination module for determining at least one keyword based on the retrieval request; and a second sending module for sending the at least one keyword as retrieval data to the client.

[0008] Another aspect of the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method shown in an embodiment of the present disclosure.

[0009] According to another aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method shown in the embodiment of the present disclosure.

[0010] According to another aspect of an embodiment of the present disclosure, a computer program product is provided, namely, a computer program. When the computer program is executed by a processor, the method shown in the embodiment of the present disclosure is implemented.

[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0013] Figure 1 An exemplary system architecture to which the method and apparatus for retrieving data according to an embodiment of the present disclosure can be applied is schematically shown;

[0014] Figure 2 A flowchart schematically shows a method for retrieving data according to an embodiment of the present disclosure;

[0015] Figure 3 A flowchart schematically shows a method for retrieving data according to another embodiment of the present disclosure;

[0016] Figure 4 A schematic diagram schematically illustrates a method for retrieving data according to an embodiment of the present disclosure;

[0017] Figure 5 A block diagram schematically shows an apparatus for retrieving data according to an embodiment of the present disclosure;

[0018] Figure 6 A block diagram schematically shows an apparatus for sending retrieval data to a client according to another embodiment of the present disclosure; and

[0019] Figure 7 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0020] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0021] Figure 1 The exemplary system architecture 100 to which the method and apparatus for retrieving data according to an embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0022] like Figure 1 As shown, the system architecture 100 according to this embodiment may include clients 101, 102, 103, a network 104, and a cloud 105. The network 104 is used to provide a medium for communication links between the clients 101, 102, 103 and the cloud 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0023] Users can use clients 101, 102, 103 to interact with cloud 105 through network 104 to receive or send messages, etc. Various applications can be installed on clients 101, 102, 103, such as network disk applications, shopping applications, web browser applications, search applications, instant messaging applications, email clients, social platform applications, etc. (only examples).

[0024] Clients 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0025] The cloud 105 can be a server that provides various services. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server can also be a server of a distributed system, or a server combined with a blockchain. The cloud 105 can analyze and process the received search request and other data, and feed back the processing results (such as information or data obtained or generated according to the search request) to the terminal device.

[0026] It should be understood that Figure 1 The number of clients, networks, and clouds in the example is only illustrative. Any number of clients, networks, and clouds may be provided as required.

[0027] It should be noted that the acquisition, storage and application of user personal information involved in the technical solution of the present disclosure are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0028] Figure 2 The flowchart of the method for retrieving data according to an embodiment of the present disclosure is schematically shown.

[0029] like Figure 2 As shown, the method 200 includes operations S210 to S260.

[0030] In operation S210 , the client sends the obtained search request for application data to the cloud.

[0031] According to an embodiment of the present disclosure, application data may include data generated by an application program, such as a network disk application, a shopping application, a web browser application, a search application, an instant messaging application, an email client, a social platform application, etc. Exemplarily, for an instant messaging application, application data may include message records, and for a network disk application, application data may include various information related to resources stored in the network disk, such as resource name, resource size, upload date, resource content, etc.

[0032] According to an embodiment of the present disclosure, when a user needs to retrieve application data, he can input a search character through the client, and the client can generate a search request (query) according to the search character input by the user, and send the search request to the cloud.

[0033] Then, in operation S220, the cloud obtains a retrieval request from the client.

[0034] In operation S230 , the cloud determines at least one keyword according to the search request.

[0035] According to an embodiment of the present disclosure, a search request may be segmented to obtain at least one original word. Then, the at least one original word may be error corrected to obtain at least one original word after error correction. Then, the at least one original word after error correction may be expanded to obtain at least one keyword.

[0036] According to an embodiment of the present disclosure, the search characters in the search request are composed of a continuous sequence of characters. Word segmentation can be used to reassemble the continuous sequence of characters in the search request into a word sequence, that is, to identify the words composed of these continuous sequence of characters.

[0037] According to an embodiment of the present disclosure, due to typing errors and other reasons, the user may input search characters that do not match the user's original intention, and accordingly, the word obtained after the search characters are processed by word segmentation is wrong. Based on this, error correction processing can be used to identify the user's intention according to the search request, and according to the user's intention, correct the wrong word to a correct word that better matches the user's original intention.

[0038] According to an embodiment of the present disclosure, the same thing or concept can be expressed by a variety of different words. Based on this, the expansion process can be used to determine other words that express the same or similar things or concepts as the original word, so that the original word can be expanded, and the expanded words can more comprehensively cover the meaning of the original word.

[0039] For example, if the search request is "Beijing Xiaochi", then after word segmentation, the two original words "Beijing" and "Xiaochi" can be obtained. Then the two original words are corrected, and "Xiaochi" is corrected to "snacks". Next, "Beijing" and "snacks" are expanded, where "Beijing" can be expanded to "Beijing", "capital", "Beijing", etc., and "snacks" can be expanded to "snacks", "delicious food", "food", "food", etc. The final keywords include "Beijing", "capital", "Beijing", "snacks", "delicious food", "food", "food", etc.

[0040] In operation S240 , the cloud sends at least one keyword as search data to the client.

[0041] In operation S250 , the client receives at least one keyword from the cloud.

[0042] In operation S260, the client searches for data in the local database according to at least one keyword to obtain a search result.

[0043] According to an embodiment of the present disclosure, for each keyword in at least one keyword, the client may query the feature data containing the keyword in the local database according to the inverted index information as a retrieval result, wherein the feature data corresponds to the application data.

[0044] According to an embodiment of the present disclosure, inverted index information is pre-set. The inverted index information may include, for example, a word dictionary and an inverted list. Among them, the word dictionary may include all words that have appeared in the feature data. The word dictionary includes one or more index items, and each index item may include a word and a pointer to the "inverted list" corresponding to the word. The inverted list may indicate in which feature data each word in the word dictionary appears, and each record in the inverted list is called an inverted item, and each word in the word dictionary corresponds to an inverted item, and each inverted item includes all feature data containing the word. Based on this, in this embodiment, for each keyword, the word matching the keyword can be searched in the word dictionary, and then the corresponding inverted item is determined according to the pointer corresponding to the word, and all feature data containing the keyword are determined according to the inverted item.

[0045] According to an embodiment of the present disclosure, when retrieving data, the similarity between each word in the word dictionary and the keyword can be determined, and when the similarity between the word and the keyword is greater than a similarity threshold, the word is determined to match the keyword. Exemplarily, in this embodiment, the Euclidean distance between the word vectors corresponding to the two words can be calculated as the similarity between the two words.

[0046] According to an embodiment of the present disclosure, the client sends a search request to the cloud. The cloud analyzes the search request, determines keywords, and sends them to the client. The client then searches the local database based on the keywords determined by the cloud. The analysis and processing capabilities of the cloud can be used to at least partially solve the problem of the difficulty in retrieving massive application data. In addition, since the search is performed locally on the client, the computing resources required to be consumed by the cloud are saved.

[0047] The beneficial effect is that the analysis and processing capabilities of the cloud can be used to solve the problem of searching for massive application data. In addition, searching locally saves the computing resources required for cloud searching.

[0048] Figure 3 The flowchart of a method for retrieving data according to another embodiment of the present disclosure is schematically shown.

[0049] like Figure 3 As shown, the method 300 includes operations S310 to S3120.

[0050] In operation S310 , the client uploads application data of the application to the cloud.

[0051] According to an embodiment of the present disclosure, after an application program in a client generates application data, the client may send the application data to the cloud for storage by the cloud.

[0052] In operation S320 , the cloud obtains application data from the client.

[0053] According to an embodiment of the present disclosure, after the cloud obtains the application data from the client, the application data may be stored in the cloud.

[0054] In operation S330 , the cloud performs content analysis on the application data to obtain feature data.

[0055] According to an embodiment of the present disclosure, the content analysis process can be used to analyze the attributes and content of the application data and generate feature data for representing the attributes and content. It can be understood that the data volume of the feature data is smaller than the data volume of the application data.

[0056] Exemplarily, in this embodiment, the feature data may include attribute information and content features of the application data. The attribute information of the application data may include, for example, a file name, a parent directory, etc. Exemplarily, in this embodiment, the attribute information may be directly read from the application data, and the content features may be determined based on the content of the application data.

[0057] According to an embodiment of the present disclosure, a machine learning model can be pre-trained to extract features of the content of application data. Based on this, the application data can be input into a pre-trained machine learning model, and the content of the application data can be analyzed using the machine learning model to obtain attribute information and content features of the application data as feature data.

[0058] In operation S340 , the cloud sends the feature data to the client.

[0059] In operation S350 , the client obtains feature data from the cloud.

[0060] In operation S360, the feature data is stored in a local database.

[0061] According to an embodiment of the present disclosure, after acquiring feature data from the cloud, inverted index information can also be determined based on the feature data. For words in the feature data that are not included in the word dictionary, a corresponding index item can be added to the word dictionary, and a corresponding inverted item can be added to the inverted list. For words in the feature data that are already included in the word dictionary, the feature data can be added to the inverted item corresponding to the word in the inverted list.

[0062] In operation S370 , the client sends the obtained retrieval request for the application data to the cloud in response to the obtained retrieval request for the application data.

[0063] In operation S380 , the cloud obtains a retrieval request from the client.

[0064] In operation S390, the cloud determines at least one keyword based on the search request.

[0065] In operation S3100, the cloud sends at least one keyword to the client.

[0066] In operation S3110 , the client receives at least one keyword from the cloud.

[0067] In operation S3120, data in the local database is retrieved according to at least one keyword to obtain a retrieval result.

[0068] According to an embodiment of the present disclosure, operations S380 to S3120 may be described above, for example, and will not be described in detail herein.

[0069] According to the embodiment of the present disclosure, the client sends the application data to the cloud, and the cloud performs content analysis on the application data while storing the application data to obtain feature data, and sends the feature data back to the client, which is stored in the local database by the client. Since the amount of feature data is smaller than the amount of application data, the space occupied by the local database can be reduced.

[0070] Reference below Figure 4 , the method for retrieving data is further described in conjunction with a specific embodiment. Those skilled in the art can understand that the following exemplary embodiments are only used to understand the present disclosure, and the present disclosure is not limited thereto.

[0071] Figure 4 The diagram schematically shows a method for retrieving data according to an embodiment of the present disclosure.

[0072] exist Figure 4 4 shows a user 410, a client 420 and a cloud 430, wherein the client 420 includes a local database 421, and the cloud 430 includes a cloud database 431. In response to the user 410 starting the application, the client 420 requests a data synchronization service through a background process, and the service is used to perform a data upload operation 43. The client 420 can upload the application data that needs to be uploaded to the cloud 430 to the cloud 430 through the data upload operation 43. Then the cloud 430 stores the application data received from the client 420 in the cloud database 431, performs content analysis processing 44 on the application data, obtains feature data, and then sends the feature data to the client 420 through a data synchronization operation 45, and the client 420 stores it in the local database 421. The data synchronization operation 45 can be performed through a background process.

[0073] When the user 410 initiates a real-time search operation, the search character is input through the client 420. The client 420 generates a search request (query) 41 according to the search character, and sends the query 41 to the cloud 430. The cloud 430 performs query analysis 46 on the query 41 to understand the user's search intention, and generates one or more keywords, which are sent to the client 420. The client 420 performs a recall and inverted index operation 42 on the data in the local database 421 according to the keywords to obtain the search results. The client 420 then displays the search results to the user 410.

[0074] According to the embodiments of the present disclosure, the analysis and processing capabilities of the cloud are utilized during the retrieval process, making the retrieval more intelligent. In addition, the inverted index is executed by the client, which at least partially solves the retrieval problem of massive application data and saves the resources consumed by the cloud to establish the inverted index.

[0075] Figure 5 The block diagram of the apparatus for retrieving data according to an embodiment of the present disclosure is schematically shown.

[0076] like Figure 5 As shown, the apparatus 500 for retrieving data includes a first sending module 510, a receiving module 520 and a retrieving module 530. The apparatus 500 can be applied to the client shown above.

[0077] The first sending module 510 may be configured to send the acquired search request to the cloud, so that the cloud determines at least one keyword according to the search request.

[0078] The receiving module 520 may be configured to receive at least one keyword from the cloud.

[0079] The search module 530 may be used to search for data in the local database according to at least one keyword to obtain search results.

[0080] Figure 6 A block diagram schematically shows an apparatus for sending retrieved data to a client according to another embodiment of the present disclosure.

[0081] like Figure 6 As shown, the device 600 for sending the search data to the client includes an acquisition module 610, a determination module 620 and a second sending module 630. The device 600 can be applied to the cloud as shown above.

[0082] The acquisition module 610 may be used to acquire a search request from a client.

[0083] The determination module 620 may be configured to determine at least one keyword according to the search request.

[0084] The second sending module 630 may be configured to send at least one keyword to the client.

[0085] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0086] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0087] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0088] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0089] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as a method for retrieving data. For example, in some embodiments, the method for retrieving data may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the method for retrieving data described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform a method for retrieving data in any other appropriate manner (e.g., by means of firmware).

[0090] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0091] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0092] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0093] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0094] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0095] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0096] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0097] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for retrieving data, comprising: Sending the obtained search request for application data to the cloud, so that the cloud determines at least one keyword according to the search request; receiving the at least one keyword from the cloud; as well as According to the at least one keyword, searching the data in the local database to obtain a search result; The local database includes a plurality of feature data; the retrieving the data in the local database according to the at least one keyword includes: For each keyword in the at least one keyword, query the local database for feature data containing the keyword according to the inverted index information as the search result, wherein the inverted index information includes a word dictionary and an inverted list, and querying the local database for feature data containing the keyword includes: for each keyword, search the word dictionary for a word matching the keyword, determine a corresponding inverted item according to a pointer corresponding to the word, and determine all feature data containing the keyword according to the inverted item; The method further comprises: Uploading application data of the application program to the cloud, so that the cloud determines feature data corresponding to the application data, the feature data including attribute information and content features of the application data, and the data volume of the feature data is smaller than the data volume of the corresponding application data; Obtaining feature data from the cloud; and The feature data is stored in a local database, and inverted index information is determined according to the feature data.

2. The method according to claim 1, wherein: The method is applied to a client.

3. A method for sending retrieval data to a client, comprising: Get the retrieval request from the client; Determining at least one keyword according to the search request; as well as The at least one keyword is sent as search data to the client, so that the client searches for feature data containing the keyword in a local database according to inverted index information for each keyword in the at least one keyword as a search result, wherein the inverted index information includes a word dictionary and an inverted list, and the querying of the feature data containing the keyword in the local database includes: for each keyword, searching for a word matching the keyword in the word dictionary, determining a corresponding inverted item according to a pointer corresponding to the word, and determining all feature data containing the keyword according to the inverted item; The method further comprises: Get application data from the client; Performing content analysis on the application data to obtain feature data corresponding to the application data, wherein the feature data includes attribute information and content features of the application data, and the data volume of the feature data is smaller than the data volume of the corresponding application data; and The characteristic data is sent to the client.

4. The method according to claim 3, wherein: Determining at least one keyword according to the search request includes: Performing word segmentation processing on the search request to obtain at least one original word; performing error correction processing on the at least one original word to obtain at least one original word after error correction processing; and The at least one original word after the error correction processing is expanded to obtain the at least one keyword.

5. The method according to claim 3, wherein: The performing content analysis on the application data to obtain feature data includes: identifying attribute information of the application data; and The content of the application data is analyzed using a machine learning model to obtain content features of the application data as the feature data.

6. The method according to any one of claims 3 to 5, wherein: The method is applied in the cloud.

7. A device for retrieving data, comprising: A first sending module, configured to send the acquired search request to a cloud, so that the cloud determines at least one keyword according to the search request; A receiving module, configured to receive the at least one keyword from the cloud; as well as A search module, used to search the data in the local database according to the at least one keyword to obtain a search result; The local database includes a plurality of feature data; the search module is further used to query the feature data containing the keyword in the local database according to the inverted index information for each keyword in the at least one keyword as the search result, wherein the inverted index information includes a word dictionary and an inverted list, and the querying of the feature data containing the keyword in the local database includes: for each keyword, searching the word dictionary for a word matching the keyword, determining a corresponding inverted item according to a pointer corresponding to the word, and determining all feature data containing the keyword according to the inverted item; The device also includes: A module for uploading application data of an application program to a cloud, so that the cloud determines feature data corresponding to the application data, the feature data including attribute information and content features of the application data, and the data volume of the feature data is smaller than the data volume of the corresponding application data; A module for acquiring feature data from the cloud; and A module for storing the feature data in a local database and determining inverted index information according to the feature data.

8. The device according to claim 7, wherein: The device is applied to a client.

9. A device for sending retrieval data to a client, comprising: An acquisition module, used for acquiring a retrieval request from a client; A determination module, configured to determine at least one keyword according to the search request; as well as A second sending module is used to send the at least one keyword as search data to the client, so that the client can query the feature data containing the keyword in the local database according to the inverted index information for each keyword in the at least one keyword as the search result, wherein the inverted index information includes a word dictionary and an inverted list, and the querying of the feature data containing the keyword in the local database includes: for each keyword, searching the word dictionary for a word matching the keyword, determining a corresponding inverted item according to a pointer corresponding to the word, and determining all feature data containing the keyword according to the inverted item; The device also includes: Module for obtaining application data from the client; a module for performing content analysis on the application data to obtain feature data corresponding to the application data, wherein the feature data includes attribute information and content features of the application data, and the data volume of the feature data is smaller than the data volume of the corresponding application data; and A module for sending the characteristic data to a client.

10. The device according to claim 9, wherein: The device is applied in the cloud.

11. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

12. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.

13. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Device, method, and system for media resource retrieval

    CN105912545A

  • Searching method and device

    CN106776741A

  • Searching method and device

    CN107330019A

  • Method, device and system for multi-application search

    CN107665203A

  • Recommendation method of application and server

    CN107818105A