Search method and apparatus, and device and storage medium

By providing prediction results on the client device and generating and delivering prediction data before the search engine generates search results, it solves the problem of search result transmission delays caused by insufficient server resources and imperfect network infrastructure, and improves user experience and search results. accuracy.

WO2024174865A1PCT designated stage expired Publication Date: 2024-08-29DOUYIN VISION CO LTD

Patent Information

Application Number
PCT/CN2024/076036
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-22
Filing Date
2024-02-05
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

In the case of insufficient server resources and imperfect network infrastructure, the transmission delay of search results is long, resulting in poor user experience.

Method used

By providing prediction results on the client device and generating and delivering prediction data before the search engine generates search results, service delays are reduced and the accuracy of prediction results is improved, thereby reducing the delivery of supplementary information.

Benefits of technology

It effectively reduces service latency and improves user experience. By parallel processing of search engine time-consuming and prediction result generation and delivery, subsequent update operations of supplementary information are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024076036_29082024_PF_FP_ABST
    Figure CN2024076036_29082024_PF_FP_ABST
Patent Text Reader

Abstract

According to the embodiments of the present disclosure, provided are a search method and apparatus, and a device and a storage medium. The method comprises: in response to receiving, at a server, the current query from a client device, determining a target region associated with the current query; at least on the basis of historical target region data corresponding to the target region, generating a prediction result for the current query; sending the prediction result to the client device; in response to a search engine generating a search result for the current query, comparing the prediction result with the search result; and on the basis of a comparison result, sending, to the client device, supplementary information related to subsequent processing of the prediction result. In this way, the speed and accuracy of a server providing search services can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Search method, device, equipment and storage medium

[0001] This application claims priority to the Chinese invention patent application with application number 202310152761.8 filed on February 22, 2023 and titled “Search method, apparatus, device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to search methods, apparatuses, devices, and computer-readable storage media. Background Art

[0003] With the development of information technology, diverse and massive data resources are constantly being generated. In order to find the required information from the massive data, users usually search for the required information through queries. For example, a user can use a client device to send a query request to a server and receive the corresponding query results from the server. Generally, the server needs a certain amount of processing time to provide the corresponding search results after receiving the query request. However, when the server's transmission resources, computing resources, etc. are insufficient and / or the network infrastructure is imperfect, the search results may take a long time to be provided from the server to the client device, resulting in a poor user experience.

[0004] Summary of the Invention

[0005] In a first aspect of the present disclosure, a search method is provided. The method includes: in response to receiving a current query from a client device at a server, determining a target area associated with the current query; generating a predicted result for the current query based at least on target area historical data corresponding to the target area; sending the predicted result to the client device; in response to a search engine generating search results for the current query, comparing the predicted result with the search results; and, based on a result of the comparison, sending supplemental information related to subsequent processing of the predicted result to the client device.

[0006] In a second aspect of the present disclosure, a search method is provided. The method includes: sending a current query from a client device to a server; receiving a predicted result for the current query from the server, wherein the predicted result is generated based on target area historical data corresponding to a target area, and the target area is associated with the current query; receiving supplementary information related to subsequent processing of the predicted result from the server, wherein the supplementary information is generated based on a comparison of the predicted result with search results generated by a search engine; and performing an operation on the predicted result based on the supplementary information.

[0007] In a third aspect of the present disclosure, a search device is provided. The device includes: a current region determination module configured to, in response to receiving a current query from a client device at a server, determine a target region associated with the current query; a prediction result generation module configured to generate a prediction result for the current query based on at least target region historical data corresponding to the target region; a prediction result transmission module configured to transmit the prediction result to the client device; a comparison module configured to, in response to a search engine generating search results for the current query, compare the prediction result with the search results; and a supplementary information transmission module configured to, based on the comparison result, transmit supplementary information related to subsequent processing of the prediction result to the client device.

[0008] In a fourth aspect of the present disclosure, a search apparatus is provided. The apparatus includes: a query sending module configured to send a current query to a server at a client device; a prediction result receiving module configured to receive a prediction result for the current query from the server, wherein the prediction result is generated based on target area historical data corresponding to a target area, and the target area is associated with the current query; a supplementary information receiving module configured to receive supplementary information related to subsequent processing of the prediction result from the server, wherein the supplementary information is generated based on a comparison of the prediction result with search results generated by a search engine; and an operation performing module configured to perform an operation on the prediction result based on the supplementary information.

[0009] In a fifth aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the device to perform the method of the first aspect or the second aspect.

[0010] In a sixth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect or the second aspect.

[0011] It should be understood that the contents described in the summary of the present invention are not intended to limit the key features 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 readily 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] FIG1 shows a schematic diagram of an example environment in which embodiments of the present disclosure can be implemented;

[0014] FIG2 shows an exemplary interaction diagram of a search process according to some embodiments of the present disclosure;

[0015] FIG3 shows a schematic diagram of a search process performed on a server side according to some embodiments of the present disclosure;

[0016] FIG4 shows a schematic diagram of providing supplementary information according to some embodiments of the present disclosure;

[0017] FIG5 shows a flow chart of a search method performed on a server side according to some embodiments of the present disclosure;

[0018] FIG6 shows a flowchart of a search method performed on a client device according to some embodiments of the present disclosure;

[0019] FIG7 shows a block diagram of a search device according to some embodiments of the present disclosure;

[0020] FIG8 shows a block diagram of a search device according to some other embodiments of the present disclosure; and

[0021] FIG9 illustrates a block diagram of a device capable of implementing various embodiments of the present disclosure. DETAILED DESCRIPTION

[0022] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0023] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.

[0024] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0025] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0026] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

[0027] The following describes embodiments of the present disclosure in more detail 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 limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0028] It should be noted that the titles of any section / subsection provided herein are not limiting. Various embodiments are described throughout this document, and any type of embodiment may be included under any section / subsection. Furthermore, the embodiments described in any section / subsection may be combined in any manner with any other embodiments described in the same section / subsection and / or in different sections / subsections.

[0029] 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 term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may be included below.

[0030] As briefly mentioned above, if the server's transmission and computing resources are insufficient and / or the network infrastructure is inadequate, search results may take a long time to be delivered from the server to the client device. For example, if the server is located remotely or even overseas, the client device is often located a long distance away from the server. In some areas, network infrastructure is particularly poor, resulting in significant network transmission delays. In some cases, insufficient equipment in the server room and continued growth in service demand can lead to a continuous deterioration in transmission time, such as increasing the time required for each query by hundreds of milliseconds or even longer.

[0031] In order to solve the above and other potential problems, a search solution is proposed according to the technical solution of the present invention. In this solution, the client device is first provided with a predicted result for the query, and the predicted result is determined based on the historical data of the area associated with the query. Then, the client device is provided with supplementary information related to the subsequent processing of the predicted result, thereby improving the overall search results. Compared with the traditional solution of providing search results with only one data transmission (such as one data packet) corresponding to a query request, the technical solution of the present invention can provide search results through multiple data transmissions (such as multiple data packets). In this way, by generating the predicted data and issuing it in advance before the search engine provides the search results, the search engine time can be parallelized with the generation and issuance of the predicted results, thereby reducing service delays. Furthermore, the extracted and issued predicted results are determined based on the historical data related to the query. This is conducive to improving the accuracy of the predicted results, thereby reducing or even avoiding the issuance of subsequent supplementary information. In this way, it can further contribute to reducing service delays.

[0032] Example environment and interactive process

[0033] FIG1 illustrates a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. A server 110 for providing a search service and a client device 120 for using the search service are shown in the environment 100. The client device 120 sends a search request 101 to the server 110 based on user input (e.g., typed or spoken keywords) and receives search results 102 returned by the server 110.

[0034] In some embodiments, an application may be installed in the client device 120. A user may interact with the application via the client device 120 and / or a device attached to the client device 120, thereby initiating a search request 101. As an example, the application may be a content sharing application that can at least provide users with services related to media content, such as browsing, commenting, forwarding, and creating media content. In this context, "media content" may include various forms, including but not limited to images, videos, audio, and the like.

[0035] The server 110 can be any type of server-side device with communication capabilities, which can include, for example, a computing system such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. The server 110 can be a single server or a server cluster consisting of several servers. The server 110 can also be a cloud computing service center or a computing instance implemented by cloud computing resources. It should be understood that the above is merely an example of the server 110 and not a limitation. The server 110 can be a device of various forms or structures that can provide search services to the client device 120.

[0036] The client device 120 can be any type of terminal device with communication capabilities. The terminal device can be any type of mobile terminal, fixed terminal, or portable terminal, including a mobile phone, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, media computer, multimedia tablet, personal communication system (PCS) device, personal navigation device, personal digital assistant (PDA), audio / video player, digital camera / camcorder, positioning device, television receiver, radio broadcast receiver, e-book device, gaming device, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. The client device 120 and the server 110 can communicate via a wireless network or a wired network.

[0037] It should be understood that the above description of the structure and function of the environment 100 is only for exemplary purposes and does not imply any limitation on the scope of the present disclosure. Some example embodiments of the present disclosure will be described below with reference to Figures 2 to 9 .

[0038] FIG2 illustrates an exemplary interaction diagram 200 of a search process according to some embodiments of the present disclosure. The search process 200 of FIG2 illustrates the process by which a server provides search services to a client device. For ease of discussion, process 200 is described below with reference to server 110 and client device 120 in FIG1 . It should be understood that this is merely exemplary and is not intended to limit the present disclosure in any way. The server and client device in process 200 may be implemented as any other suitable device.

[0039] As shown in FIG2 , client device 120 sends ( 205 ) a query to server 110 . For ease of discussion, this query will be referred to as the “current query” below. Upon receiving ( 210 ) the current query from client device 120 , server 110 generates ( 215 ) a prediction result for the current query.

[0040] The prediction results may include one or more items predicted based on the current query. An item in the prediction results may be media content (e.g., video, audio, image), or other possible data predicted. For example, if the current query involves a certain animal, the prediction results may include videos, audio, and images related to the animal, and may also include information about social accounts related to the animal (e.g., animal science accounts), such as avatars, introductions, published media content, etc. It should be understood that the information included in the prediction results complies with relevant regulations. For example, the user may have granted access rights to the information, or the information returned to the client is processed.

[0041] In some embodiments, the predicted results may include all items predicted based on the current query, and there may be no limit on the total number of items. Alternatively, in some embodiments, the predicted items may be limited. For example, the predicted results may only include a predetermined number of items (e.g., 4 items) for display on the first screen of the client device.

[0042] To obtain prediction results, various data sources can be used. Examples of data sources include historical queries over a period of time, candidate data created over a period of time, and the profile of the user initiating the current query. These data sources can be maintained by region. Accordingly, server 110 determines the target region associated with the current query and then generates prediction results based on the historical data for that target region. After describing the overall flow of process 200, an example embodiment of generating prediction results using these data sources will be described in detail below.

[0043] After generating the prediction result, the server 110 sends (220) the prediction result to the client device 120. In the description herein, the time taken to send the prediction result may include the time taken to package the data and the time taken to transmit the data. The client device 120 receives (225) the prediction result from the server 110. Additionally, in some embodiments, the client device 120 may perform presentation-related preprocessing on the prediction result in response to receiving (225) the prediction result. For example, the client device 110 may render but not display the individual entries in the prediction result. In this way, after subsequently receiving supplementary information about the prediction structure, the client device 110 may quickly make adjustments and display them to the user. Therefore, it is beneficial to further shorten the time taken to present the results to the user, thereby improving the user experience.

[0044] The description of the server side continues. After receiving (210) the current query, the server 110 can generate search results for the current query through a local search engine or a search engine that communicates with it. The search results can be generated using various known search engines, and the search engines will not be described in detail here. Similar to the content of the predicted results, the search results may include one or more items determined by the search engine based on the current query, each item may be media content (e.g., video, audio, image), or other possible data predicted, and so on. It should be understood that the information included in the search results also complies with relevant regulations. For example, the user may have granted access rights to the information, or the information returned to the client is processed.

[0045] The process of generating search results for the current query can be performed in parallel with the process of generating (215) and / or sending (220) the prediction results. In the embodiments of the present disclosure, the time sequence is not limited. In response to the search engine generating search results for the current query, the server 110 compares the prediction results with the search results (230). Then, based on the results of the comparison, the server 110 sends (235) supplementary information related to subsequent processing of the prediction results to the client device 120. Accordingly, the client device 120 receives (240) the supplementary information from the server 110. Then, based on the supplementary information, the client device 120 performs (245) an operation on the prediction results.

[0046] Depending on the results of the comparison, the supplemental information may include various suitable types of data and / or indications.

[0047] In some embodiments, the supplementary information may include update information generated based on the results of the comparison. The update information is used to update the predicted result to the search result. Accordingly, the client device 120 updates the previously received predicted result to the search result based on the update information. If the client device 120 has previously rendered the predicted result, the rendering update can be performed and displayed. For example, the update result may indicate the data and operations required to adjust the search result to the predicted result. Alternatively, the update result may indicate the difference between the search result and the predicted result. In this case, the client device 120 can determine the operations required to adjust the search result to the predicted result based on the difference.

[0048] Depending on the specific implementation of the search results and the predicted results, the update information can indicate the required update operation to the client device 120 in a corresponding appropriate manner. In some embodiments, the predicted results may include a first group of entries, and the search results may include a second group of entries. In such an embodiment, the update result may indicate that the first group of entries arranged in a first order is updated to a second group of entries arranged in a second order. In this case, the update information may include, but is not limited to, the deletion of entries, the addition of entries and / or the replacement of entries, etc. For example, the predicted results include entry 1, entry 2, entry 3, and entry 4, and the search results include entry 1, entry 5, entry 3, and entry 4. The update information may indicate that entry 2 is replaced with entry 5.

[0049] Because the predicted results may be based on historical queries, the specific content of the items in the predicted results may not be up to date. Therefore, even for the same item, its specific content in the predicted results and search results may be different. In this article, the same item can refer to items related to the same object or entity, such as items related to the same video or the same user. In view of this, in some embodiments, the update information can further indicate an update to the object description in the item.

[0050] Specifically, if the entry in the predicted result (also referred to as the first entry) and the entry in the search result (also referred to as the second entry) relate to the same object, the update information may indicate that the second entry has an object description element that is different from the first entry. The object description element may exist in the entry in the search results but not in the entry in the predicted result; or it may be different in the search results and the predicted result. Accordingly, the client device 120 may add an object description element to the previously received search results based on the supplementary information, or modify the object description element originally existing in the search results. As an example, if the entries in the predicted result and the search result are both information about object A, the object description element may be the latest published content related to object A, such as videos, photos, text, etc. As another example, if the entries in the predicted result and the search structure both relate to media content B, the object description element may be the number of likes, comments, reposts, etc. of media content B.

[0051] In some embodiments, the supplementary information may include instructions on how to process the search results. Specifically, the server 110 may determine the number of operations required to update the predicted result to the search result based on the result of the comparison (230). The number of operations may, for example, be the number of operations required to adjust the order of entries in the predicted result or update the content of the entries. If the number of operations is less than the first threshold number, a positive indication of the predicted result may be sent to the client device 120. Accordingly, the client device 120 may present the predicted result. If the client device 120 has previously rendered the predicted result, the client device 120 may directly display the rendered predicted result. It should be understood that the specific value of the first threshold number may depend on the requirements for the accuracy of the query results, etc. For example, if the requirements are relatively strict, a positive indication may be sent only when the predicted result is consistent with the search result. For another example, if the requirements are relatively loose, a positive indication may be sent even if the predicted result is slightly different from the search result (for example, the entries included are the same but the order is different).

[0052] If the number of operations required to update the predicted result to the search result exceeds the second threshold number, server 110 may send a negative indication of the predicted result to client device 120. Accordingly, client device 120 abandons presenting the predicted result. In this case, server 110 may send the search result to client device 120 for presentation. It should be understood that the second threshold number may depend on an estimate of the time required for client device 120 to update the search result.

[0053] Traditionally, search results are provided with only one data transmission (e.g., one data packet) for each query request. In example process 200, by generating and pre-delivering prediction data before the search engine provides search results, the search engine's time is parallelized with the generation and delivery of prediction results, reducing service latency.

[0054] Generation of prediction results

[0055] As mentioned above with reference to FIG2 , a variety of data sources can be used to generate prediction results. One data source can be data from historical queries. For example, at least one historical query that matches the current query can be determined from candidate historical queries, and a prediction result can be generated based on the matching historical queries.

[0056] In some embodiments, in order to obtain more candidate entries for predicting results, the historical queries that match the current query are not necessarily completely consistent with the current query. For example, if the semantic difference between the current query and the historical query is small, then the two can be considered to be matched. For another example, if the important features in the semantics of the current query and the historical query are highly consistent, for example, the difference between the terms that contribute most to the current query and the historical query is less than a predetermined threshold, then the current query and the historical query can be considered to be matched. The following will also describe in detail how to determine the matching historical queries with reference to Figure 3.

[0057] To predict results for the current query, server 110 may pre-build an appropriate database to store and maintain information related to candidate historical queries. In some embodiments, server 110 may store the most recent search results for each query. Server 110 may then identify the most recent query time that matches the current query and determine a predicted result based on the search results for that query. For example, server 110 may determine a predicted result for the current query based on the most recent search results for a query related to a particular animal.

[0058] Alternatively or additionally, in some embodiments, the server 110 may pre-store information related to queries that appeared within a historical period (also referred to as a "second historical period"). Such information may include the time distribution and frequency of query appearances, the search results for each occurrence, etc. For example, the time at which each query appeared within the past period (e.g., the past 24 hours), the items that appeared most frequently in the search results, etc. may be calculated every hour.

[0059] In this embodiment, after receiving the current query, server 110 can identify multiple historical queries that matched the current query and generate prediction results based on these historical queries. By incorporating historical queries from the past, more candidate data can be obtained. This helps improve the hit rate of the prediction results, thereby reducing the client device's update operations on the prediction results.

[0060] In some embodiments, when utilizing matched historical queries, the degree of discreteness of the search results of these historical queries (which can also be considered as multiple searches of the same query) can be further considered. Specifically, the degree of discreteness of the multiple historical search results for these multiple historical queries can be determined, and only when the degree of discreteness is low can a prediction result be determined based on these historical search results. A low degree of discreteness indicates that the historical search results are good, so they can be used as prediction results. In some embodiments, if the degree of discreteness is determined to be less than a threshold discreteness, a prediction result is determined based on the multiple historical search results.

[0061] Sometimes historical queries may have poor real-time performance. For example, historical queries may include queries within 24 hours from the current time point. In view of this, in addition to historical queries or as a substitute for historical queries, in some embodiments, the data source of the prediction results may include newly created or newly released data within a historical time period close to the current time point (i.e., the first historical time period, such as the last 6 hours), such as videos, images, text, etc., which will be referred to as "candidate search data" below. Then, prediction results can be generated based on these candidate search data. In this way, streaming data can be used to supplement relatively real-time data, and streaming data and offline statistical data can be merged together to determine the prediction results.

[0062] For example, data created within six hours of the request initiation time can be obtained from the offline data stream as candidate search data. In some embodiments, the candidate search data can be stored in a database, such as the same database as the historical query. For example, the timestamp of the data creation can be used as a score, and the count within six hours can be recorded under another key. Server 110 can obtain the candidate search data from the database and determine the prediction result accordingly.

[0063] In some embodiments, whether to use such more real-time candidate search data can be determined based on a predetermined strategy. For example, if the number of historical queries that match the current query is less than a threshold number, the data that matches the current query can be determined from the candidate search data as at least part of the predicted result. For another example, if the historical query set that matches the current query appears at a time close to the current time point, the candidate search data can be used when generating the predicted result. The small number of matching historical queries or the recent concentrated appearance of matching historical queries may mean that the current query has a stronger real-time nature. Therefore, the candidate search data can be used in this case.

[0064] Information related to candidate historical queries and / or candidate search data can be stored in a database as pre-stored data or referred to as historical data to be used as a data source for prediction. As briefly mentioned above, historical data can be stored and maintained separately according to different regions. Regions can be divided, for example, according to geographical location, language type, administrative division, etc. For example, different countries or regions located in the same continent can be divided into the same region, countries or regions with the same official language can be divided into the same region, and different regions can be distinguished according to the administrative divisions of countries and regions. It should be understood that the above description of regions is merely exemplary and not restrictive, and the embodiments of the present disclosure can perform regional divisions in a variety of appropriate ways. Historical data may include the following data associated with a certain region, such as but not limited to historical queries that match the current query, candidate search data created in the recent period, and so on.

[0065] By utilizing this historical data maintained by region, predictions by region can be made. Specifically, the region associated with the current user (hereinafter also referred to as the "first region") can be determined based on the current user's profile. For example, the first region may be the region indicated in the current user's registration information, or the region corresponding to the language used by the current user. For another example, the first region may be the region where the current user is located when initiating the current query. However, it should be understood that no matter what scheme is used to determine the first region, the user's authorization or permission should be obtained. Then, the prediction result can be determined based on the historical data corresponding to the first region, as described above. In this embodiment, the first region can be regarded as the target region.

[0066] In some embodiments, cross-region prediction can be performed for the current query. For example, if no results for the current query are found in the historical data corresponding to the first region, the region corresponding to the historical query (e.g., the most recent query) that matches the current query (hereinafter also referred to as the "second region") can be determined as the target region. A prediction result can then be determined based on the historical data corresponding to the second region.

[0067] For example, you can search for multiple historical queries matching the current query in the historical data corresponding to the second region and make predictions based on these historical queries. Another example is that you can make predictions based on more timely candidate search data corresponding to the second region. By making predictions across regions, you can further expand the data sources for predictions, thereby improving the hit rate of prediction results.

[0068] Alternatively or additionally, in some embodiments, the data source of the prediction result may include the profile of the current user who initiated the current query. The user's profile may include basic information about the user, such as which accounts the user follows, like information, comment content, forwarding status, etc. The server 110 can determine whether the current query indicates another user associated with the current user based on the profile. If indicated, the information related to the current user can be determined as at least part of the prediction result. For example, the server 110 can first determine that the current query "Zhang XX" has the intention of "searching for users". It can then be determined based on the current user's profile that Zhang XX is another user that the current user follows. Accordingly, information about "Zhang XX", such as identification information, introduction information, a list of published media content, etc., can be used as at least part of the prediction result.

[0069] It should be understood that the use of user profiles in the embodiments of the present disclosure has been authorized by the user in advance. In addition, the use of user profiles is intended to provide services to users, rather than to expose sensitive and private information.

[0070] According to the technical solution disclosed herein, multiple data sources are used to determine prediction results for queries. The strategies for using these data sources can be flexibly adjusted and iterated, thereby achieving accurate prediction results. Prediction results obtained in this manner may require only a small number of updates, or even no updates at all. Furthermore, the technical solution disclosed herein can quickly, flexibly, and accurately provide search results for user search requests, while also having few constraints, making it suitable for a wide range of applications.

[0071] Example search process at the server

[0072] FIG3 illustrates a schematic diagram of a search execution process 300 according to some embodiments of the present disclosure. Process 300 can be implemented on a server providing a search service. For ease of discussion, process 300 of FIG3 is described below with reference to environment 100 of FIG1 , specifically server 110. It should be understood that this is merely exemplary and is not intended to limit the embodiments of the present disclosure in any way.

[0073] At block 310, the server 110 receives a query from the client device 120. In response to the query, the server 110 may look up and load information about the user who initiated the query at the client device 120. The server 110 may then execute two branches in parallel: one branch is the determination of regular search results, and the other branch is the generation and transmission of predicted results.

[0074] As shown in Figure 3, in the determination branch of the regular search results, the process 300 enters box 320, where the server 110 determines the regular search results for the query. Specifically, the server 110 performs engine recall sorting and uses the search engine to generate search results for the query from the client device 120. Recall is the process of obtaining a set of candidate content related to the query based on the input query. Sorting can be to sort the content in the candidate content set. If the relevant candidate content set cannot be recalled, even if the subsequent sorting method is very optimized, it cannot provide search results for the query. Therefore, recall is very important for the search engine, which determines the quality of the search engine. Recall can be achieved through a variety of existing algorithms, such as traditional word-based recall, vector-based semantic recall, etc., which will not be repeated here.

[0075] The engine recall ranking process of block 320 is typically time-consuming, for example, 600ms. In an embodiment of the present disclosure, by performing the search engine recall ranking (block 320) and the related processing of the prediction data (blocks 330 to 350) in parallel, processing time can be reduced and processing efficiency can be improved.

[0076] In parallel with the engine recall ranking at block 320 , process 300 proceeds to block 330 , branching off from generating and transmitting prediction results. At block 330 , server 110 generates prediction results. As previously mentioned, the prediction results may be derived from a variety of data sources, including at least one historical query matching the current query, candidate search data created within a certain historical period, and the profile of the user initiating the current query.

[0077] In some embodiments, offline statistical data may be used to determine the prediction result. The offline statistical data may be, for example, data related to historical queries over a period of time.

[0078] Offline statistics can be categorized by region. Regions can be categorized by, for example, geographic location (e.g., longitude, latitude, continent, etc.), language type, or administrative division (e.g., country, region, etc.). A user's profile can include the region or regions associated with the user. Thus, the region associated with the querying user can be determined based on the user's profile, thereby obtaining offline statistics for that region and, in turn, obtaining one or more historical queries matching the current query.

[0079] If one or more historical queries matching the current query are not found in the offline statistics of the above-mentioned region (also referred to as the first region), the offline statistics of another region (also referred to as the second region) can be searched. The second region can be determined, for example, in descending order of the number of queries with the same number as the first region. For example, the second region can be determined from the top N countries (N is a positive integer, such as 8) with the largest number of queries with the same number as the first region. For example, these N countries can be sorted in descending order according to the number of queries with the same number. If no historical queries matching the current query are found in the offline statistics of a certain region, the search can be continued in the regions with the lower ranking.

[0080] In some embodiments, to improve hit rate and maintainability, the region corresponding to each query can be recorded. If the same query is subsequently received, historical queries matching the query can be directly identified from the offline statistics for the recorded region. Alternatively, historical queries matching the query can be first searched for in the offline statistics for the current region. If no historical queries matching the query are found, the search can be repeated in the recorded region.

[0081] Historical queries matching the query received from client device 120 can be determined from offline statistical data in a variety of ways. In some embodiments, this can be done by query standardization or normalization. Alternatively, in some embodiments, historical queries matching the query can be determined by term matching.

[0082] In embodiments that employ query standardization to determine matching historical queries, whether two queries match can be determined based on semantics. For example, if one query is "hello, world" and the other is "hello world," the two queries are considered to match because they have the same semantics, differing only in the punctuation used for assistance.

[0083] In some embodiments, a two-level processing approach can be used to account for the specificity of some languages. In the first level of processing, standardization can be performed using rules. Examples of such rules include, but are not limited to, converting multiple spaces into a single space, removing punctuation, and eliminating accents in certain languages ​​(e.g., European languages). Since these accents typically indicate emphasis and lack independent semantics, they are eliminated for standardization. In the second level of processing, the query can be analyzed and the terms in the query can be standardized based on the analysis results. This standardization may have a certain impact on semantics and may also remove information such as tense, singularity, and pluralization. For example, the term "apples" included in the query may be adjusted to "apple." As an alternative, in embodiments using term matching to determine matching historical queries, query analysis can yield information about each term after query segmentation. The semantic contribution of each term to the entire query, also known as term importance, can also be determined. Furthermore, the query intent and / or other information can be determined. Using this information, more matching historical queries can be obtained by removing a portion of the semantics corresponding to the query, thereby improving the hit rate.

[0084] As a supplement to offline statistical data, in some alternative or additional embodiments, streaming data can be used to provide relatively real-time results. That is, streaming data can be applied to the process of determining the prediction results. For example, candidate search data created within a certain historical period can be obtained from the offline data stream, such as data whose creation time is within the historical period (e.g., the 6 hours closest to the current time) from the request initiation time. In some embodiments, the candidate search data can be stored in a database. The server 110 can obtain the candidate search data from the database and determine which part of the data to package based on a certain strategy.

[0085] As another alternative for determining prediction results, in some cases, the server 110 can determine the user's search intent based on the query received from the client device 120, such as whether the search is for content or a person. If it is found that the user's query involves a person and there is little data related to the person, such as the user is searching for an ordinary friend, it is possible that there is little or no historical query or related candidate search data for the query. In this case, to avoid the inability to obtain prediction data or the obtained prediction data being inaccurate, for example, the query from the client device 120 may sometimes include a user's unique identifier, such as uniq_id. Using the user's unique identifier and the current user's profile, it can be determined whether the current user wants to query their friends or people they follow. If so, the accuracy and hit rate of the prediction results can be improved. In this way, for situations where the user's intent is met and prediction data cannot be obtained, better quality prediction data can be obtained by querying the user profile.

[0086] After obtaining the prediction results, server 110 packages the prediction results at block 340. Because packaging can be a time-consuming process, such as 200 milliseconds, this parallel processing approach can effectively improve the processing efficiency of server 110. Then, at block 350, server 110 sends the packaged prediction data to client device 120.

[0087] After receiving the predicted data, client device 120 can pre-process the predicted data, such as by rendering. Because rendering is a relatively time-consuming process, taking, for example, 200 milliseconds, before client device 120 displays the final results for the query, which may be the predicted data or the predicted data adjusted using updated information, client device 120 can complete the time-consuming rendering operation in advance while server 110 uses its search engine to determine the search results, completing the display operation only after receiving a positive confirmation or update information from server 110. This effectively improves the efficiency of client device 120's display of the final results.

[0088] After obtaining the predicted result and the search results, server 110 compares them. For example, at block 360 , server 110 determines whether the predicted result matches the search results provided by the search engine after recall ranking. Based on the comparison results, server 110 sends supplemental information related to subsequent processing of the predicted result to client device 120. Supplemental information may include, but is not limited to, a positive indication, a negative indication, update information, and the like for the predicted result.

[0089] Specifically, if it is determined in box 360 that the predicted result is a hit, the server 110 may send a positive indication of the predicted result to the client device 120 in box 370. After receiving the positive indication, the client device 120 may know that the predicted result is accurate and can be displayed without adjustment. If the predicted result is not a hit, the server 110 may send a negative indication of the predicted result to the client device 120 in box 395. After receiving the negative indication, the client device 120 may know that the predicted result is inaccurate and may directly discard the predicted result. In the case that the predicted result is a partial hit, the server may generate update information for updating the predicted result to the search result based on the result of the comparison between the predicted result and the search result in box 380, and send the update information to the client device 120 in box 390. After receiving the update information, the client device 120 may update the previously received predicted result to the search result and present the search result.

[0090] In the example process depicted in Figure 3, the time-consuming engine recall sorting process is paralleled by the generation, packaging, transmission, and optional client-side rendering of prediction results. In contrast, in traditional solutions, engine recall sorting, search result packaging, transmission, and client-side rendering are all performed in series. Therefore, the embodiments of the present disclosure facilitate improved search service speed.

[0091] Example process for generating supplementary information

[0092] FIG4 illustrates a schematic diagram of a process 400 for providing supplemental information according to some embodiments of the present disclosure. Process 400 can be implemented on a server. For ease of discussion, process 400 of FIG4 is described below with reference to environment 100 of FIG1 , specifically server 110. It should be understood that this is merely exemplary and is not intended to limit the embodiments of the present disclosure in any way.

[0093] At block 410, server 110 initializes the predicted results and search results. The predicted results may be, for example, those obtained at block 215 or block 330, and may include a plurality of items arranged in an ordered manner (i.e., an item sequence). The search results may be, for example, a collection of items for the current query obtained by a search engine, which may be implemented as an item sequence. Server 110 may sort the items in the predicted results and the search results, respectively, to determine the order of the items in the predicted results and the order of the items in the search results.

[0094] At block 415, server 110 reorders the predicted results. For example, server 110 may reorder the predicted results based on the order of the items in the search results. In some embodiments, considering that items displayed above the first screen need to be displayed to the user more quickly, at block 415, only a portion of the predicted results may be reordered, for example, only the items in the predicted results intended for above-the-fold display (such as the first six items) may be reordered.

[0095] In block 420, the minimum edit distance is calculated for the entries in the predicted results and the entries in the search results. In embodiments of the present disclosure, the edit distance is a quantitative measure of the degree of difference between a sequence of entries. The edit distance may be determined, for example, by determining how many times at least one process is required to transform a sequence of entries into another sequence of entries. The edit distance may include, for example, the Levenshtein distance, which allows operations such as adding, deleting, and replacing entries, and may also include the Damerau-Levenshtein distance. The Damerau-Levenshtein distance is based on the Levenshtein distance and allows two adjacent entries to be exchanged. The edit distance may be calculated in an unweighted or weighted manner. Different weights may be assigned to each operation involved in the edit distance. For example, the weights for the operations of swapping, modifying, adding, and deleting may be 0, 2, 1, and 3, respectively. It should be understood that the above examples of each operation and its weight are merely illustrative and do not limit the embodiments of the present disclosure. In embodiments of the present disclosure, any appropriate weights may be set for the operations during the determination of the edit distance.

[0096] There may be multiple edit paths for converting the predicted result entry sequence into the search result entry sequence, each of which includes one or more edit operations. The edit distance for each edit path may be different. Therefore, at block 420 , the minimum edit distance for converting the predicted result entry sequence into the search result entry sequence can be calculated. In this way, the load on client device 120 for editing the predicted results can be reduced, thereby increasing the speed of displaying the search results.

[0097] At block 425, an edit operation is generated. For example, one or more edit operations to be performed may be derived based on the minimum edit distance obtained at block 420. Any suitable method may be used to derive the edit operation corresponding to the minimum edit distance. The scope of the present disclosure is not limited in this respect.

[0098] In block 430 , an entry update package is generated. Based on the editing operation obtained in block 425 , update information for adjusting the position of the entry in the prediction result may be generated and packaged into an update package.

[0099] In box 435, the order of the entries is verified. Here, the order of the entries in the adjusted prediction results is compared with the order of the entries in the search results to determine whether the two are consistent. After the verification is completed, in box 440, an update package for the entry sub-elements is generated. The entry sub-elements can be the object description elements described above. For example, for entries involving media content, the entry sub-elements can include fields such as the number of likes, the number of comments, the number of reposts, etc. For another example, for entries involving object information, the entry sub-elements can include a list of published videos related to the object, etc.

[0100] In block 445, a boundary condition check is performed. During this process, it is possible to check whether the conditions for returning the update package are met. For example, the total number of replace operations and add operations cannot exceed 2.

[0101] If the boundary condition check succeeds, an additional update package for the entry is generated in block 450. The additional update package may include other information that needs to be notified to the client device 120, such as Easter eggs.

[0102] At block 455 , based on the results of the boundary condition check, feedback is provided regarding the hit status. If the check result indicates that no edit operation is required, this represents a complete hit. In this case, server 110 may send a positive indication to client device 120, for example, by setting the ACK value in the indication to 0. It will be appreciated that, in this case, the entry update package generated at block 430 may be empty, and the sub-element update package generated at block 440 may be empty or not empty.

[0103] If the conditions for returning an update package are not met, for example, the total number of replace and add operations exceeds 2, this indicates a miss. In this case, server 110 may send a negative indication to client device 120, for example, by setting the ACK value in the indication to -1. It will be appreciated that in this case, both the entry update package generated at block 430 and the sub-element update package generated at block 440 may be empty.

[0104] If the conditions for returning an update package are met, for example, the total number of replace and add operations does not exceed two, then the predicted result can be updated to the search result. In this case, server 110 can send update information to client device 120, for example, in the form of an update package. Client device 120 can adjust the predicted result to the search result according to the item edit operation indicated by the update information, thereby quickly and efficiently obtaining more accurate search results.

[0105] In some embodiments, the predicted results sent to the client device 120 include, for example, items for display above the fold, and thus the number of additional items to be provided to the client device 120 may be determined subsequently at block 460. For example, assuming that the client device 120 can display six items above the fold, and the search results for display on the homepage include a total of ten items, then block 460 may determine that the number of items that still need to be provided to the client device 120 is four items.

[0106] The initial transmission of the prediction results to the client device 120 can be achieved in a variety of ways. In some embodiments, if six items are required for the first screen, the server 110 can actually send M items (M is an integer greater than or equal to 6) to the client device 120, and the client device 120 selects 6 items from these M items to display on the first screen.

[0107] In some alternative embodiments, when sending for the first time, only the items that are most likely to appear on the first screen may be sent from the server 110 to the client device 120, without caring about the order of the items.

[0108] In other alternative embodiments, different prediction result delivery strategies can be determined for different sessions based on the historical recall of the current query. This historical recall can include information such as, but not limited to, the frequency of the query over the past 24 hours, the dispersion of search results, the date of the most recent search for the query, the query's intent, timeliness, the region of the user making the query (the region can be used to approximate network infrastructure), the performance score of the client device, and so on. The prediction result delivery strategy can be determined based on the above historical recall and / or other information related to the current query. For example, for data with a high probability of success, the number of items sent from server 110 to client device 120 can be reduced. For another example, for data with poor server performance or poor network infrastructure, the number of items sent from server 110 to client device 120 can be reduced. For another example, for data with a particularly low probability of success, the number of items sent from server 110 to client device 120 can be reduced. It should be understood that in such embodiments, obtaining the user's region and / or client device performance score requires prior user authorization.

[0109] Example methods and apparatus

[0110] FIG5 illustrates a flow chart of a search method 500 performed on a server according to some embodiments of the present disclosure. Method 500 can be implemented on a server. For ease of discussion, the following description of method 500 in FIG5 uses server 110 in FIG1 as an example. It should be understood that this is merely exemplary and is not intended to limit the embodiments of the present disclosure in any way.

[0111] At block 505 , the server 110 determines a target region associated with the current query in response to receiving the current query from the client device 120 At block 510 , the server 110 generates a prediction result for the current query based on at least target region historical data corresponding to the target region.

[0112] In some embodiments, the target area historical data includes at least one of the following: data of at least one historical query matching the current query and associated with the target area, candidate search data associated with the target area created within the first historical time period, etc.

[0113] In some embodiments, at least one historical query includes multiple historical queries that occurred within a second historical time period, and generating a prediction result includes: determining a degree of discreteness of multiple historical search results for the multiple historical queries; and in response to determining that the degree of discreteness is less than a threshold degree of discreteness, determining a prediction result based on the multiple historical search results.

[0114] In some embodiments, to generate a prediction result, the server 110 may determine data matching the current query from the candidate search data as at least a portion of the prediction result in response to determining that the number of at least one historical query is less than a threshold number.

[0115] In some embodiments, in order to generate a prediction result, the server 110 may determine whether the current query indicates another user associated with the current user based on the profile of the current user who initiated the current query; and in response to determining that the current query indicates another user, determine information related to the current user as at least part of the prediction result.

[0116] In some embodiments, in order to determine the target area, the server 110 may determine a first area associated with the current user based on the profile of the current user who initiated the current query; search for results for the current query in the first area historical data corresponding to the first area; and in response to not finding results for the current query in the first area historical data, determine the second area corresponding to the last query that matches the current query as the target area.

[0117] At block 520, the server 110 sends the predicted results to the client device 120. At block 530, the server 110 compares the predicted results with the search results in response to the search engine generating search results for the current query.

[0118] At block 540 , the server 110 transmits supplementary information related to subsequent processing of the prediction result to the client device 120 based on the result of the comparison.

[0119] In some embodiments, in order to send the supplementary information, the server 110 may generate update information for updating the prediction result as the search result based on the comparison result, and send the update information to the client device 120 .

[0120] In some embodiments, the predicted result includes a first set of entries, the search result includes a second set of entries, and the update information indicates that the first set of entries arranged in a first order is updated to the second set of entries arranged in a second order. The update information may include at least one of the following: deletion of an entry, addition of an entry, and replacement of an entry.

[0121] In some embodiments, the first entry in the predicted result and the second entry in the search result relate to the same object, and the update information indicates that the second entry has different object description elements than the first entry.

[0122] In some embodiments, in response to the comparison result indicating that the number of operations required to update the predicted result to the search result is less than the first threshold number, server 110 may send a positive indication of the predicted result to client device 120. Alternatively, in response to the comparison result indicating that the number of operations required to update the predicted result to the search result is greater than the second threshold number, server 110 may send a negative indication of the predicted result to client device 120.

[0123] FIG6 illustrates a flow chart of a search method 600 performed on a client device according to some embodiments of the present disclosure. Method 600 can be implemented on a client device. For ease of discussion, the following description of method 600 in FIG6 uses client device 120 in FIG1 as an example. It should be understood that this is merely exemplary and is not intended to limit the embodiments of the present disclosure in any way.

[0124] At block 610 , the client device 120 sends a current query to the server.

[0125] At block 620, the client device 120 receives a prediction result for the current query from the server. The prediction result is generated based on target area historical data corresponding to the target area, and the target area is associated with the current query. In some embodiments, in response to receiving the prediction result, the client device 120 may perform pre-processing on the prediction result related to presentation.

[0126] At block 630 , the client device 120 receives from the server supplemental information related to subsequent processing of the prediction result, the supplemental information being generated based on a comparison of the prediction result and the search results generated by the search engine.

[0127] At block 640 , the client device 120 performs an operation on the prediction result based on the supplemental information.

[0128] In some embodiments, the client device 120 may update the predicted result into a search result based on the updated information included in the supplemental information, and present the search result.

[0129] In some embodiments, the predicted results include a first set of entries, and the search results include a second set of entries. Client device 120 may update the first set of entries, which are arranged in the first order, to a second set of entries, which are arranged in the second order, according to the entry editing operation indicated by the update information. The entry editing operation may include at least one of the following: deleting an entry, adding an entry, and replacing an entry.

[0130] In some embodiments, the first item in the predicted result and the second item in the search result relate to the same object. In response to the update information indicating that the second item has a different object description element than the first item, the client device 120 may update the first item to have the object description element.

[0131] In some embodiments, client device 120 may present the predicted result in response to the supplemental information including a positive indication of the predicted result, or may forgo presenting the predicted result in response to the supplemental information including a negative indication of the predicted result.

[0132] 7 shows a block diagram of a search apparatus 700 according to some embodiments of the present disclosure. Apparatus 700 may be implemented as or included in server 110. Each module / component in apparatus 700 may be implemented by hardware, software, firmware, or any combination thereof.

[0133] As shown in the figure, the device 700 includes: a target area determination module 705, which is configured to determine a target area associated with the current query in response to receiving the current query from the client device at the server; a prediction result generation module 710, which is configured to generate a prediction result for the current query based on at least target area historical data corresponding to the target area; a prediction result sending module 720, which is configured to send the prediction result to the client device; a comparison module 730, which is configured to compare the prediction result with the search result generated by the search engine for the current query; and a supplementary information sending module 740, which is configured to send supplementary information related to subsequent processing of the prediction result to the client device based on the comparison result.

[0134] In some embodiments, the target area historical data includes at least one of the following: data of at least one historical query that matches the current query and is associated with the target area, or candidate search data associated with the target area created within a first historical time period.

[0135] In some embodiments, at least one historical query includes multiple historical queries that occurred within a second historical time period, and the prediction result generation module is further configured to: determine the degree of discreteness of multiple historical search results for multiple historical queries; and in response to determining that the degree of discreteness is less than a threshold degree of discreteness, determine the prediction result based on the multiple historical search results.

[0136] In some embodiments, the prediction result generation module 710 is further configured to: in response to determining that the number of at least one historical query is less than a threshold number, determine data matching the current query from the candidate search data as at least part of the prediction result.

[0137] In some embodiments, the prediction result generation module 710 is also configured to: determine whether the current query indicates another user associated with the current user based on the profile of the current user who initiated the current query; and in response to determining that the current query indicates another user, determine information related to the current user as part of the prediction result.

[0138] In some embodiments, the target area determination module 705 is further configured to: determine a first area associated with the current user based on the profile of the current user who initiated the current query; search for results for the current query in the first area historical data corresponding to the first area; and in response to not finding results for the current query in the first area historical data, determine a second area corresponding to the historical query that matches the current query as the target area.

[0139] In some embodiments, the supplementary information sending module 740 is further configured to: generate update information for updating the prediction result as a search result based on the comparison result; and send the update information to the client device.

[0140] In some embodiments, the predicted result includes a first set of entries, the search result includes a second set of entries, and the update information indicates that the first set of entries arranged in a first order is updated to the second set of entries arranged in a second order. The update information may include at least one of the following: deletion of an entry, addition of an entry, and replacement of an entry.

[0141] In some embodiments, the first entry in the predicted result and the second entry in the search result relate to the same object, and the update information indicates that the second entry has different object description elements than the first entry.

[0142] In some embodiments, the supplementary information sending module 740 is further configured to: in response to the comparison result indicating that the number of operations required to update the predicted result to the search result is less than a first threshold number, send a positive indication of the predicted result to the client device; or, in response to the comparison result indicating that the number of operations required to update the predicted result to the search result is greater than a second threshold number, send a negative indication of the predicted result to the client device.

[0143] 8 shows a block diagram of a search apparatus 800 according to some other embodiments of the present disclosure. The apparatus 800 may be implemented as or included in the client device 120. Each module / component in the apparatus 800 may be implemented by hardware, software, firmware, or any combination thereof.

[0144] As shown in the figure, the apparatus 800 includes a query sending module 810, which is configured to send a current query to a server at a client device; a prediction result receiving module 820, which is configured to receive a prediction result for the current query from the server, wherein the prediction result is generated based on target area historical data corresponding to the target area, and the target area is associated with the current query; a supplementary information receiving module 830, which is configured to receive supplementary information related to subsequent processing of the prediction result from the server, wherein the supplementary information is generated based on a comparison between the prediction result and a search result generated by a search engine; and an operation execution module 840, which is configured to perform an operation on the prediction result based on the supplementary information.

[0145] In some embodiments, the apparatus 800 may further include a pre-processing module configured to perform presentation-related pre-processing on the prediction result in response to receiving the prediction result.

[0146] In some embodiments, the operation execution module 840 is further configured to: update the predicted result to a search result based on the updated information included in the supplementary information; and present the search result.

[0147] In some embodiments, the prediction results include a first group of entries, the search results include a second group of entries, and the operation execution module 840 is further configured to: update the first group of entries arranged in the first order to a second group of entries arranged in the second order according to the entry editing operation indicated by the update information, wherein the entry editing operation includes at least one of the following: deletion of entries, addition of entries, and replacement of entries.

[0148] In some embodiments, the first entry in the predicted result and the second entry in the search result relate to the same object, and the operation execution module 840 is further configured to: in response to the update information indicating that the second result has an object description element different from that of the first entry, update the first entry to have an object description element.

[0149] In some embodiments, the operation execution module 840 is further configured to present the predicted result in response to the supplemental information including a positive indication of the predicted result, or to forgo presenting the predicted result in response to the supplemental information including a negative indication of the predicted result.

[0150] FIG9 shows a block diagram of an electronic device 900 in which one or more embodiments of the present disclosure may be implemented. It should be understood that the electronic device 900 shown in FIG9 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. The electronic device 900 shown in FIG9 can be used to implement the server 110 and / or the client device 120 of FIG1 .

[0151] As shown in FIG9 , electronic device 900 is a general-purpose electronic device. Components of electronic device 900 may include, but are not limited to, one or more processors or processing units 910, memory 920, storage device 930, one or more communication units 940, one or more input devices 950, and one or more output devices 960. Processing unit 910 may be a real or virtual processor and is capable of performing various processes according to programs stored in memory 920. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to enhance the parallel processing capabilities of electronic device 900.

[0152] The electronic device 900 typically includes a plurality of computer storage media. Such media can be any accessible media that can be obtained by the electronic device 900, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 920 can be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 930 can be a removable or non-removable medium and can include a machine-readable medium, such as a flash drive, a disk, or any other medium that can be used to store information and / or data (e.g., training data for training) and can be accessed within the electronic device 900.

[0153] The electronic device 900 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 9 , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a “floppy disk”) and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to a bus (not shown) by one or more data media interfaces. The memory 920 may include a computer program product 925 having one or more program modules configured to perform various methods or actions of various embodiments of the present disclosure.

[0154] The communication unit 940 enables communication with other electronic devices via a communication medium. Additionally, the functions of the components of the electronic device 900 can be implemented as a single computing cluster or multiple computing machines that can communicate via a communication connection. Thus, the electronic device 900 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0155] The input device 950 may be one or more input devices, such as a mouse, keyboard, or trackball. The output device 960 may be one or more output devices, such as a display, a speaker, or a printer. The electronic device 900 may also communicate with one or more external devices (not shown) through the communication unit 940 as needed, such as a storage device, a display device, or the like, with one or more devices that allow a user to interact with the electronic device 900, or with any device that allows the electronic device 900 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0156] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.

[0157] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0158] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0159] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0160] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple implementations of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part for a module, program segment or instruction, and a part for a module, program segment or instruction comprises one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0161] While various implementations of the present disclosure have been described above, the foregoing description is intended to be illustrative, not exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is selected to best explain the principles of the implementations, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the various implementations disclosed herein.

Claims

1. A search method, comprising: In response to receiving a current query at the server from a client device, determining a target area associated with the current query; generating a prediction result for the current query based at least on target area historical data corresponding to the target area; Sending the prediction result to the client device; In response to a search engine generating search results for the current query, comparing the predicted results with the search results; as well as Based on the result of the comparison, supplementary information related to subsequent processing of the prediction result is sent to the client device.

2. The method according to claim 1, wherein the target area historical data comprises at least one of the following: data of at least one historical query that matches the current query and is associated with the target area, or Candidate search data associated with the target area created within a first historical time period.

3. The method according to claim 2, wherein the at least one historical query comprises a plurality of historical queries occurring within a second historical time period, and generating the prediction result comprises: Determining a degree of dispersion of a plurality of historical search results for the plurality of historical queries; as well as In response to determining that the degree of dispersion is less than a threshold degree of dispersion, the predicted result is determined based on the plurality of historical search results.

4. The method according to claim 2, wherein generating the prediction result comprises: In response to determining that the number of the at least one historical query is less than a threshold number, data matching the current query is determined from the candidate search data as at least a part of the predicted result.

5. The method according to claim 1, further comprising: determining, based on a profile of a current user initiating the current query, whether the current query indicates another user associated with the current user; as well as In response to determining that the current query indicates the other user, information related to the current user is determined as part of the predicted result.

6. The method of claim 1, wherein determining the target area comprises: determining a first region associated with a current user based on a profile of the current user initiating the current query; Searching for a result for the current query in first region history data corresponding to the first region; as well as In response to not finding a result for the current query in the first region history data, a second region corresponding to a history query matching the current query is determined as the target region.

7. The method of claim 1, wherein sending the supplemental information comprises: Based on the comparison result, generating update information for updating the prediction result as the search result; as well as The update information is sent to the client device.

8. The method of claim 7, wherein the predicted results include a first set of entries, the search results include a second set of entries, and the update information indicates: The first group of entries arranged in a first order is updated to the second group of entries arranged in a second order, and includes at least one of the following: Deletion of entries, Addition of entries, Replacement of entry.

9. The method according to claim 7 or 8, wherein the first item in the predicted result and the second item in the search result relate to the same object, and the update information indicates: The second entry has different object description elements from those of the first entry.

10. The method of claim 1, wherein sending the supplemental information comprises: In response to the comparison indicating that the number of operations required to update the prediction result to the search result is less than a first threshold number, sending a positive indication of the prediction result to the client device, or In response to a result of the comparison indicating that the number of operations required to update the predicted result to the search result is greater than a second threshold number, a negative indication of the predicted result is sent to the client device.

11. A search method, comprising: sending, at the client device, a current query to the server; receiving a prediction result for the current query from the server, wherein the prediction result is generated based on target area historical data corresponding to a target area, and the target area is associated with the current query; receiving from the server supplemental information related to subsequent processing of the prediction result, the supplemental information being generated based on a comparison of the prediction result and a search result generated by a search engine; as well as Based on the supplemental information, an operation is performed on the prediction result.

12. The method according to claim 11, further comprising: In response to receiving the prediction result, the prediction result is pre-processed related to presentation.

13. The method according to claim 12, wherein performing an operation on the prediction result comprises: Based on the update information included in the supplementary information, updating the prediction result to the search result; as well as The search results are presented.

14. The method of claim 13, wherein the predicted result comprises a first set of entries, the search result comprises a second set of entries, and updating the predicted result to the search result comprises: According to the entry editing operation indicated by the update information, the first group of entries arranged in the first order is updated to the second group of entries arranged in the second order, The entry editing operation includes at least one of the following: Deletion of entries, Addition of entries, Replacement of entry.

15. The method according to claim 13 or 14, wherein the first item in the predicted result and the second item in the search result relate to the same object, and updating the predicted result to the search result comprises: In response to the update information indicating that the second result has an object description element different from that of the first entry, the first entry is updated to have the object description element.

16. The method according to claim 11, wherein performing an operation on the prediction result comprises: In response to the supplemental information including a positive indication of the predicted result, presenting the predicted result, or In response to the supplemental information including a negative indication of the predicted result, presenting the predicted result is abandoned.

17. A search device, comprising: a target area determination module configured to, in response to receiving a current query at the server from a client device, determine a target area associated with the current query; A prediction result generating module, configured to generate a prediction result for the current query based at least on the target area historical data corresponding to the target area; A prediction result sending module, configured to send the prediction result to the client device; a comparison module, configured to compare the predicted result with the search result in response to a search engine generating search results for the current query; as well as The supplementary information sending module is configured to send supplementary information related to subsequent processing of the prediction result to the client device based on the comparison result.

18. A search device, comprising: a query sending module, configured to send a current query to a server at a client device; The prediction result receiving module is configured to receive the prediction result from the server. a prediction result of a query, wherein the prediction result is generated based on target area historical data corresponding to a target area, and the target area is associated with the current query; a supplementary information receiving module configured to receive supplementary information related to subsequent processing of the prediction result from the server, the supplementary information being generated based on a comparison between the prediction result and a search result generated by a search engine; as well as An operation execution module is configured to execute an operation on the prediction result based on the supplementary information.

19. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to execute the method according to any one of claims 1 to 10 or the method according to any one of claims 11 to 16.

20. A computer-readable storage medium having a computer program stored thereon, the computer program being executable by a processor to implement the method according to any one of claims 1 to 10 or the method according to any one of claims 11 to 16.

Citation Information

Patent Citations

  • Searching method, client terminal and server

    CN103617253A

  • Information search method, apparatus and apparatus / terminal / server

    CN109101658A

  • Information search method and device

    CN112579897A

  • Searching method and device, equipment and medium

    CN112905927A

  • Search result sorting method and device and search method

    CN113094604A

Cited By

  • Statistical information processing method and device, storage medium and electronic equipment

    CN121560959A