Information search method, device, electronic device and computer-readable storage medium
By setting up transit function entities on the server side, the problem of frequent requests by clients in traditional information search methods is solved, and a more efficient information search process is realized, reducing system overhead and bandwidth consumption.
Patent Information
- Application Number
- CN202011480940.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-15
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2040-12-15
AI Technical Summary
The traditional information search method requires that every time the user enters a search term, the client sends two requests to the server, occupying computing resources and network bandwidth, and the search process is not efficient enough.
Set up the transit function entity on the server side, receive the client's request message, and request the recommendation word results and prefetch search results from the corresponding service function entity based on the request message, and return to the client through a response message.
It reduces the number of requests sent by the client, reduces system overhead and bandwidth consumption, and improves the efficiency and user experience of information search.
Smart Images

Figure CN112579736B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure generally relate to the field of the Internet, and more specifically, to an information search method, an apparatus, an electronic device, a computer-readable storage medium, a computer program product, and a computer program product. Background Art
[0002] When a user searches for information on the client, the client usually needs to display two pieces of information to the user: one part of the information is the recommended words associated with the search words entered by the user, and the other part of the information is the search results obtained through the search engine on the server. Therefore, the client needs to send requests to the recommended word service function entity used to determine the recommended words and the pre-fetch service function entity used to pre-fetch search results in the server system based on the search words entered by the user, and display the recommended words obtained from the recommended word service function entity to the user as quickly as possible, and display the pre-fetched search results to the user when the user issues a search instruction. If the user changes the search word, the client still needs to send two requests as described above. That is, every time the user enters a search word, it needs to be implemented by sending two requests and receiving two responses. Therefore, the traditional information search method wastes the client's computing resources and network bandwidth. Summary of the invention
[0003] According to an exemplary embodiment of the present disclosure, a scheme for searching information is provided.
[0004] In a first aspect of the present disclosure, an information search method is provided. The method includes receiving a request message including query information from a client. The method further includes determining a recommendation word result and a pre-fetched search result corresponding to the query information based on the request message. Furthermore, the method includes returning the recommendation word result to the client as a first response message to the request message. In addition, the method also includes returning the pre-fetched search result to the client as a second response message to the request message.
[0005] In a second aspect of the present disclosure, an information search method is provided. The method includes sending a request message to a server system based on query information input by a user, the request message including the query information. In addition, the method also includes receiving a first response message and a second response message to the request message from at least one service function entity in the server system. The first response message indicates a recommendation word result corresponding to the query information to be used for display to the user, and the second response message indicates a pre-fetched search result corresponding to the query information to be used for display to the user.
[0006] In a third aspect of the present disclosure, an information search device is provided, comprising: a request message receiving module, configured to receive a request message including query information from a client; a result determination module, configured to determine a recommendation word result and a pre-fetched search result corresponding to the query information based on the request message; a first response message sending module, configured to return the recommendation word result to the client as a first response message to the request message; and a second response message sending module, configured to return the pre-fetched search result to the client as a second response message to the request message.
[0007] In a fourth aspect of the present disclosure, an information search device is provided, comprising: a request message sending module, configured to send a request message to a server system based on query information input by a user, the request message containing the query information; and a response message receiving module, configured to receive a first response message and a second response message to the request message from at least one service function entity in the server system, wherein the first response message indicates a recommendation word result corresponding to the query information to be used for display to the user, and wherein the second response message indicates a pre-fetched search result corresponding to the query information to be used for display to the user.
[0008] In the fifth aspect of the present disclosure, an electronic device is provided, comprising one or more processors; and a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to the first aspect of the present disclosure.
[0009] In a sixth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.
[0010] In a seventh aspect of the present disclosure, a computer program product is provided, comprising a computer program, which implements the methods according to the first and second aspects of the present disclosure when executed by a processor.
[0011] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they 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 above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0013] Figure 1 A schematic diagram illustrating an example environment in which various embodiments of the present disclosure can be implemented;
[0014] Figure 2 shows a high-level pipeline diagram of a process for searching for information according to an embodiment of the present disclosure;
[0015] Figure 3 A flowchart of a process for searching information based on a server system side according to an embodiment of the present disclosure is shown;
[0016] Figure 4 shows another high-level pipeline diagram of a process for searching for information according to an embodiment of the present disclosure;
[0017] Figure 5 shows yet another high-level pipeline diagram of a process for searching for information according to an embodiment of the present disclosure;
[0018] Figure 6 A flowchart of a process for searching information based on the client side according to an embodiment of the present disclosure is shown;
[0019] Figure 7 A block diagram of a device for searching information based on a server system side according to an embodiment of the present disclosure is shown;
[0020] Figure 8 A block diagram showing a device for searching information based on a client side according to an embodiment of the present disclosure; and
[0021] Fig. 9 A block diagram of a computing device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0022] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0023] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0024] As described above, the traditional information search method needs to execute two requests for sending and receiving in response to each input of the user's search, which occupies the computing resources of the user device of the client and increases the network bandwidth overhead. For example, if the user wants to enter the query information "Beijing weather", then the user may enter one by one during the input process: "Beijing", "day", "air". When the user enters "Beijing", the client will encapsulate the query information "Beijing" into a recommendation word request message and send the message to the recommendation word service function entity on the server system side, and the client will also encapsulate the query information "Beijing" into a pre-fetch service request message and send the message to the pre-fetch service function entity on the server system side. After that, the client will show the user the recommendation word results related to "Beijing" based on the response message. On the other hand, the client will also save the pre-fetch search results related to "Beijing". Before the user issues a search instruction, the client will send two request messages and receive two response messages corresponding to the request every time the user adds or changes the query information. Therefore, there is still room for optimization in this search process.
[0025] As mentioned above, there is an urgent need for an information search method to quickly, efficiently and at a low cost complete the process of displaying recommended words and pre-fetching search results for query information input by a user.
[0026] According to an embodiment of the present disclosure, an information search scheme is proposed. In this scheme, a transit function entity can be set at the server end to receive a request message from a client, and then the transit function entity will ask the corresponding service function entity for a recommendation result and a pre-fetched search result based on the request message, and return the two results to the client in the form of a response message corresponding to the request message. For example, the recommendation service function entity located at the server end can generate a recommendation response message in response to receiving a recommendation request message sent by the client, and the response message can be returned to the client in a chunked transmission (chunked) encoding mode in the Hypertext Transfer Protocol (HTTP); in addition, the recommendation service function entity also sends a pre-fetch service request message to the pre-fetch service function entity based on the recommendation request message, and after receiving the pre-fetch service response message returned by the pre-fetch service function entity, the recommendation service function entity returns the pre-fetched search result to the client in a chunked transmission encoding mode in the Hypertext Transfer Protocol.
[0027] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. Figure 1 1 is a schematic diagram of an example environment 100 in which various embodiments of the present disclosure can be implemented. Figure 1As shown, the example environment 100 includes a client 110 and a server system 120. In some embodiments, the client 110 may include, but is not limited to, a personal computer, a server computer, a handheld or laptop device, a mobile device (such as a mobile phone, a personal digital assistant PDA, a media player, etc.), a multi-processor system, a consumer electronics product, a minicomputer, a mainframe computer, a distributed computing environment including any one of the above systems or devices, etc. In addition, in addition to the traditional arrangement, the server system 120 can also be located in the cloud and respond based on the request message from the client 110.
[0028] For a more detailed description Figure 1 The message transmission process is now referred to Figure 2 Describes the message transmission between the client and server systems. Figure 2 A high-level pipeline diagram of a process for searching for information according to an embodiment of the present disclosure is shown. Figure 2 As shown, after receiving the query information (i.e., query) input by the user, the client 210 may generate a request message containing the query information, and send the request message to the server system 220 at 201. Thereafter, at 203, the server system 220 may determine the keyword results associated with the query information based on the request message. At 205, the server system 220 may return the recommendation word results as a first response message to the client 210. In addition, at 207, the server system 220 may also determine the pre-fetched search results associated with the query information based on the request message, and at 209, the server system 220 may return the pre-fetched search results as a second response message to the client 210.
[0029] It should be understood that the process 203 of determining the recommendation word result and the process 207 of determining the pre-fetched search result by the server system 220 are not limited to Figure 2 The order shown is executed, that is, except Figure 2 In the case of sequential execution shown in FIG. 2 , process 203 and process 207 can be executed in parallel. In addition, process 205 of returning a first response message can be executed immediately after determining the recommendation word result, and process 209 of returning a second response message can be executed immediately after determining the pre-fetched search result. In this way, client 210 can display the recommendation word result to the user, and display the pre-fetched search result to the user based on the user's instruction.
[0030] The technical solution described above is only used as an example, and does not limit the present invention. It should be understood that the client 210 and the server system 220 can also be arranged in other ways and connection relationships. Figure 3 Let's describe the information search process in more detail.
[0031] Figure 3 FIG. 3 is a flowchart of a process 300 for searching information based on a server system according to an embodiment of the present disclosure. In some embodiments, the process 300 may be performed on a server system. Figure 1 The server system 120 and Figure 2 The server system 220 is implemented. Figure 3 The information search process 300 according to the embodiment of the present disclosure is described. For ease of understanding, the specific examples mentioned in the following description are exemplary and are not intended to limit the protection scope of the present disclosure.
[0032] At 302, the server system 220 may receive a request message from the client 210. It should be understood that the request message contains query information. Here, the request message is not a "search request message" in the traditional technical solution, because the request message is not triggered by the user's search action, but may be triggered by the user's action of inputting query information. It should also be understood that the query information may be at least a part of the query item input by the user. As an example, when a user wants to search for information about "Beijing weather", if the user first enters "Beijing" in the search bar, "Beijing" is the query information. When the user subsequently enters "day", the query item "Beijing day" is the query information. The client 210 is configured to display the recommended word results such as "Beijing weather", "Beijing sports" and the like to the user based on the query information input by the user in real time. And the client 210 is also configured to obtain pre-fetched search results from the server system 220 side based on the query information input by the user in real time, so that when the user triggers the search instruction or the user selects a recommended word result from the displayed multiple recommended word results for search, the client 210 can display the pre-fetched search results to the user.
[0033] At 304 , the server system 220 may determine, based on the request message, recommendation word results and pre-fetched search results corresponding to the query information.
[0034] In some embodiments, in order to determine the recommendation word results and pre-fetch search results, the server system 220 may generate a recommendation word request message and a pre-fetch service request message associated with the query information based on the request message. It should be understood that the server system 220 may include multiple functional entities. As an example, Figure 4 Another high-level pipeline diagram of the process for searching for information according to the above-described embodiment of the present disclosure is shown. Figure 4In the example, the server system 420 may include a transfer function entity 421, a recommendation service function entity 422, and a pre-fetch service function entity 423. Therefore, at 401, the transfer function entity 421 in the server system 420 may be configured to receive a request message containing query information from the client 410, and generate a recommendation request message and a pre-fetch service request message corresponding to the query information.
[0035] Afterwards, the transfer function entity 421 sends a recommendation word request message and a pre-fetch service request message to the recommendation word service function entity 422 and the pre-fetch service function entity 423 in the server system 420, respectively. As an example, at 402, the transfer function entity 421 sends the recommendation word request message to the recommendation word service function entity 422. After that or at the same time, at 403, the transfer function entity 421 sends the pre-fetch service request message to the pre-fetch service function entity 422.
[0036] In addition, the transfer function entity 421 is also configured to receive a recommendation response message from the recommendation service function entity 422 and a pre-fetch service response message from the pre-fetch service function entity 423. As an example, at 404, the recommendation service function entity 422 determines the recommendation result based on the recommendation request message, and at 405, the recommendation service function entity 422 transmits the recommendation result as a recommendation response message to the transfer function entity 421. After or at the same time as the process 404, at 407, the pre-fetch service function entity 423 determines the pre-fetch search result based on the pre-fetch service request message, and at 408, the pre-fetch service function entity 423 transmits the pre-fetch search result as a pre-fetch service response message to the transfer function entity 421. In this way, by setting the transfer function entity 421 in the server system 420, the present disclosure can realize that the client can receive two results determined by the server system 420 by sending a request message once, thereby saving bandwidth overhead on the client side.
[0037] It should be understood that the recommendation word response message includes the recommendation word result corresponding to the query information, and the pre-fetch service response message includes the pre-fetch search result corresponding to the query information. Figure 4 The order shown is executed, that is, except Figure 4 The above processes may be executed in other orders, for example, processes 402 and 403 are executed in parallel, processes 404 and 407 are executed in parallel, processes 405 and 408 are executed in parallel, etc.
[0038] In addition, in some embodiments, the request message may include a recommendation word request message, so the recommendation word service function entity may partially replace the above-mentioned transfer function entity. Figure 5FIG. 4 shows another high-level pipeline diagram of a process for searching for information according to the above-described embodiment of the present disclosure. Figure 5 In the example, the server system 520 may include a recommendation service function entity 521 and a pre-fetch service function entity 522. Therefore, at 501, the recommendation service function entity 521 in the server system 520 may be configured to receive a recommendation request message including query information from the client 510. Then, at 502, the recommendation service function entity 521 determines a recommendation result based on the recommendation request message.
[0039] In addition, a pre-fetch service request message can be generated based on the recommendation word request message, and a pre-fetch service response message can be generated based on the pre-fetch service request message, and the pre-fetch service response message includes the pre-fetch search results corresponding to the query information. As an example, at 504, the recommendation word service function entity 521 sends the pre-fetch service request message to the pre-fetch service function entity 522, and at 505, the pre-fetch service function entity 522 determines the pre-fetch search results, and then at 506, the pre-fetch search results are returned to the recommendation word service function entity 521 as a pre-fetch service response message. In this way, by setting the recommendation word service function entity in the server system 520 as a transit function entity, the present disclosure can realize that the client can receive two results determined by the server system 520 by sending a request message once, thereby saving bandwidth overhead on the client side.
[0040] At 306, the server system 220 may return the recommendation word result as a first response message to the request message to the client 210. As an example, Figure 4 As shown, at 406, the transfer function entity 421 returns the recommendation result as a recommendation response message to the client 410. As another example, Figure 5 As shown, at 503 , the recommendation word service function entity 521 returns the recommendation word result as a recommendation word response message to the client 510 .
[0041] At 308, the server system 220 may return the pre-fetched search results as a second response message to the request message to the client 210. As an example, Figure 4 As shown, at 409, the transfer function entity 421 returns the pre-fetch search result as a pre-fetch service response message to the client 410. As another example, Figure 5 As shown, at 507 , the recommendation word service function entity 521 returns the pre-fetched search results to the client 510 as a pre-fetch service response message.
[0042] Preferably, the first response message and the second response message of the request message are transmitted sequentially based on the block transfer encoding method in the hypertext transfer protocol. That is, the number of response messages of the request message can be one, the first response message includes the start information of the response message of the request message, and the second response message includes the end information of the response message. Therefore, the client 210 only needs to receive one response message to obtain the recommendation word results and pre-fetch the search results, thereby saving bandwidth resources on the client side.
[0043] Figure 6 A flowchart of a client-side process 600 for searching for information according to an embodiment of the present disclosure is also shown. In some embodiments, the process 600 may be performed Figure 1 Client 110 and Figure 2 The client 210 is implemented. Figure 6 The information search process 600 according to the embodiment of the present disclosure is described. For ease of understanding, the specific examples mentioned in the following description are exemplary and are not intended to limit the protection scope of the present disclosure.
[0044] At 602, the client 210 may send a request message to the server system based on the query information input by the user. It should be understood that the request message contains the query information. Here, the request message is not the "search request message" in the traditional technical solution, because the request message is not triggered by the user's search action, but may be triggered by the user's action of inputting query information. As an example, when a user wants to search for information about "Beijing weather", if the user first enters "Beijing" in the search bar, "Beijing" is the query information. When the user subsequently enters "day", the query item "Beijing day" is the query information.
[0045] At 604, the client 210 may receive a first response message and a second response message to the request message from at least one service function entity in the server system 220. As an example, the first response message may be used to indicate a recommendation word result corresponding to the query information to be used for display to the user, and the second response message may be used to indicate a pre-fetched search result corresponding to the query information to be used for display to the user. As an example, the client 210 may display recommendation word results such as "Beijing Weather", "Beijing Sports", etc. to the user based on the query information input by the user in real time. And the client 210 is also configured to obtain pre-fetched search results from the server system 220 side based on the query information input by the user in real time, so that when the user triggers a search instruction or the user selects a recommendation word result from multiple displayed recommendation word results for search, the client 210 can display the pre-fetched search results to the user.
[0046] In some embodiments, the at least one service function entity may be a recommendation word service function entity or a pre-fetch service function entity, configured to provide a recommendation word service function or a pre-fetch service function. Alternatively or additionally, the at least one service function entity may also be a transit service function entity, configured to provide a forwarding service function. In some embodiments, the first response message and the second response message of the request message are transmitted sequentially based on a block transfer encoding method in a hypertext transfer protocol.
[0047] It should be understood that the request message may include addressing information indicating the addressing to at least one service function entity in the server system 220. For example, the request message may include address information to the recommendation word service function entity, so that when the transit function entity receives the request message, the request message may be directly forwarded to the recommendation word service function entity based on the address information. For another example, the request message may include address information to the pre-fetch service function entity, so that when the transit function entity receives the request message, the request message may be directly forwarded to the pre-fetch service function entity based on the address information. In this way, the working mechanism of the transit function entity may be defined on the client side, so that when the server system 220 includes other function entities in addition to the recommendation word service function entity and the pre-fetch service function entity, the client 210 may determine the destination function entity to send the request message by itself. In this way, the scalability of the server-side function entity is increased.
[0048] In some embodiments, when the client 210 receives a search instruction input by the user, for example, the user touches the "search" instruction, or the user selects one of the recommended word results, the client 210 needs to compare the pre-fetched search results with the query information. If the pre-fetched search results hit the query information, the pre-fetched search results are displayed to the user. If the pre-fetched search results do not hit the query information, the client 210 directly re-initiates the search request based on the query information. In this way, the accuracy of the search results can be improved and the user experience can be improved.
[0049] Through the above embodiments, the present disclosure provides an improved process for message communication between a client and a server system during an information search process. By executing the improved process of the present disclosure, the number of times a client sends a request can be reduced, thereby significantly reducing the system overhead and bandwidth of the client during the process of a user inputting query information. In addition, the present disclosure utilizes the chunked encoding method in the Hypertext Transfer Protocol (HTTP) to transmit two results determined by the server system side in one response message, thereby reducing the number of times a client receives a request, further reducing the system overhead and bandwidth of the client.
[0050] In addition, the present disclosure also provides a corresponding computer-readable storage medium, which stores computer instructions for causing a computer to execute at least one process of the above embodiments. The present disclosure further provides a corresponding computer program product, which includes a computer program that can implement at least one process of the above embodiments.
[0051] Figure 7 FIG. 7 is a block diagram of a device 700 for searching information based on a server system according to an embodiment of the present disclosure. Figure 7 As shown, the device 700 may include: a request message receiving module 702, configured to receive a request message including query information from a client; a result determination module 704, configured to determine a recommendation word result and a pre-fetched search result corresponding to the query information based on the request message; a first response message sending module 706, configured to return the recommendation word result to the client as a first response message to the request message; and a second response message sending module 708, configured to return the pre-fetched search result to the client as a second response message to the request message.
[0052] In some embodiments, the result determination module 704 can be further configured to: generate a recommendation word request message and a pre-fetch service request message associated with the query information based on the request message; send the recommendation word request message and the pre-fetch service request message to the recommendation word service function entity and the pre-fetch service function entity in the server system respectively; receive a recommendation word response message from the recommendation word service function entity and a pre-fetch service response message from the pre-fetch service function entity, wherein the recommendation word response message includes the recommendation word result corresponding to the query information, and the pre-fetch service response message includes the pre-fetch search result corresponding to the query information.
[0053] In some embodiments, the request message may include a recommendation word request message, and the result determination module may be further configured to: generate a recommendation word response message based on the recommendation word request message, the recommendation word response message including the recommendation word result corresponding to the query information; generate a pre-fetch service request message based on the recommendation word request message; and generate a pre-fetch service response message based on the pre-fetch service request message, the pre-fetch service response message including the pre-fetch search results corresponding to the query information.
[0054] In some embodiments, the first response message and the second response message of the request message may be transmitted sequentially based on a block transfer encoding method in a hypertext transfer protocol.
[0055] Figure 8 FIG. 8 is a block diagram of a device 800 for searching information based on a client side according to an embodiment of the present disclosure. Figure 8As shown, the device 800 may include: a request message sending module 802, configured to send a request message to a server system based on query information input by a user, the request message including the query information; and a response message receiving module 804, configured to receive a first response message and a second response message to the request message from at least one service function entity in the server system, wherein the first response message indicates a recommendation word result corresponding to the query information to be used for display to the user, and wherein the second response message indicates a pre-fetched search result corresponding to the query information to be used for display to the user.
[0056] In some embodiments, at least one service function entity may be configured to provide a recommendation word service function or a pre-fetch service function.
[0057] In some embodiments, at least one service function entity may be configured to provide a forwarding service function.
[0058] In some embodiments, the request message may include addressing information indicating addressing to at least one service function entity in the server system.
[0059] In some embodiments, the first response message and the second response message of the request message are transmitted sequentially based on the block transfer encoding method in the Hypertext Transfer Protocol.
[0060] In some embodiments, the device may also include: a comparison module, configured to compare the pre-fetched search results with the query information in response to receiving a search instruction input by the user; and a search result display module, configured to display the pre-fetched search results to the user in response to the pre-fetched search results hitting the query information.
[0061] Fig. 9 FIG. 9 is a block diagram of a computing device 900 capable of implementing various embodiments of the present disclosure. The device 900 may be used to implement Figure 1 The client 110 or server system 120 of the device 900. As shown in the figure, the device 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 902 or computer program instructions loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0062] A number of components in the device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0063] The processing unit 901 performs the various methods and processes described above, such as processes 300 and 600. For example, in some embodiments, the processes 300 and 600 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the CPU 901, one or more steps of the processes 300 and 600 described above may be performed. Alternatively, in other embodiments, the CPU 901 may be configured to perform the processes 300 and 600 in any other suitable manner (e.g., by means of firmware).
[0064] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip systems (SOCs), load programmable logic devices (CPLDs), and the like.
[0065] 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.
[0066] 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.
[0067] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.
[0068] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. An information search method, comprising: Receiving a request message including query information from a client, wherein the request message is not triggered by a search action of a user but is triggered by an action of a user inputting the query information, and the query information is at least a part of a query item input by the user; Using a transfer function entity in the server system, based on the request message, a recommendation word request message and a pre-fetch service request message associated with the query information are generated; Simultaneously sending the recommendation word request message and the pre-fetch service request message to the recommendation word service function entity and the pre-fetch service function entity in the server system respectively; Simultaneously receiving a recommendation word response message from the recommendation word service function entity and a pre-fetch service response message from the pre-fetch service function entity, wherein the recommendation word response message includes a recommendation word result corresponding to the query information, and the pre-fetch service response message includes a pre-fetch search result corresponding to the query information; Returning the recommendation word result to the client as a first response message to the request message; as well as Returning the pre-fetched search result to the client as a second response message to the request message, The first response message and the second response message of the request message are transmitted sequentially based on the block transfer encoding method in the hypertext transfer protocol, The first response message includes the start information of the response message of the request message, and the second response message includes the end information of the response message, so that the number of response messages of the request message is one.
2. The method according to claim 1, wherein the request message comprises a recommendation word request message, and the method further comprises: The recommendation word service function entity generates a recommendation word response message based on the recommendation word request message, wherein the recommendation word response message includes the recommendation word result corresponding to the query information; generating a pre-fetch service request message based on the recommendation word request message; as well as The pre-fetch service function entity generates a pre-fetch service response message based on the pre-fetch service request message, and the pre-fetch service response message includes the pre-fetch search result corresponding to the query information.
3. An information search method, comprising: Sending a request message to a transfer function entity in a server system based on query information input by a user, wherein the request message includes the query information, the request message is not triggered by a search action of the user but is triggered by an action of the user inputting the query information, and the query information is at least a part of the query item input by the user, and the transfer function entity simultaneously requests a recommendation word result and a pre-fetch search result corresponding to the query information from a recommendation word service function entity and a pre-fetch service function entity in the server system respectively based on the request message; as well as receiving a first response message and a second response message to the request message from the transit function entity, wherein the first response message indicates the recommendation word result corresponding to the query information to be used for displaying to the user, and The second response message indicates the pre-fetched search results corresponding to the query information to be displayed to the user, The first response message and the second response message of the request message are transmitted sequentially based on the block transfer encoding method in the hypertext transfer protocol, The first response message includes the start information of the response message of the request message, and the second response message includes the end information of the response message, so that the number of response messages of the request message is one. 4 . The method according to claim 3 , wherein the request message comprises addressing information indicating the at least one service function entity in the server system.
5. The method according to claim 3, further comprising: In response to receiving the search instruction input by the user, comparing the pre-fetched search results with the query information; In response to the pre-fetched search results hitting the query information, the pre-fetched search results are displayed to the user.
6. An information search device, comprising: A request message receiving module, configured to receive a request message including query information from a client, wherein the request message is not triggered by a search action of a user but is triggered by an action of a user inputting the query information, and the query information is at least a part of a query item input by the user; a transit function entity, located in the server system, configured to generate a recommendation word request message and a pre-fetch service request message associated with the query information based on the request message, and simultaneously send the recommendation word request message and the pre-fetch service request message to the recommendation word service function entity and the pre-fetch service function entity in the server system respectively, and simultaneously receive a recommendation word response message from the recommendation word service function entity and a pre-fetch service response message from the pre-fetch service function entity, wherein the recommendation word response message includes a recommendation word result corresponding to the query information, and the pre-fetch service response message includes a pre-fetch search result corresponding to the query information; A first response message sending module, configured to return the recommendation word result as a first response message to the request message to the client; as well as A second response message sending module is configured to return the pre-fetched search result as a second response message of the request message to the client, The first response message and the second response message of the request message are transmitted sequentially based on the block transfer encoding method in the hypertext transfer protocol, The first response message includes the start information of the response message of the request message, and the second response message includes the end information of the response message, so that the number of response messages of the request message is one.
7. The apparatus according to claim 6, wherein the request message comprises a recommendation word request message, and wherein: The recommendation word service function entity generates a recommendation word response message based on the recommendation word request message, wherein the recommendation word response message includes the recommendation word result corresponding to the query information; generating a pre-fetch service request message based on the recommendation word request message; as well as The pre-fetch service function entity generates a pre-fetch service response message based on the pre-fetch service request message, and the pre-fetch service response message includes the pre-fetch search result corresponding to the query information.
8. An information search device, comprising: A request message sending module is configured to send a request message to a transfer function entity in a server system based on query information input by a user, wherein the request message includes the query information, the request message is not triggered by a search action of the user but is triggered by an action of the user inputting the query information, and the query information is at least a part of the query item input by the user, and the transfer function entity simultaneously requests a recommendation word result and a pre-fetch search result corresponding to the query information from a recommendation word service function entity and a pre-fetch service function entity in the server system respectively based on the request message; as well as a response message receiving module, configured to receive a first response message and a second response message to the request message from the transit function entity, wherein the first response message indicates the recommendation word result corresponding to the query information to be used for displaying to the user, and The second response message indicates the pre-fetched search results corresponding to the query information to be displayed to the user, The first response message and the second response message of the request message are transmitted sequentially based on the block transfer encoding method in the hypertext transfer protocol, The first response message includes the start information of the response message of the request message, and the second response message includes the end information of the response message, so that the number of response messages of the request message is one.
9. The apparatus according to claim 8, wherein the request message comprises addressing information indicating the at least one service function entity in the server system for addressing.
10. The apparatus according to claim 8, further comprising: a comparison module, configured to compare the pre-fetched search results with the query information in response to receiving the search instruction input by the user; The search result display module is configured to display the pre-fetched search results to the user in response to the pre-fetched search results hitting the query information.
11. An electronic device, comprising: one or more processors; as well as A storage device, used for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
12. A computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to any one of claims 1 to 5.
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 5.
Citation Information
Patent Citations
Instant search results with page previews
US20160275203A1