Search result display method, device, computer equipment and storage medium
By obtaining interactive data to determine the display score and sending the target display type, the inefficiency problem caused by different display requirements for search results of different data sources in real-time communication applications is solved, and the effect of quickly finding and clicking the required result items is achieved.
Patent Information
- Application Number
- CN202110558981.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-21
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-05-21
AI Technical Summary
In real-time communication applications, users have different needs for different data sources to display search results, resulting in low search click efficiency.
By obtaining interactive data, the display scores of different display types are determined, and the display type that meets the conditions is sent to the client as the target display type, and the associated search and display are performed based on the target display type to improve the search click efficiency.
It realizes that users quickly find and click on the required result items, improving search and click efficiency.
Smart Images

Figure CN115374337B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer device, and storage medium for displaying search results. Background Art
[0002] With the development of instant messaging technology, IM applications have become widely used in people's daily lives and work. This generates a large amount of data, such as chat logs, address books, favorites, and sub-applications. Searching this data is a common use case for IM applications. Currently, searches are typically configured using a bucket display model for different data sources.
[0003] However, users may have different requirements for the display of search results from different data sources, which may require users to further search for target results and click on them in the displayed search results, resulting in low search click efficiency. Summary of the Invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for displaying search results that can improve search click efficiency in response to the above technical problems.
[0005] A method for displaying search results, the method comprising:
[0006] Obtaining interaction data obtained by interacting with search results displayed based on each display type;
[0007] Determining, based on the interaction data, display scores corresponding to different display types;
[0008] Among the display types, the display type corresponding to the display score meeting the score condition is sent to the client as the target display type;
[0009] When receiving a first search request sent by the client, performing an associated search based on the search term carried in the first search request and the content display parameters of the target display type;
[0010] The target search results obtained from the associated search are fed back to the client, so that the client displays the target search results based on the search term display parameters of the target display type.
[0011] A method for displaying search results, the method comprising:
[0012] Display search results from the target data source according to display type;
[0013] generating interaction data of the search result in response to an interaction operation on the search result;
[0014] Sending the interaction data to a server, so that the server sequentially determines the display scores corresponding to the different display types based on the interaction data, and returns the target display type corresponding to the display score when the display score meets the score condition;
[0015] Upon receiving the target display type, sending a first search request generated based on the target display type to the server, so that the server performs an associated search based on the search term carried in the first search request and the content display parameters of the target display type;
[0016] Receive target search results obtained by the server through the associated search, and display the target search results based on the search term display parameters of the target display type.
[0017] A device for displaying search results, characterized in that the device comprises:
[0018] An interactive data acquisition module, used to acquire interactive data obtained by interacting with search results displayed based on each display type;
[0019] An exhibition score determination module, configured to sequentially determine exhibition scores corresponding to different exhibition types based on the interaction data;
[0020] A display type sending module, configured to send, among the display types, the display type corresponding to the display score that meets the score condition as a target display type to the client;
[0021] A search module configured to, upon receiving a first search request sent by the client, perform an associated search based on a search term carried in the first search request and content display parameters of the target display type;
[0022] The result feedback module is configured to feed back the target search result obtained by the associated search to the client, so that the client displays the target search result based on the search term display parameters of the target display type.
[0023] A device for displaying search results, characterized in that the device comprises:
[0024] The result display module is used to display the search results found from the target data source according to the display type;
[0025] An interaction data generating module, configured to generate interaction data of the search result in response to an interaction operation on the search result;
[0026] a sending module, configured to send the interaction data to a server, so that the server sequentially determines the display scores corresponding to the different display types based on the interaction data, and returns the target display type corresponding to the display score when the display score meets the score condition;
[0027] The sending module is further configured to, upon receiving the target display type, send a first search request generated based on the target display type to the server, so that the server performs an associated search based on the search term carried in the first search request and the content display parameters of the target display type;
[0028] The result display module is further configured to receive target search results obtained by the server through the associated search, and display the target search results based on the search term display parameters of the target display type.
[0029] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0030] Obtaining interaction data obtained by interacting with search results displayed based on each display type;
[0031] Determining, based on the interaction data, display scores corresponding to different display types;
[0032] Among the display types, the display type corresponding to the display score meeting the score condition is sent to the client as the target display type;
[0033] When receiving a first search request sent by the client, performing an associated search based on the search term carried in the first search request and the content display parameters of the target display type;
[0034] The target search results obtained from the associated search are fed back to the client, so that the client displays the target search results based on the search term display parameters of the target display type.
[0035] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0036] Display search results from the target data source according to display type;
[0037] generating interaction data of the search result in response to an interaction operation on the search result;
[0038] Sending the interaction data to a server, so that the server sequentially determines the display scores corresponding to the different display types based on the interaction data, and returns the target display type corresponding to the display score when the display score meets the score condition;
[0039] Upon receiving the target display type, sending a first search request generated based on the target display type to the server, so that the server performs an associated search based on the search term carried in the first search request and the content display parameters of the target display type;
[0040] Receive target search results obtained by the server through the associated search, and display the target search results based on the search term display parameters of the target display type.
[0041] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0042] Obtaining interaction data obtained by interacting with search results displayed based on each display type;
[0043] Determining, based on the interaction data, display scores corresponding to different display types;
[0044] Among the display types, the display type corresponding to the display score meeting the score condition is sent to the client as the target display type;
[0045] When receiving a first search request sent by the client, performing an associated search based on the search term carried in the first search request and the content display parameters of the target display type;
[0046] The target search results obtained from the associated search are fed back to the client, so that the client displays the target search results based on the search term display parameters of the target display type.
[0047] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0048] Display search results from the target data source according to display type;
[0049] generating interaction data of the search result in response to an interaction operation on the search result;
[0050] Sending the interaction data to a server, so that the server sequentially determines the display scores corresponding to the different display types based on the interaction data, and returns the target display type corresponding to the display score when the display score meets the score condition;
[0051] Upon receiving the target display type, sending a first search request generated based on the target display type to the server, so that the server performs an associated search based on the search term carried in the first search request and the content display parameters of the target display type;
[0052] Receive target search results obtained by the server through the associated search, and display the target search results based on the search term display parameters of the target display type.
[0053] A computer program, comprising computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the following steps:
[0054] Obtaining interaction data obtained by interacting with search results displayed based on each display type;
[0055] Determining, based on the interaction data, display scores corresponding to different display types;
[0056] Among the display types, the display type corresponding to the display score meeting the score condition is sent to the client as the target display type;
[0057] When receiving a first search request sent by the client, performing an associated search based on the search term carried in the first search request and the content display parameters of the target display type;
[0058] The target search results obtained from the associated search are fed back to the client, so that the client displays the target search results based on the search term display parameters of the target display type.
[0059] A computer program, comprising computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the following steps:
[0060] Display search results from the target data source according to display type;
[0061] generating interaction data of the search result in response to an interaction operation on the search result;
[0062] Sending the interaction data to a server, so that the server sequentially determines the display scores corresponding to the different display types based on the interaction data, and returns the target display type corresponding to the display score when the display score meets the score condition;
[0063] Upon receiving the target display type, sending a first search request generated based on the target display type to the server, so that the server performs an associated search based on the search term carried in the first search request and the content display parameters of the target display type;
[0064] Receive target search results obtained by the server through the associated search, and display the target search results based on the search term display parameters of the target display type.
[0065] The above-mentioned search result display method, device, computer equipment and storage medium determine the display scores corresponding to different display types in turn based on the interaction data obtained by interacting with the search results displayed based on each display type, and in each display type, send the display type corresponding to the display score that meets the score conditions to the client as the target display type, so that the client can perform search display configuration based on the target display type and trigger the first search request. Then, when the server receives the first search request sent by the client, it performs an associated search based on the search terms carried in the search request and the content display parameters of the target display type; the target search results obtained from the associated search are fed back to the client, so that the client displays the target search results based on the search term display parameters of the configured target display type, so that the user can quickly find the required result item and click it, thereby improving the search click efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1A A diagram illustrating an application environment of a method for displaying search results in one embodiment;
[0067] Figure 1B A schematic diagram of a client display page in one embodiment;
[0068] Figure 2 1 is a flow chart of a method for displaying search results in one embodiment;
[0069] Figure 3A A schematic diagram of search results in one embodiment;
[0070] Figure 3B A schematic diagram of search results in another embodiment;
[0071] Figure 4 A schematic flow chart of steps for generating interactive data in one embodiment;
[0072] Figure 5 A schematic diagram of search results in another embodiment;
[0073] Figure 6 A schematic diagram of search results in another embodiment;
[0074] Figure 7 A schematic diagram of search results in another embodiment;
[0075] Figure 8 A schematic diagram of search results in another embodiment;
[0076] Figure 9 A schematic diagram of search results in another embodiment;
[0077] Figure 10 is a flowchart of a method for displaying search results in another embodiment;
[0078] Figure 11 is a flowchart of a method for displaying search results in another embodiment;
[0079] Figure 12 is a flowchart of a method for displaying search results in another embodiment;
[0080] Figure 13 A schematic diagram of the data structure of a target data source in one embodiment;
[0081] Figure 14 is a flowchart of a method for displaying search results in another embodiment;
[0082] Figure 15 is a structural block diagram of a device for displaying search results in one embodiment;
[0083] Figure 16 is a structural block diagram of a device for displaying search results in one embodiment;
[0084] Figure 17 is a diagram of the internal structure of a computer device in one embodiment;
[0085] Figure 18 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0086] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0087] The method for displaying search results provided in this application can be implemented based on cloud technology. Among them, cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize the calculation, storage, processing and sharing of data. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. applied based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, each item may have its own identification mark in the future, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.
[0088] Cloud computing is a computing model that distributes computing tasks across a resource pool consisting of a large number of computers, enabling various application systems to access computing power, storage space, and information services as needed. The network that provides these resources is called the "cloud." To users, these resources appear infinitely scalable and can be accessed at any time, used on demand, expanded at any time, and paid for on a per-use basis.
[0089] The search result display method provided in this application can be applied to Figure 1A In the application environment shown in FIG. , terminals 102 and 106 communicate with server 104 via the network respectively. There may be multiple terminals 102, such as Figure 1A The terminals (including the terminals 102 and 106) are all installed with an instant messaging application. When the instant messaging application is started, it can request the server 104 for the display type for displaying search results, and perform search display configuration for the corresponding search entry based on the requested display type. Figure 1A When any terminal in the search portal obtains search results through the search portal, each result item of the search results can be displayed according to the pre-configured display type. When the target result item in the search results is clicked, interaction data for interacting with the target result item is generated and reported to the server 104. Thus, the server 104 can receive the interaction data obtained by interacting with the search results displayed based on each display type reported by each terminal, and determine the display scores corresponding to different display types based on the interaction data; in each display type, the display type corresponding to the display score that meets the score condition is sent to the client as the target display type, such as to Figure 1AIn addition, the instant messaging application running on the terminal 106 can also be sent to the instant messaging application running on the terminal 102a, the terminal 102b or the terminal 102c. The terminal 106 can Figure 1A The search entry in the message display page 110 obtains the search term input by the user to generate a first search request, and sends the first search request to the server 104. When the server 104 receives the first search request sent by the client, it performs an associated search based on the search term carried in the first search request and the content display parameters of the target display type, and feeds back the target search results obtained by the associated search to the client, so that the client displays the target search results based on the target display type, for example Figure 1A The terminal 106 displays the target search results on the result display page 120 . Figure 1B A schematic diagram of the message display page 110 and the result display page 120 after being enlarged is shown.
[0090] Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets and portable wearable devices, and the server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms.
[0091] In one embodiment, Figure 2 As shown, a method for displaying search results is provided, which is applied to Figure 1A Taking the server 104 in the example as an example, the following steps are included:
[0092] S202: Acquire interaction data obtained by interacting with search results displayed based on each display type.
[0093] The display type refers to the type of search result display. Search results are obtained by searching within a target data source. A search entry can correspond to at least one target data source. Search results obtained from searching within each target data source can be displayed based on the corresponding display type. It is understood that search results from different target data sources can be displayed using the same display type or different display types. Target data sources include session data sources, address book data sources, chat history data sources, sub-application data sources, and email data sources.
[0094] For example, a search entry corresponds to two target data sources, a session data source and an address book data source. Search result A obtained by searching in the session data source and search result B obtained by searching in the address book data source can be displayed using the same display type or different display types.
[0095] There are two types of display types. One is the first type of display type related to the display of search terms in the result items. The other is the second type of display type related to the display of associated information of target data in the result items. The target data is the data found in the target data source based on the search terms. The first category can also be called the search term display category, and the second category can also be called its associated information display category. Among them, the display types of the search term display category specifically include regular display, single search term highlighting, and multiple search term highlighting. Regular display means that the search term in the result item is displayed in the same way as other terms in the result item. Single search term highlighting means that when the result item contains only one or more search terms, only the search terms are highlighted. The display type of the related information display category specifically includes non-related information display and related information display. Related information refers to the related information of the target data. For example, the search term is the surname "Zhang", and the target data found in the address book data source is the name "Zhang X". The phone number of "Zhang X" stored in the address book data source is the related information corresponding to "Zhang X". Non-related information display means only displaying the target data, and related information display means displaying the target data and the related information of the target data at the same time.
[0096] Interaction data is interaction data reported to the server by multiple clients. After any one of the multiple clients displays each result item of the search results based on a pre-configured display type, when it detects that the user interacts with a target result item in the result items, it generates an interaction data for interacting with the target result item and reports the generated interaction data to the server. The server receives and stores each interaction data reported by each client. Each interaction data includes triple information corresponding to the target result item, the display position of the target result item in the search results, and the total number of result items in the search results, wherein the triple information includes the data source category of the target data source to which the target result item belongs, the display type of the search term display category to which the target result item belongs, and the display type of the associated information display category to which the target result item belongs.
[0097] For example, Figure 3AA schematic diagram of search results displayed by a client in an embodiment is shown. The search results displayed are obtained by searching through the search entry in the message page of the client. Figure 3A It can be seen that the display type of the search term display category to which the search result belongs is regular display, and the display type of the associated information display category to which the search result belongs is non-associated information display. Among them, there are 10 result items of the search result corresponding to the address book data source, and there are 5 result items in the session data source. If the user clicks on the target result item "Zhang Y", the terminal responds to the user's click operation, obtains the triple information of the target result item "address book category, regular display, non-associated information display", the position of the target result item in the search result corresponding to the address book data 2, and the total number of result items in the search result corresponding to the address book data 10, and stores the triple information, the position of the target result item in the search result 2 , the total number of result items in the search results corresponding to the target result item is 10, which constitutes an interaction data, and the interaction data is reported to the server; if the user clicks on the target result item "XX department work exchange group", the terminal responds to the user's click operation, obtains the triplet information of the target result item "session category, general display, and unrelated information display", the position of the target result item in the search results corresponding to the session data is 1, and the total number of result items in the search results corresponding to the session data is 5, and the triplet information, the position of the target result item in the search results is 1, and the total number of result items in the search results corresponding to the target result item is 5, which constitutes an interaction data, and the interaction data is reported to the server.
[0098] In one embodiment, the server extracts the interaction data corresponding to each target data source from the stored interaction data, and obtains the interaction data corresponding to each display type under each target data source.
[0099] In one embodiment, the server receives and stores each piece of interaction data reported by each client in real time. At a preset time, the server extracts the interaction data corresponding to each target data source from the stored interaction data. For example, if the evaluation period is one day and the evaluation time is midnight, and the target data sources include the session data source, address book data source, chat history data source, sub-application data source, and email data source, then at midnight every day, the server extracts the target data corresponding to each of the session data source, address book data source, chat history data source, sub-application data source, and email data source from the stored interaction data.
[0100] In one embodiment, when the number of interaction data items stored for a target data source reaches a first threshold, the server determines the interaction data items corresponding to each display type under the target data source. For example, if the target data source is an address book data source and the first threshold is 10,000 items, then when the number of interaction data items corresponding to the address book data source reaches 10,000, the server determines the interaction data items corresponding to each display type under the address book data source.
[0101] S204: Determine display scores corresponding to different display types based on the interaction data.
[0102] Among them, the display score is used to characterize the display effect corresponding to the display type. It can be understood that the higher the display score, the better the display effect. On the one hand, a display type with a good display effect can have a higher click-through rate. For example, if a certain display type is used to display search results on a search result display page, and the frequency or proportion of search results being clicked under this display type is high, it means that the display effect of this display type is good. Otherwise, it means that the display effect of this display type is poor. On the other hand, a display type with a good display effect can also have a higher search click efficiency. For example, if a certain display type is used to display search results on a search result display page, if the user can quickly find the required result item and click on it on the search result display page, it means that the display effect of this display type is good. Otherwise, it means that the display effect of this display type is poor.
[0103] Specifically, after obtaining the interaction data corresponding to different display types of each target data source, the server can obtain the interaction data corresponding to any target data source, and based on the interaction data corresponding to each display type under the target data source, determine the display scores corresponding to different display types under the target data source.
[0104] In one embodiment, the target data sources corresponding to the interaction data include a session data source, an address book data source, a chat history data source, a sub-application data source, and an email data source. For the session data source, the server obtains interaction data with a session data source category based on the data source category of the stored triplet information of the interaction data, and classifies the interaction data with a session data source category according to the display type to obtain the sub-interaction data corresponding to each display type, so as to calculate the display score corresponding to each display type based on the sub-interaction data corresponding to each display type. The display types include display types for search term display and display types for associated information display. The display types for the search term display category include regular display, single search term highlighting, and multiple search term highlighting; the display types for the associated information display category include non-associated information display and associated information display.
[0105] In one embodiment, for a certain target data source and a corresponding display type belonging to the search term display category scenario, the server determines the sub-interaction data corresponding to each search term display type from the interaction data corresponding to the target data source, and determines the display score corresponding to the corresponding search term display type based on each sub-interaction data.
[0106] Specifically, the server determines from the interaction data corresponding to the target data source the first sub-interaction data whose display type of the search term display category is regular display, the second sub-interaction data whose search term display type is single search term highlighting, and the third sub-interaction data whose search term display type is multiple search term highlighting, and then determines the first display score corresponding to the regular display based on the first sub-interaction data; determines the second display score corresponding to the single search term highlighting based on the second sub-interaction data; and determines the third display score corresponding to the multiple search term highlighting based on the third sub-interaction data.
[0107] In one embodiment, for a certain target data source and a scenario where the corresponding display type belongs to the associated information display category, the server determines the sub-interaction data corresponding to each associated information display type from the interaction data corresponding to the target data source, and determines the display score corresponding to the corresponding associated information display type based on each sub-interaction data.
[0108] Specifically, the server determines from the interaction data corresponding to the target data source the fourth sub-interaction data whose display type of the related information display category is non-related information display, and the fifth sub-interaction data whose related information display type is related information display, and then determines the fourth display score corresponding to the non-related information display based on the fourth sub-interaction data; and determines the fifth display score corresponding to the related information display based on the fifth sub-interaction data.
[0109] For example, the target data source is the address book data source, and the server extracts 10,000 pieces of interaction data of the address book category from the stored interaction data, among which the first sub-interaction data of the search term display category with the display type of regular display has 5,000 pieces, the second sub-interaction data of the search term display type with single search term highlighting has 3,000 pieces, the third sub-interaction data of the search term display type with multiple search terms highlighting has 2,000 pieces, the fourth sub-interaction data of the related information display category with the display type of non-related information display has 7,000 pieces, and the related information display category has the display type of non-related information display has 10,000 pieces. If there are 3,000 pieces of fifth sub-interaction data of the associated information display type, the server determines the first display score corresponding to the regular display based on 5,000 pieces of the first sub-interaction data, determines the second display score corresponding to the single search term highlighting based on 3,000 pieces of the second sub-interaction data, determines the third display score corresponding to the multiple search term highlighting based on 2,000 pieces of the third sub-interaction data, determines the fourth display score for the non-associated information display based on 7,000 pieces of the fourth sub-interaction data, and determines the fifth display score for the associated information display based on 3,000 pieces of the fifth sub-interaction data.
[0110] It is understood that when there are multiple types of associated information corresponding to the same target data, they can be specifically distinguished as first, second, etc. For example, the phone number corresponding to the target data "name" can be recorded as the first associated information, and the address corresponding to the target data "name" can be recorded as the second associated information. When the display type of the associated information display category is associated display, the display type can include the first associated information display and the second associated information display.
[0111] In one embodiment, when the display type of the associated information display category in each interaction number reported by each client is associated information display, the interaction data carries the displayed associated information. The server determines the fifth sub-interaction data whose display type of the associated information display category is associated information display from the interaction data corresponding to the target data source. The server can further determine the sub-fifth sub-interaction data corresponding to each associated information from the fifth sub-interaction data, and calculate the sub-fifth display score of the associated information display corresponding to each associated information based on each sub-fifth sub-interaction data.
[0112] S206 : Among the display types, the display type corresponding to the display score that meets the score condition is sent to the client as the target display type.
[0113] The score condition includes at least one of a threshold condition and a priority condition. It is understandable that the target display type may include a display type of a search term display category and a display type of an associated information display category.
[0114] Specifically, the server obtains a pre-set score condition, and based on the score condition, filters out display types whose display scores meet the score condition from various display types, and upon receiving a configuration information acquisition request sent by any client, sends the display type whose display score meets the score condition as a target display type to the client, so that the client can search and configure the search entry based on the received target display type.
[0115] In one embodiment, the server obtains pre-set score conditions, which include threshold conditions and priority conditions. Based on the threshold conditions, the server screens out candidate display types whose display scores meet the threshold conditions from each display type. If the number of candidate display types belonging to the search term display category reaches two, then upon receiving a configuration information acquisition request sent by any client, the server determines the optimal candidate display type from the candidate display types belonging to the search term display category based on the priority conditions, and sends the optimal candidate display type as the target display type to the client, so that the client performs a search configuration for the search portal based on the received target display type. If the number of candidate display types belonging to the associated information display category reaches two, then upon receiving a configuration information acquisition request sent by any client, the server determines the optimal candidate display type from the candidate display types belonging to the associated information display category based on the priority conditions, and sends the optimal candidate display type as the target display type to the client, so that the client performs a search configuration for the search portal based on the received target display type.
[0116] In one embodiment, the preferential selection condition is a maximum score condition. When the server receives a configuration information acquisition request sent by any client, it selects the optimal candidate display type with the largest score from multiple candidate display types, and sends the optimal candidate display type as the target display type to the client, so that the client can search and configure the search entry based on the received target display type.
[0117] In one embodiment, the priority selection condition is the priority of the display type, which can be specifically determined based on the search entry corresponding to the received configuration information acquisition request. It is understandable that different search portals have different display type priorities corresponding to the same target data source. For example, when displaying the search results obtained from the address book data source through the search portal in the message page, the display type priorities of the search term display category are "multiple search term highlighting, single search term highlighting, regular display" from high to low; when displaying the search results obtained from the address book data source through the search portal in the contact page, the display type priorities of the search term display category are "regular display, single search term highlighting, multiple search term highlighting" from high to low; for example, when displaying the search results obtained from the address book data source through the search portal in the message page, the display type priorities of the related information display category are "no related information display, first related information display, second related information display" from high to low; when displaying the search results obtained from the address book data source through the search portal in the contact page, the display type priorities of the related information display category are "first related information display, second related information display, no related information display" from high to low.
[0118] Specifically, when the server receives a configuration information acquisition request sent by any client, it determines the priority of the corresponding display type based on the search entry corresponding to the received configuration information acquisition request, and selects the optimal candidate display type with the highest priority among multiple candidate display types, and sends the optimal candidate display type as the target display type to the client, so that the client searches for and configures the search entry based on the received target display type.
[0119] S208: When a first search request sent by the client is received, an associated search is performed based on the search term carried in the first search request and the content display parameters of the target display type.
[0120] Among them, the first search request carries a search term and a target display type. The first search request is related to the search entry that triggers the search request on the client. When the search entry is only configured for a certain search type, the search entry only triggers the search of the target data source corresponding to the search type. Accordingly, the server can directly receive the first search request; when the search entry is configured for multiple search types, the search entry can trigger the search of the target data sources corresponding to each configured search type. Accordingly, the first search request received by the server includes sub-search requests generated according to different search types. The target display type is the display type configured under the search entry corresponding to each target data source. The content display parameters of the target display type can be divided into content display parameters of the search term display category and content display parameters of the associated information display category. The content display parameters of the search term display category can specifically be search term position parameters, and the content display parameters of the associated information display category can be parameters related to the data source category of the target data source.
[0121] In one embodiment, S208 specifically includes the following steps: when receiving a first search request sent by a client, searching for at least one matching target data in the target data source based on the search term carried in the first search request; obtaining associated information corresponding to the at least one target data based on content display parameters; and using the at least one target data and the corresponding associated information as the result item of the search to obtain a target search result including the result item.
[0122] The target data source may be a session data source, an address book data source, a chat history data source, a sub-application data source, or an email data source, and the associated information is information related to the target data stored in the target data source.
[0123] In the above embodiment, the server searches for at least one matching target data in the target data source based on the search term carried in the first search request; obtains associated information corresponding to the at least one target data based on the content display parameters; uses the at least one target data and the corresponding associated information as the result items of the search to obtain a target search result including the result items, so that the information contained in the search results can be richer, which facilitates users to quickly find the required information and click it, thereby improving the search click efficiency.
[0124] In one embodiment, when the search portal of the client is configured with multiple search types, after the client terminal obtains the search term based on the search portal, it generates a first sub-search request based on the search term, each search type and the target display type corresponding to each search type, and sends each generated first sub-search request to the server. The server receives the first sub-search request sent by the client to perform an associated search based on the search term carried in the first sub-search request and the content display parameters of the target display type.
[0125] S210: Feedback the target search results obtained from the associated search to the client, so that the client displays the target search results based on the search term display parameters of the target display type.
[0126] Among them, the search term display parameters include regular display parameters, single search term display parameters and multiple search term display parameters. When the target display type is regular display, the corresponding search term display parameters are regular display parameters. When the target display type is single search term highlight display, the corresponding search term display parameters are single search term display parameters. When the target display type is multiple search term highlight display, the corresponding search term display parameters are multiple search term display parameters.
[0127] In one embodiment, after the server performs an associated search in the target data source to obtain the target search results, it directly feeds back the obtained target search results to the client that sent the first search request. After receiving the target search results, the client directly displays the obtained target search results based on the configured search term display parameters of the target display type.
[0128] In one embodiment, after receiving the target search results, the client can display the target search results based on the configured search term display parameters and display layout of the target display type, wherein the display layout includes a vertical list layout and a horizontal arrangement layout.
[0129] In one embodiment, after receiving the target search results, the client determines the number of target data sources to which the target search results belong. If the number of target data sources does not reach the number threshold, the display layout is configured as a vertical list layout, and the received target search results are displayed based on the search term display parameters of the target display type and the vertical list layout; if the number of target data sources reaches the number threshold, the display layout is configured as a horizontal arrangement layout, and the received target search results are displayed based on the search term display parameters of the target display type and the horizontal arrangement layout.
[0130] In one embodiment, the server performs associated searches in multiple target data sources respectively to obtain target search results, and feeds back each target search result to the client in sequence according to the order of the search end time corresponding to each target search result. After receiving each target search result in sequence, the client displays each target result on the result display page based on the reception order of each target search result, the search term display parameters of the target display type, and the display layout. When the target search results are displayed in a vertical list layout, the closer the position is to the top of the display in the result display page, the earlier the target search result is received; when the target search results are displayed in a horizontal arrangement layout, the closer the position is to the left in the same row of the result display page, the earlier the target search result is received, and in different rows, the closer the row is to the top of the display, the earlier the target search result is received.
[0131] In one embodiment, the server performs an associated search in multiple target data sources to obtain target search results, and feeds each target search result back to the client. After receiving each target search result, the client displays each target search result on a result display page based on the priority of the target data source corresponding to the search entry, the search term display parameters of the target display type, and the display layout. Specifically, when displaying the target search results in a vertical list layout, the target search results with higher priority for the target data source are displayed closer to the top of the result display page; when displaying the target search results in a horizontal arrangement layout, the target search results with higher priority for the target data source are displayed closer to the left in the same row of the result display page, and the target search results with higher priority for the target data source are displayed closer to the top of the row in different rows.
[0132] For example, the search entry in the message page corresponds to five search types: conversation type, address book type, chat record type, sub-application type, and email type. That is, through this entry, you can search in the conversation data source, address book data source, chat record data source, sub-application data source, and email data source respectively. Assume that the number threshold of the target data sources to which the target search results belong is 3, and the priority of the target data sources is "chat record data source, conversation data source, address book data source, email data source, sub-application data source" from high to low. If the target search results obtained through this search entry only include search result A belonging to the conversation data source and search result B belonging to the chat record data source, that is, the number of target data sources to which the target search results belong is 2, which does not reach the number threshold of 3, then the search term display parameters based on the priority of the target data source and the target display type are displayed in the result display. The target search results are displayed in a vertical list layout on the page. The target search results displayed from top to bottom on the result display page are "Search result B, Search result A". If the target search results obtained through the search entry only include Search result A belonging to the session data source, Search result B belonging to the chat record data source, Search result C belonging to the sub-application data source, and Search result D belonging to the email data source, that is, the number of target data sources to which the obtained target search results belong is 4, reaching the number threshold of 3, then based on the priority of the target data source and the search term display parameters of the target display type, the target search results are displayed in a horizontal layout on the result display page. From left to right on the result display page, the target search results displayed in the first row are "Search result B, Search result A", and the search results displayed in the second row are "Search result D, Search result C".
[0133] refer to Figure 1B The result display page 120 shown, Figure 1B Each target search result is displayed in a vertical list layout. For contact results obtained by searching the address book data source, they are displayed based on the target display type of single search term display parameters with single search term highlighting and position-related information display; for group chat results obtained by searching the conversation data source, they are displayed based on the target display type of multi-search term display parameters with multi-search term highlighting and group member-related information display.
[0134] refer to Figure 3B The result display page shown, Figure 3BThe target search results are displayed in a horizontal layout. For contact results obtained by searching the address book data source, they are displayed based on the target display type of single search term display parameters with single search term highlighting and position-related information display; for group chat results obtained by searching the conversation data source, they are displayed based on the target display type of multi-search term display parameters with multi-search term highlighting and group member-related information display.
[0135] In one embodiment, the user corresponding to the user ID of the logged-in client can manually configure the display layout corresponding to the search portal, and collect the identity information of the user using the client before searching through the search portal. If the identity information matches the user ID of the logged-in client, then after searching through the search portal to obtain the target search results, each target search result is displayed in the result display page based on the display layout configured by the user and the search term display parameters of the target display type; if the identity information does not match the user ID of the logged-in client, each target search result is displayed in the result display page based on the display layout configured by the system by default and the search term display parameters of the target display type.
[0136] For example, the user corresponding to user ID A who logs in to the client is user A, the system default display layout is a vertical list layout, and the search display layout manually configured by user A is a horizontal arrangement layout. When user A uses the client logged in by user ID A to search, the client collects user A's identity information and confirms that user A's identity information matches user ID A. After obtaining the target search results, the target search results are displayed in a horizontal arrangement layout on the result display page based on the search term display parameters of the target display type; when user B uses the client logged in by user ID A to search, the client collects user B's identity information and confirms that user B's identity information does not match user ID A. After obtaining the target search results, the target search results are displayed in a vertical list layout on the result display page based on the search term display parameters of the target display type.
[0137] In one embodiment, the server feeds back the target search results obtained from the associated search to the client, so that the client displays the target search results based on the search term display parameters of the target display type. It can also accept the interaction data reported by the client for interacting with the display of the target search results based on the search term display parameters of the target display type, so as to further determine the display score of the target display type based on the interaction data and continuously and dynamically optimize the search configuration of each client.
[0138] The above-mentioned search result display method determines the display scores corresponding to different display types in turn based on the interaction data obtained by interacting with the search results displayed based on each display type, and in each display type, sends the display type corresponding to the display score that meets the score conditions to the client as the target display type, so that the client can perform search display configuration based on the target display type and trigger the first search request. Then, when the server receives the first search request sent by the client, it performs an associated search based on the search terms carried in the search request and the content display parameters of the target display type; the target search results obtained from the associated search are fed back to the client, so that the client displays the target search results based on the search term display parameters of the configured target display type, so that the user can quickly find the required result item and click it, thereby improving the search click efficiency.
[0139] In one embodiment, before the server obtains the interaction data obtained by interacting with the search results displayed based on each display type, Figure 4 As shown, the above search result display method further includes the following steps:
[0140] S402: Receive a second search request sent by a different client.
[0141] Among them, the second search request is related to the search entry that triggers the search request on the client. When the search entry is only configured for a certain search type, the search entry only triggers a search in the target data source corresponding to the search type. Accordingly, the server can directly receive the second search request; when the search entry is configured for multiple search types, the search entry can trigger a search in the target data source corresponding to each configured search type. Accordingly, the second search request received by the server includes sub-search requests generated according to different search types.
[0142] Specifically, multiple terminals are each equipped with an instant messaging application. When any client is started, it can obtain configuration information for each search entry from the server, where the configuration information specifically includes a display type and a search type. The corresponding search entry is configured based on the obtained display type and search type. The search term entered by the user can then be obtained based on each search entry. A second search request is then generated based on the search term, the search type corresponding to the search entry, and the display type, and the search request is sent to the server. The configured search type can be at least one, including session type, address book type, chat history type, sub-application type, and mailbox type. Each search type corresponds to a corresponding display type, and the configured display type includes a search term display type and an associated information display type.
[0143] In one embodiment, when the search entry of the client is configured with multiple search types, after the client terminal obtains the search term based on the search entry, it determines the display type corresponding to each search type respectively, and generates sub-search requests based on the search term, each search type and the display type corresponding to each search type, and sends the generated sub-search requests to the server, and the server receives the sub-search requests sent by the client.
[0144] S404: Search the target data source based on the second search request to obtain search results requested by each client.
[0145] Specifically, after receiving the second search request, the server determines the search type corresponding to the second search request, obtains the target data source corresponding to the determined search type, and then searches the target data source for result items corresponding to the search terms in the search request, obtains the search results corresponding to each target data source, and determines the search results corresponding to each target data source as the search results requested by the client corresponding to each second search request.
[0146] In one embodiment, the second search request received by the server includes sub-search requests generated based on different search types. S404 specifically includes the following steps: searching in the target data sources corresponding to the different search types based on the search terms carried in the sub-search requests to obtain the search results requested by each client.
[0147] Specifically, after receiving multiple sub-search requests corresponding to each client, the server determines the search type corresponding to each sub-search request, obtains the target data source corresponding to the determined search type, and then searches the target data source for the result items corresponding to the search terms in the sub-search request to obtain the search results corresponding to each sub-search request, and determines the search results of each sub-search request corresponding to the same client as the search results requested by the corresponding client.
[0148] In the above embodiment, the server obtains the search results requested by each client by searching in the target data sources corresponding to different search types based on the search terms carried in the sub-search request, so that the client can search in different target data sources through the same search entry, thereby improving the search efficiency and the display efficiency of the search results, and allowing users to quickly find the required result items and click them, thereby improving the search click efficiency.
[0149] S406 , returning the requested search results to each client respectively, so that each client displays the search results based on the display type, and interacts with the target result item in the search results to obtain interaction data.
[0150] Specifically, after determining the search results requested by each client, the server returns the search results to the corresponding client. After receiving the search results, the client displays the search results based on the pre-configured display type. When an interactive operation on the target result item in the search results is detected, corresponding interactive data is generated and reported to the server, where the interactive operation can be a click operation on the target result item.
[0151] In the above embodiment, the server receives a second search request sent by different clients, and searches from the target data source based on the second search request to obtain the search results requested by each client, and returns the requested search results to each client respectively, so that each client displays the search results based on the display type, and interacts with the target result items in the search results to obtain interaction data, so that the server can receive the interaction data reported by each client, so as to determine the optimal target display type based on the interaction data, so that each subsequent client can display the search results based on the target display type, so that users can quickly find the required result items and click them, thereby improving the search click efficiency.
[0152] In one embodiment, S204 specifically includes the following steps: based on the interaction data, determining the display position of the target result item when displaying according to the display type of each client; determining the score of different clients when displaying the target result item based on the display position and the total number of result items in the search results; summing the scores of different clients when displaying the target result item to obtain the display score corresponding to the display type.
[0153] Among them, the interaction data reported by the client received by the server includes the triplet information corresponding to the target result item, the display position of the target result item in the search results, and the total number of result items in the search results. Among them, the triplet information includes the data source category of the target data source to which the target result item belongs, the display type of the search term display category to which the target result item belongs, and the display type of the associated information display category to which the target result item belongs.
[0154] Specifically, under a certain target data source, after the server obtains the interaction data corresponding to each display type, for each interaction data of a certain display type, it directly extracts the display position of the target result item in the corresponding search results, and based on the display position and the total number of result items in the search results, the score of the client corresponding to each interaction data when the target result item is displayed is obtained, and the scores of each client when the corresponding target result item is displayed are summed to obtain the sum result, and the sum result is used as the display score corresponding to the display type.
[0155] In one embodiment, for any display type, the display score can be calculated using formula (1):
[0156]
[0157] Where m represents the mth display type, Q(m) is the display score corresponding to the mth display type, K represents the number of interaction data used to calculate the display score of the mth display type, i represents the i-th interaction data in the K interaction data, and Rep i (pos) is the score of the client corresponding to the i-th interaction data when the target result item is displayed.
[0158] It can be understood that K in formula (1) is a constant. When formula (1) is used to calculate the display score of each display type, K corresponding interaction data are used for calculation. For example, under a certain target data source, display type A corresponds to 1000 interaction data and display type B has 2000 interaction data. Then, when formula (1) is used to calculate the display scores of display type A and display type B respectively, K can be any constant not greater than 1000. If K is 1000, the display score of display type A is calculated based on the 1000 interaction data corresponding to display type A, and the display score of display type B is calculated based on any 1000 of the 2000 interaction data corresponding to display type B.
[0159] Rep i (pos) can be calculated using formula (2):
[0160]
[0161] Among them, Rep i (pos) is the score of the client corresponding to the i-th interaction data when displaying the target result item, N i is the total number of result items in the search results corresponding to the i-th interaction data, pos i is the display position of the target result item corresponding to the i-th interaction data in the corresponding search results.
[0162] In one embodiment, for any display type, the display score can be calculated using formula (3):
[0163]
[0164] Where, m represents the mth display type, Q(m) is the display score corresponding to the mth display type, h represents the number of interaction data corresponding to the mth display type, i represents the i-th interaction data in the h interaction data, Rep i (pos) is the score of the client corresponding to the i-th interaction data when displaying the target result item, Rep i(pos) can be calculated using formula (2).
[0165] It can be understood that h in formula (3) is a variable. When formula (3) is used to calculate the display score of each display type, all the corresponding h pieces of interaction data are used for calculation. For example, under a certain target data source, display type A corresponds to 1000 pieces of interaction data, and display type B has 2000 pieces of interaction data. When formula (3) is used to calculate the display score of display type A, h is taken as 1000, so that the display score of display type A is calculated based on the 1000 pieces of interaction data corresponding to display type A. When formula (3) is used to calculate the display score of display type B, h is taken as 2000, so that the display score of display type B is calculated based on the 2000 pieces of interaction data corresponding to display type B.
[0166] In the above embodiment, the server determines the display position of the target result item when displaying according to the display type of each client based on the interaction data, and determines the score of different clients when displaying the target result item based on the display position and the total number of result items in the search results. By summing the scores of different clients when displaying the target result items, the display score corresponding to the display type is obtained, so that the display effect of each display type can be accurately evaluated based on the interaction of each display type in the actual search result display, and the optimal target display type can be selected based on the display effect of each display type, so that each subsequent client can display the search results based on the target display type, so that users can quickly find the required result items and click them, thereby improving the search click efficiency.
[0167] In one embodiment, the interaction data also includes a user identifier, and the server determines the display scores corresponding to different display types based on the interaction data in sequence, including: extracting the interaction data corresponding to the target user identifier from the interaction data, and determining the display scores corresponding to different display types corresponding to the target user identifier based on the interaction data corresponding to the target user identifier; the server sends the display type corresponding to the display score that meets the score condition in each display type to the client as the target display type, including: sending the display type corresponding to the display score that meets the score condition in each display type corresponding to the target user identifier as the target display type to the client logged in by the target user identifier.
[0168] Among them, the user identifier is the user identifier logged in on the client that displays the search results. For example, after any client displays each result item of the search results based on the pre-configured display type, when it is detected that the user interacts with the target result in the result item, the user identifier of the client currently logged in is obtained, and based on the user identifier, an interaction data for interacting with the target result item is generated, and the generated interaction data is reported to the server. The server receives and stores each interaction data reported by each client, and each interaction data contains the corresponding user identifier.
[0169] Specifically, after obtaining the interaction data reported by each client, the server can determine the interaction data corresponding to each user identifier based on the user identifier carried in each interaction data, and for the target user identifier of each user identifier, calculate the display score corresponding to different display types under the target user identifier based on the interaction data corresponding to the target user identifier, and send the display type corresponding to the display score that meets the score conditions among the display types corresponding to the target user identifier as the target display type to the client logged in by the target user identifier.
[0170] For example, the server receives 100 pieces of interaction data reported by three clients, each piece of interaction data contains the user ID of the logged-in client, wherein the user IDs of the three clients are user ID A, user ID B and user ID C respectively. Based on the user ID in each piece of interaction data received, the server determines 30 pieces of interaction data corresponding to user ID A, 20 pieces of interaction data corresponding to user ID B and 50 pieces of interaction data corresponding to user ID C. If the target user ID is user ID A, the server calculates the display scores corresponding to different display types based on the 30 pieces of interaction data corresponding to user ID A, and displays the display scores corresponding to the display types when the display scores meet the score conditions. The corresponding display type is sent as the target display type to the client logged in by user ID A; if the target user ID is user ID B, the server calculates the display scores corresponding to different display types based on the 20 interaction data corresponding to user ID B, and sends the display type corresponding to the display score that meets the score condition as the target display type to the client logged in by user ID B; if the target user ID is user ID C, the server calculates the display scores corresponding to different display types based on the 50 interaction data corresponding to user ID C, and sends the display type corresponding to the display score that meets the score condition as the target display type to the client logged in by user ID C.
[0171] In the above embodiment, the server extracts the interaction data corresponding to the target user identifier from the interaction data, and determines the display scores corresponding to the different display types corresponding to the target user identifier based on the interaction data corresponding to the target user identifier; thereby, among the display types corresponding to the target user identifier, the display type corresponding to the display score that meets the score conditions is sent as the target display type to the client logged in by the target user identifier, so that the client can realize personalized search and display configuration of the target display type based on the logged-in user identifier, and then the client can display search results based on the search term display parameters of the configured target display type, so that users can quickly find the required result items and click them, thereby improving the search click efficiency.
[0172] In one embodiment, the target data source is a session data source, and the step of the server searching the target data source for at least one matching target data based on the search term carried in the first search request includes: searching the session data source for at least one session member containing the search term; obtaining session information of the at least one session member;
[0173] Here, session members are members participating in a group chat session, and session information is the group name of the group chat in which the session members are located, also known as the session name. The resulting session information is the target data. For example, if the search term is "Chen," the session members "Chen XX" and "Chen Y" containing the search term "Chen" are found in the session data source. "Chen XX" belongs to the group chat "My Customer Group," and "Chen XX" and "Chen Y" belong to the group chat "XX Company Work Exchange Group." Therefore, the group chat "My Customer Group" and the group chat "XX Department Work Exchange Group" contain the session information of session members "Chen XX" and "Chen Y."
[0174] In one embodiment, at least one session member containing the search term and session information of at least one session member can also be determined as target data, and the associated information corresponding to the target data includes at least one of group type, number of members, relationship information and announcement information. The process of the server obtaining the associated information corresponding to the at least one target data based on the content display parameter includes the following steps: when the content display parameter is the group type parameter of the group to which the session member belongs, obtaining the group type of the group to which the session member belongs; when the content display parameter is the number of members parameter of the group to which the session member belongs, obtaining the number of members of the group to which the session member belongs; when the content display parameter is the relationship parameter between the session member and the group, obtaining the relationship information between the session member and the group; when the content display parameter is the announcement parameter of the group to which the session member belongs, obtaining the announcement information of the group to which the session member belongs.
[0175] Figure 5In one embodiment, a schematic diagram of the display of search results obtained by searching in a conversation data source is shown. It can be seen from the figure that the search term is "Chen", and the displayed related information includes group types "external" and "all members", number of members "5", "40" and "256", relationship information "exited", and group announcement "Please submit monthly work report".
[0176] In the above embodiment, the server searches for related information such as group type, number of members, relationship information and announcement information of the session information, so that the search results obtained by searching in the session data source contain more information, which makes it easier for users to quickly find the required information and click it, thereby improving the search and click efficiency.
[0177] In one embodiment, the target data source is an address book data source, and the step of the server searching the target data source for at least one matching target data based on the search term carried in the first search request includes: searching the address book data source for at least one user identifier containing the search term; and using the at least one user identifier as the target data. The user identifier may be a user name.
[0178] In one embodiment, the associated information corresponding to the target data includes attribute information and tag information. The process of the server obtaining the associated information corresponding to at least one target data based on the content display parameter includes: when the content display parameter is an attribute parameter, obtaining the attribute information corresponding to the user identifier; when the content display parameter is a tag parameter, obtaining the tag information corresponding to the user identifier.
[0179] The attribute information may include the address information, phone number, position, etc. of the user corresponding to the user ID, and the tag information may include the tag corresponding to the user ID, the user information who added the tag, the time when the tag was added, etc.
[0180] Figure 6 In one embodiment, a schematic diagram of the display of search results obtained by searching in an address book data source is shown. It can be seen from the figure that the search term is "Chen", and the displayed related information includes the attribute information "A Department / Manager" and "Finance Department / Cashier", and the labels "Professional" and "Strict".
[0181] In the above embodiment, the server searches the attribute information and tag information of the user identifier in the address book so that the search results obtained from searching in the address book data source contain more information, which makes it easier for users to quickly find the required information and click it, thereby improving the search and click efficiency.
[0182] In one embodiment, the target data source is a chat record data source, and the server searches for at least one matching target data in the target data source based on the search term carried in the first search request, including: searching for at least one chat message containing the search term in the chat record data source; and taking at least one chat message as the target data.
[0183] Specifically, after finding at least one chat message containing the search term, the server may also obtain the chat object corresponding to the chat message, and use the chat message and the chat object as target data.
[0184] In one embodiment, the associated information of the target data is the message sending time or the message receiving time, and the process of the server obtaining the associated information corresponding to at least one target data based on the content display parameter includes the following steps: when the content display parameter is a time parameter, obtaining the message sending time or message receiving time corresponding to at least one chat message.
[0185] Figure 7 In one embodiment, a schematic diagram of the display of search results obtained by searching in a chat record data source is shown. It can be seen from the figure that the search term is "OK" and the associated information displayed is the sending time or receiving time of the chat message "4 / 20" and "2 / 10".
[0186] In the above embodiment, the server obtains the sending time or receiving time of the chat message so that the search results obtained by searching in the chat record data source contain more information, which makes it easier for users to quickly find the required information and click it, thereby improving the search and click efficiency.
[0187] In one embodiment, the target data source is a sub-application data source, and the process of the server searching for at least one matching target data in the target data source based on the search term carried in the first search request includes: searching for the application name of at least one sub-application containing the search term in the sub-application data source; and using the application name of at least one sub-application as the target data.
[0188] In one embodiment, the associated information of the target data is the description information of the sub-application, and the process of the server obtaining the associated information corresponding to at least one target data based on the content display parameter includes the following steps: when the content display parameter is the application description parameter, obtaining the description information of the sub-application.
[0189] The description information of the sub-application is information used to describe the sub-application, and specifically may be introduction information of the sub-application function.
[0190] Figure 8In one embodiment, a schematic diagram of the display of search results obtained by searching in a sub-application data source is shown. From the figure, it can be seen that the search term is "map" and the associated information displayed is the description information of the map sub-application "intelligent query of taxi and bus precise routes".
[0191] In the above embodiment, the server obtains the description information of the sub-application so that the search results obtained by searching in the sub-application data source contain more information, which makes it easier for users to quickly find the required information and click it, thereby improving the search and click efficiency.
[0192] In one embodiment, the target data source is an email data source, and the process of the server searching for at least one matching target data in the target data source based on the search term carried in the first search request includes the following steps: searching for at least one sender identifier containing the search term in the email data source; and taking the at least one sender identifier as the target data.
[0193] In one embodiment, the associated information corresponding to the target data includes at least one of email information and recipient information. The process of the server obtaining the associated information corresponding to at least one target data based on the content display parameter includes the following steps: when the content display parameter is an email content parameter, obtaining the email information sent or received by the sender identifier; when the content display parameter is an email source parameter, obtaining the recipient information of the email sent by the sender identifier.
[0194] The email information includes the email subject and email body, and the recipient information includes at least one of the recipient name and the recipient email address.
[0195] In one embodiment, the target data source is an email data source, and the process of the server searching the target data source for at least one matching target data based on the search term carried in the first search request includes the following steps: searching the email data source for at least one email message containing the search term, using the at least one email message as the target data, and when the content display parameter is an email source parameter, obtaining sender information corresponding to the email message. The sender information includes at least one of a sender name and a sender email address.
[0196] Figure 9 In one embodiment, a schematic diagram of the result display of the search results obtained by searching in the mailbox data source is shown. It can be seen from the figure that the search term is "Li", the associated information displayed is the email information "Company Express System Usage Announcement", and the associated information displayed is the sender information "System Mailbox".
[0197] In the above embodiment, the server obtains the email information and recipient information of the sender identifier, or obtains the sender information of the email information, so that the search results obtained by searching in the mailbox data source contain more information, which makes it easier for users to quickly find the required information and click, thereby improving the search and click efficiency.
[0198] In one embodiment, the content display parameters also include search term position parameters, and the above-mentioned search result display method also includes the following steps: based on the search term position parameters, determining the position where the search term appears in the result item; the process in which the server uses at least one target data and corresponding associated information as the result item of the search includes the following steps: using at least one target data, corresponding associated information and the position where the search term appears in the result item as the result item of the search.
[0199] In one embodiment, the target display type is multi-keyword highlighting and associated information display. The process of the client displaying the target search results based on the search term display parameters of the target display type includes the following steps: obtaining the position of the search term in each result item in the target search results, and highlighting the search term in the target data based on the position of the search term in the result item.
[0200] In the above embodiment, the server determines the position where the search term appears in the result item based on the search term position parameter, and uses at least one target data, corresponding related information and the position where the search term appears in the result item as the search result item, so that the client can highlight the search term at the corresponding position based on the position where the search term appears in the result item, making it easier for users to quickly find the required information and click it, thereby improving the search click efficiency.
[0201] In one embodiment, Figure 10 As shown, a method for displaying search results is provided, which is applied to Figure 1A Taking the server 104 in the example as an example, the following steps are included:
[0202] S1002: Receive a second search request sent by a different client.
[0203] S1004: Search the target data source based on the second search request to obtain search results requested by each client.
[0204] S1006 , returning the requested search results to each client respectively, so that each client displays the search results based on the display type, and interacts with the target result item in the search results to obtain interaction data.
[0205] S1008: Acquire interaction data obtained by interacting with search results displayed based on each display type.
[0206] S1010 : Determine, based on the interaction data, a display position of the target result item when displaying according to the display type of each client.
[0207] S1012: Determine scores of different clients when displaying target result items based on the display positions and the total number of result items in the search results.
[0208] S1014: Sum the scores of different clients when displaying the target result item to obtain a display score corresponding to the display type.
[0209] S1016: Among the display types, the display type corresponding to the display score that meets the score condition is sent to the client as the target display type.
[0210] S1018: When a first search request sent by the client is received, at least one matching target data is searched in the target data source based on the search term carried in the first search request.
[0211] S1020: Acquire association information corresponding to at least one target data based on the content display parameter.
[0212] S1022: Taking at least one target data and corresponding associated information as a search result item, obtaining a target search result including the result item.
[0213] S1024: Feedback the target search results obtained from the associated search to the client, so that the client displays the target search results based on the search term display parameters of the target display type.
[0214] In one embodiment, Figure 11 As shown, a method for displaying search results is provided, which is applied to Figure 1A The client running on the terminal (including terminal 102 and terminal 106) in the example is used for description, including the following steps:
[0215] S1102: Display search results found from the target data source according to display type.
[0216] The display type refers to the type of search result display. Search results are obtained by searching within a target data source. It is understood that a search entry may correspond to at least one target data source, and the search results obtained from searching within each target data source may be displayed based on the corresponding display type. It is understood that search results obtained from searching within different target data sources may be displayed using the same display type or different display types. Target data sources include session data sources, address book data sources, chat history data sources, sub-application data sources, and email data sources.
[0217] For example, a search entry corresponds to two target data sources, a session data source and an address book data source. Search result A obtained by searching in the session data source and search result B obtained by searching in the address book data source can be displayed using the same display type or different display types.
[0218] There are two types of display types. One is the first type of display type related to the display of search terms in the result items. The other is the second type of display type related to the display of associated information of target data in the result items. The target data is the data found in the target data source based on the search terms. The first category can also be called the search term display category, and the second category can also be called its associated information display category. Among them, the display types of the search term display category specifically include regular display, single search term highlighting, and multiple search term highlighting. Regular display means that the search term in the result item is displayed in the same way as other terms in the result item. Single search term highlighting means that when the result item contains only one or more search terms, only the search terms are highlighted. The display type of the related information display category specifically includes non-related information display and related information display. Related information refers to the related information of the target data. For example, the search term is the surname "Zhang", and the target data found in the address book data source is the name "Zhang X". The phone number of "Zhang X" stored in the address book data source is the related information corresponding to "Zhang X". Non-related information display means only displaying the target data, and related information display means displaying the target data and the related information of the target data at the same time.
[0219] S1104: Generate interactive data of the search results in response to the interactive operation on the search results.
[0220] Among them, the interaction data is the interaction data reported to the server by multiple clients. After any one of the multiple clients displays each result item of the search results based on a pre-configured display type, when it is detected that the user interacts with the target result item in the result items, it generates an interaction data for interacting with the target result item, and reports the generated interaction data to the server. The server receives and stores each interaction data reported by each client. Each interaction data includes triple information corresponding to the target result item, the display position of the target result item in the search results, and the total number of result items in the search results. Among them, the triple information includes the data source category of the target data source to which the target result item belongs, the display type of the search term display category to which the target result item belongs, and the display type of the associated information display category to which the target result item belongs.
[0221] For example, Figure 3A A schematic diagram of search results displayed by a client in an embodiment is shown. The search results displayed are obtained by searching through the search entry in the message page of the client. Figure 3A It can be seen that the display type of the search term display category to which the search result belongs is regular display, and the display type of the associated information display category to which the search result belongs is non-associated information display. Among them, there are 10 result items in the search result corresponding to the address book data, and 5 result items in the session result. If the user clicks on the target result item "Zhang Y", the terminal responds to the user's click operation, obtains the triple information of the target result item "address book category, regular display, non-associated information display", the position 2 of the target result item in the search result corresponding to the address book data, and the total number of result items in the search result corresponding to the address book data is 10, and converts the triple information into , the position of the target result item in the search results is 2, and the total number of result items in the search results corresponding to the target result item is 10, which constitute an interaction data; if the user clicks on the target result item "XX department work exchange group", the terminal responds to the user's click operation, obtains the triplet information of the target result item "session category, general display, and unrelated information display", the position of the target result item in the search results corresponding to the session data is 1, and the total number of result items in the search results corresponding to the session data is 5, and constitutes an interaction data with the triplet information, the position of the target result item in the search results is 1, and the total number of result items in the search results corresponding to the target result item is 5.
[0222] S1106: Send the interaction data to the server, so that the server determines the display scores corresponding to different display types in sequence based on the interaction data, and returns the target display type corresponding to the display score when the display score meets the score condition.
[0223] Among them, the display score is used to characterize the display effect corresponding to the display type. It can be understood that the higher the display score, the better the display effect. On the one hand, a display type with a good display effect can have a higher click-through rate. For example, if a certain display type is used to display search results on a search result display page, and the frequency or proportion of search results being clicked under this display type is high, it means that the display effect of this display type is good. Otherwise, it means that the display effect of this display type is poor. On the other hand, a display type with a good display effect can also have a higher search click efficiency. For example, if a certain display type is used to display search results on a search result display page, if the user can quickly find the required result item and click on it on the search result display page, it means that the display effect of this display type is good. Otherwise, it means that the display effect of this display type is poor.
[0224] Specifically, after generating interaction data, the client sends the generated interaction data to the server. The server receives and stores the interaction data reported by each client. After obtaining the interaction data corresponding to each target data source in different display types, the server can obtain the interaction data corresponding to any target data source, and based on the interaction data corresponding to each display type under the target data source, determine the display scores corresponding to different display types under the target data source.
[0225] In one embodiment, the server extracts the interaction data corresponding to each target data source from the stored interaction data, and obtains the interaction data corresponding to each display type under each target data source.
[0226] In one embodiment, the server receives and stores each piece of interaction data reported by each client in real time. At a preset time, the server extracts the interaction data corresponding to each target data source from the stored interaction data. For example, if the evaluation period is one day and the evaluation time is midnight, and the target data sources include the session data source, address book data source, chat history data source, sub-application data source, and email data source, then at midnight every day, the server extracts the target data corresponding to each of the session data source, address book data source, chat history data source, sub-application data source, and email data source from the stored interaction data.
[0227] In one embodiment, when the number of interaction data items stored for a target data source reaches a first threshold, the server determines the interaction data items corresponding to each display type under the target data source. For example, if the target data source is an address book data source and the first threshold is 10,000 items, then when the number of interaction data items corresponding to the address book data source reaches 10,000, the server determines the interaction data items corresponding to each display type under the address book data source.
[0228] In one embodiment, the target data sources corresponding to the interaction data include a session data source, an address book data source, a chat history data source, a sub-application data source, and an email data source. For the session data source, the server obtains interaction data with a session data source category based on the data source category of the stored triplet information of the interaction data, and classifies the interaction data with a session data source category according to the display type to obtain the sub-interaction data corresponding to each display type, so as to calculate the display score corresponding to each display type based on the sub-interaction data corresponding to each display type. The display types include display types for search term display and display types for associated information display. The display types for the search term display category include regular display, single search term highlighting, and multiple search term highlighting; the display types for the associated information display category include non-associated information display and associated information display.
[0229] In one embodiment, for a certain target data source and a corresponding display type belonging to the search term display category scenario, the server determines the sub-interaction data corresponding to each search term display type from the interaction data corresponding to the target data source, and determines the display score corresponding to the corresponding search term display type based on each sub-interaction data.
[0230] In one embodiment, for a certain target data source and a scenario where the corresponding display type belongs to the associated information display category, the server determines the sub-interaction data corresponding to each associated information display type from the interaction data corresponding to the target data source, and determines the display score corresponding to the corresponding associated information display type based on each sub-interaction data.
[0231] In one embodiment, the server obtains a pre-set score condition and, based on the score condition, filters out display types from various display types whose display scores meet the score condition. Upon receiving a configuration information acquisition request from any client, the server sends the display type whose display score meets the score condition as a target display type to the client, so that the client performs a search configuration for the search portal based on the received target display type. The score condition includes at least one of a threshold condition and a priority condition.
[0232] In one embodiment, the server obtains pre-set score conditions, which include threshold conditions and priority conditions. Based on the threshold conditions, the server screens out candidate display types whose display scores meet the threshold conditions from each display type. If the number of candidate display types belonging to the search term display category reaches two, then upon receiving a configuration information acquisition request sent by any client, the server determines the optimal candidate display type from the candidate display types belonging to the search term display category based on the priority conditions, and sends the optimal candidate display type as the target display type to the client, so that the client performs a search configuration for the search portal based on the received target display type. If the number of candidate display types belonging to the associated information display category reaches two, then upon receiving a configuration information acquisition request sent by any client, the server determines the optimal candidate display type from the candidate display types belonging to the associated information display category based on the priority conditions, and sends the optimal candidate display type as the target display type to the client, so that the client performs a search configuration for the search portal based on the received target display type.
[0233] In one embodiment, the preferential selection condition is a maximum score condition. When the server receives a configuration information acquisition request sent by any client, it selects the optimal candidate display type with the largest score from multiple candidate display types, and sends the optimal candidate display type as the target display type to the client, so that the client can search and configure the search entry based on the received target display type.
[0234] In one embodiment, the priority selection condition is the priority of the display type, which can be specifically determined based on the search entry corresponding to the received configuration information acquisition request. It is understandable that different search portals have different display type priorities corresponding to the same target data source. For example, when displaying the search results obtained from the address book data source through the search portal in the message page, the display type priorities of the search term display category are "multiple search term highlighting, single search term highlighting, regular display" from high to low; when displaying the search results obtained from the address book data source through the search portal in the contact page, the display type priorities of the search term display category are "regular display, single search term highlighting, multiple search term highlighting" from high to low; for example, when displaying the search results obtained from the address book data source through the search portal in the message page, the display type priorities of the related information display category are "no related information display, first related information display, second related information display" from high to low; when displaying the search results obtained from the address book data source through the search portal in the contact page, the display type priorities of the related information display category are "first related information display, second related information display, no related information display" from high to low.
[0235] Specifically, when the server receives a configuration information acquisition request sent by any client, it determines the priority of the corresponding display type based on the search entry corresponding to the received configuration information acquisition request, and selects the optimal candidate display type with the highest priority among multiple candidate display types, and sends the optimal candidate display type as the target display type to the client, so that the client searches for and configures the search entry based on the received target display type.
[0236] S1108: When the target display type is received, a first search request generated based on the target display type is sent to the server, so that the server performs an associated search based on the search term carried in the first search request and the content display parameters of the target display type.
[0237] Among them, the first search request carries a search term and a target display type. The first search request is related to the search entry that triggers the search request on the client. When the search entry is only configured for a certain search type, the search entry only triggers the search of the target data source corresponding to the search type. Accordingly, the server can directly receive the first search request; when the search entry is configured for multiple search types, the search entry can trigger the search of the target data sources corresponding to each configured search type. Accordingly, the first search request received by the server includes sub-search requests generated according to different search types. The target display type is the display type configured under the search entry corresponding to each target data source. The content display parameters of the target display type can be divided into content display parameters of the search term display category and content display parameters of the associated information display category. The content display parameters of the search term display category can specifically be search term position parameters, and the content display parameters of the associated information display category can be parameters related to the data source category of the target data source.
[0238] Specifically, after receiving the target display type, the client configures the search entry. When the client's search entry is configured with multiple search types, the client terminal obtains the search term based on the search entry, generates a first sub-search request based on the search term, each search type and the target display type corresponding to each search type, and sends the generated first sub-search requests to the server. The server receives the first sub-search request sent by the client and performs an associated search based on the search term carried in the first sub-search request and the content display parameters of the target display type.
[0239] S1110 , receiving target search results obtained by the server through an associated search, and displaying the target search results based on search term display parameters of a target display type.
[0240] Among them, the search term display parameters include regular display parameters, single search term display parameters and multiple search term display parameters. When the target display type is regular display, the corresponding search term display parameters are regular display parameters. When the target display type is single search term highlight display, the corresponding search term display parameters are single search term display parameters. When the target display type is multiple search term highlight display, the corresponding search term display parameters are multiple search term display parameters.
[0241] In one embodiment, after the server performs an associated search in the target data source to obtain the target search results, it directly feeds back the obtained target search results to the client that sent the first search request. After receiving the target search results, the client directly displays the obtained target search results based on the configured search term display parameters of the target display type.
[0242] In one embodiment, after receiving the target search results, the client determines the number of target data sources to which the target search results belong. If the number of target data sources does not reach the number threshold, the display layout is configured as a vertical list layout, and the received target search results are displayed based on the search term display parameters of the target display type and the vertical list layout; if the number of target data sources reaches the number threshold, the display layout is configured as a horizontal arrangement layout, and the received target search results are displayed based on the search term display parameters of the target display type and the horizontal arrangement layout.
[0243] In one embodiment, the server performs associated searches in multiple target data sources respectively to obtain target search results, and feeds back each target search result to the client in sequence according to the order of the search end time corresponding to each target search result. After receiving each target search result in sequence, the client displays each target result on the result display page based on the reception order of each target search result, the search term display parameters of the target display type, and the display layout. When the target search results are displayed in a vertical list layout, the closer the position is to the top of the display in the result display page, the earlier the target search result is received; when the target search results are displayed in a horizontal arrangement layout, the closer the position is to the left in the same row of the result display page, the earlier the target search result is received, and in different rows, the closer the row is to the top of the display, the earlier the target search result is received.
[0244] In one embodiment, the server performs an associated search in multiple target data sources to obtain target search results, and feeds each target search result back to the client. After receiving each target search result, the client displays each target search result on a result display page based on the priority of the target data source corresponding to the search entry, the search term display parameters of the target display type, and the display layout. Specifically, when displaying the target search results in a vertical list layout, the target search results with higher priority for the target data source are displayed closer to the top of the result display page; when displaying the target search results in a horizontal arrangement layout, the target search results with higher priority for the target data source are displayed closer to the left in the same row of the result display page, and the target search results with higher priority for the target data source are displayed closer to the top of the row in different rows.
[0245] For example, the search entry in the message page corresponds to five search types: conversation type, address book type, chat record type, sub-application type, and email type. That is, through this entry, you can search in the conversation data source, address book data source, chat record data source, sub-application data source, and email data source respectively. Assume that the number threshold of the target data sources to which the target search results belong is 3, and the priority of the target data sources is "chat record data source, conversation data source, address book data source, email data source, sub-application data source" from high to low. If the target search results obtained through this search entry only include search result A belonging to the conversation data source and search result B belonging to the chat record data source, that is, the number of target data sources to which the target search results belong is 2, which does not reach the number threshold of 3, then the search term display parameters based on the priority of the target data source and the target display type are displayed in the result display. The target search results are displayed in a vertical list layout on the page. The target search results displayed from top to bottom on the result display page are "Search result B, Search result A". If the target search results obtained through the search entry only include Search result A belonging to the session data source, Search result B belonging to the chat record data source, Search result C belonging to the sub-application data source, and Search result D belonging to the email data source, that is, the number of target data sources to which the obtained target search results belong is 4, reaching the number threshold of 3, then based on the priority of the target data source and the search term display parameters of the target display type, the target search results are displayed in a horizontal layout on the result display page. From left to right on the result display page, the target search results displayed in the first row are "Search result B, Search result A", and the search results displayed in the second row are "Search result D, Search result C".
[0246] refer to Figure 1B The result display page 120 shown, Figure 1BEach target search result is displayed in a vertical list layout. For contact results obtained by searching the address book data source, they are displayed based on the target display type of single search term display parameters with single search term highlighting and position-related information display; for group chat results obtained by searching the conversation data source, they are displayed based on the target display type of multi-search term display parameters with multi-search term highlighting and group member-related information display.
[0247] refer to Figure 3B The result display page shown, Figure 3B The target search results are displayed in a horizontal layout. For contact results obtained by searching the address book data source, they are displayed based on the target display type of single search term display parameters with single search term highlighting and position-related information display; for group chat results obtained by searching the conversation data source, they are displayed based on the target display type of multi-search term display parameters with multi-search term highlighting and group member-related information display.
[0248] In one embodiment, the user corresponding to the user ID of the logged-in client can manually configure the display layout corresponding to the search portal, and collect the identity information of the user using the client before searching through the search portal. If the identity information matches the user ID of the logged-in client, then after searching through the search portal to obtain the target search results, each target search result is displayed in the result display page based on the display layout configured by the user and the search term display parameters of the target display type; if the identity information does not match the user ID of the logged-in client, each target search result is displayed in the result display page based on the display layout configured by the system by default and the search term display parameters of the target display type.
[0249] For example, the user corresponding to user ID A who logs in to the client is user A, the system default display layout is a vertical list layout, and the search display layout manually configured by user A is a horizontal arrangement layout. When user A uses the client logged in by user ID A to search, the client collects user A's identity information and confirms that user A's identity information matches user ID A. After obtaining the target search results, the target search results are displayed in a horizontal arrangement layout on the result display page based on the search term display parameters of the target display type; when user B uses the client logged in by user ID A to search, the client collects user B's identity information and confirms that user B's identity information does not match user ID A. After obtaining the target search results, the target search results are displayed in a vertical list layout on the result display page based on the search term display parameters of the target display type.
[0250] In one embodiment, the server feeds back the target search results obtained from the associated search to the client, so that the client displays the target search results based on the search term display parameters of the target display type. It can also accept the interaction data reported by the client for interacting with the display of the target search results based on the search term display parameters of the target display type, so as to further determine the display score of the target display type based on the interaction data and continuously and dynamically optimize the search configuration of each client.
[0251] In the above embodiment, the client generates interactive data of the search results by displaying the search results found from the target data source according to the display type, and in response to interactive operations on the search results, sends the interactive data to the server, so that the server determines the display scores corresponding to different display types in turn based on the interactive data, and returns the target display type corresponding to the display score when the display score meets the score conditions; when receiving the target display type, the server sends a first search request generated based on the target display type to the server, so that the server performs an associated search based on the search terms carried in the first search request and the content display parameters of the target display type, receives the target search results obtained by the server through the associated search, and displays the target search results based on the search term display parameters of the target display type, so that users can quickly find the required result items and click on them, thereby improving the search click efficiency.
[0252] In one embodiment, the above-mentioned search result display method also includes the following steps: obtaining each configured search type from the server; generating a corresponding sub-search request based on each search type when the input search term is obtained; sending the generated sub-search request to the server so that the server searches from the target data source based on the received sub-search request; and receiving the search results searched by the server based on the sub-search request.
[0253] Specifically, multiple terminals are each equipped with an instant messaging application. When any client is started, it can obtain configuration information for each search entry from the server, where the configuration information specifically includes a display type and a search type. The corresponding search entry is configured based on the obtained display type and search type. The search term entered by the user can then be obtained based on each search entry. A second search request is then generated based on the search term, the search type corresponding to the search entry, and the display type, and the search request is sent to the server. The configured search type can be at least one, including session type, address book type, chat history type, sub-application type, and mailbox type. Each search type corresponds to a corresponding display type, and the configured display type includes a search term display type and an associated information display type.
[0254] In one embodiment, when the search entry of the client is configured with multiple search types, after the client terminal obtains the search term based on the search entry, it determines the display type corresponding to each search type respectively, and generates sub-search requests based on the search term, each search type and the display type corresponding to each search type, and sends the generated sub-search requests to the server, and the server receives the sub-search requests sent by the client.
[0255] In one embodiment, the search request received by the server includes sub-search requests generated based on different search types. The server searches the target data sources corresponding to the different search types based on the search terms carried in the sub-search requests to obtain the search results requested by each client.
[0256] Specifically, after receiving multiple sub-search requests corresponding to each client, the server determines the search type corresponding to each sub-search request, obtains the target data source corresponding to the determined search type, and then searches the target data source for the result items corresponding to the search terms in the sub-search request to obtain the search results corresponding to each sub-search request, and determines the search results of each sub-search request corresponding to the same client as the search results requested by the corresponding client.
[0257] In one embodiment, after determining the search results requested by each client, the server returns the search results to the corresponding client. After receiving the search results, the client displays the search results based on a pre-configured display type. When an interactive operation on a target result item in the search results is detected, corresponding interactive data is generated and reported to the server, where the interactive operation can be a click operation on the target result item.
[0258] In the above embodiment, the client obtains the configured search types from the server, and when the input search term is obtained, generates a corresponding sub-search request based on each search type, and sends the generated sub-search request to the server, so that the server searches from the target data source based on the received sub-search request, and receives the search results searched by the server based on the sub-search request, so that the client can search in different target data sources through the same search entry, thereby improving the search efficiency and the display efficiency of the search results, and allowing users to quickly find the required result items and click them, thereby improving the search click efficiency.
[0259] This application also provides an application scenario, which applies the above method. Specifically, the application of the search result display method in this application scenario is as follows:
[0260] refer to Figure 12Taking the target data source as the address book data source as an example, the clients are divided into three categories according to the display type: A, B and C. Each category contains multiple clients, and client A represents the A-category client, client B represents the B-category client, and client C represents the C-category client. Each client requests the display type of the search term display category and the display type of the associated information display category from the server respectively. The display type of the search term display category requested by the A-category client is single search term highlighting, and the display type of the associated information display category is the associated information label of the name. The display type of the search term display category requested by the B-category client is multiple search term highlighting, and the display type of the associated information display category is the display of the associated information phone number of the name. The display type of the search term display category requested by the C-category client is regular display and the display of the associated information display category. If the type is unrelated information display, then each client configures the search entry based on the display type after requesting the display type, and generates a corresponding search request after obtaining the search term through the search entry, and sends the search request to the server. After receiving the search results returned by the server, the obtained search results are displayed based on the pre-configured display type. When the target result item in the search results is clicked, interaction data is generated, and the generated interaction data is reported to the server, so that the server can evaluate the display types of various search term display categories and the display types of various related information display categories based on the received interaction data, and update the configuration of the display types of the search term display categories and the display types of the related information display categories in each client according to the evaluation results, so as to achieve continuous optimization of the display types. Among them, the interaction data includes the triple information of the target result item, the display position of the target result item in the search results, and the total number of result items in the search results, wherein the triple information includes the data source category of the target data source to which the target result item belongs, the display type of the search term display category to which the target result item belongs, and the display type of the related information display category to which the target result item belongs. In addition, the target data source can also be Figure 13 The relevant data sources shown in .
[0261] This application also provides an application scenario, which applies the above-mentioned search result display method. Specifically, the application of the search result display method in this application scenario is as follows:
[0262] refer to Figure 14After the client obtains the target display type from the server, it configures the search entry corresponding to the main page based on the target display type. When the main search entry is clicked and triggered, the target data sources corresponding to the various search types configured by the main search entry are reported to the server. When the search term is obtained through the main search entry, a sub-search request is generated based on the search term and the search type. This step can also be called a split request step. The sub-search request corresponding to each search type is then sent to the server to search the search results obtained from the server in each target data source. After obtaining the search results, the search results are hit-processed based on the target display type of the search term highlighting category, and the search structure is subjected to target data display processing based on the target display type of the associated information display category. The processed search effect obtained after the hit effect processing and the target data display processing is then displayed in the form of a list. When a click operation on the displayed search result is detected, interaction data is generated and reported to the server so that the server can continuously optimize the display type based on the received interaction data. Among them, the target data source can be Figure 13 The data source shown in .
[0263] It should be understood that although Figure 2 、 4 The steps in the flowcharts of 10, 11, 12 and 14 are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 、 4 At least part of the steps in 10, 11, 12 and 14 may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0264] In one embodiment, Figure 15 As shown, a device for displaying search results is provided. The device can be a software module or a hardware module, or a combination of the two to form a part of a computer device. The device specifically includes: an interaction data acquisition module 1502, a display score determination module 1504, a display type sending module 1506, a search module 1508, and a result feedback module 1510, wherein:
[0265] The interaction data acquisition module 1502 is used to acquire interaction data obtained by interacting with search results displayed based on each display type.
[0266] The display score determination module 1504 is configured to sequentially determine display scores corresponding to different display types based on the interaction data.
[0267] The display type sending module 1506 is configured to send, among various display types, the display type corresponding to the display score that meets the score condition as a target display type to the client.
[0268] The search module 1508 is configured to, upon receiving a first search request sent by the client, perform an associated search based on the search term carried in the first search request and the content display parameters of the target display type.
[0269] The result feedback module 1510 is configured to feed back the target search results obtained from the associated search to the client, so that the client can display the target search results based on the search term display parameters of the target display type.
[0270] The above-mentioned search result display device determines the display scores corresponding to different display types in turn based on the interaction data obtained by interacting with the search results displayed based on each display type, and in each display type, sends the display type corresponding to the display score that meets the score conditions to the client as the target display type, so that the client can perform search display configuration based on the target display type and trigger the first search request. Then, when the server receives the first search request sent by the client, it performs an associated search based on the search terms carried in the search request and the content display parameters of the target display type; and feeds back the target search results obtained from the associated search to the client, so that the client displays the target search results based on the configured target display type, so that the user can quickly find the required result item and click it, thereby improving the search click efficiency.
[0271] In one embodiment, the search module is further configured to receive second search requests sent by different clients; search the target data source based on the second search request to obtain search results requested by each client;
[0272] The result feedback module is further configured to return the requested search results to each client, so that each client displays the search results based on the display type and interacts with the target result item in the search results to obtain interaction data.
[0273] In one embodiment, the second search request sent by different clients includes sub-search requests generated based on different search types; the search module is also used to search in the target data sources corresponding to the different search types based on the search terms carried in the sub-search requests to obtain the search results requested by each client.
[0274] In one embodiment, the display score determination module is also used to: determine the display position of the target result item when displaying according to the display type of each client based on the interaction data; determine the score of different clients when displaying the target result item based on the display position and the total number of result items in the search results; sum the scores of different clients when displaying the target result item to obtain the display score corresponding to the display type.
[0275] In one embodiment, the search module is also used to: when receiving a first search request sent by a client, search for at least one matching target data in the target data source based on the search term carried in the first search request; obtain associated information corresponding to the at least one target data based on content display parameters; and use the at least one target data and the corresponding associated information as the result item of the search to obtain a target search result including the result item.
[0276] In one embodiment, the target data source includes a session data source; the search module is further configured to: search the session data source for at least one session member containing the search term; obtain session information of the at least one session member; the session information is the target data;
[0277] When the content display parameter is the group type parameter of the group to which the session member belongs, the group type of the group to which the session member belongs is obtained; when the content display parameter is the number of members parameter of the group to which the session member belongs, the number of members of the group to which the session member belongs is obtained; when the content display parameter is the relationship parameter between the session member and the group, the relationship information between the session member and the group is obtained; when the content display parameter is the announcement parameter of the group to which the session member belongs, the announcement information of the group to which the session member belongs is obtained.
[0278] In one embodiment, the target data source includes an address book data source; the search module is further configured to: search the address book data source for at least one user identifier containing the search term; and use the at least one user identifier as the target data;
[0279] When the content display parameter is an attribute parameter, the attribute information corresponding to the user identifier is obtained; when the content display parameter is a tag parameter, the tag information corresponding to the user identifier is obtained.
[0280] In one embodiment, the target data source includes a chat record data source; the search module is further configured to: search the chat record data source for at least one chat message containing a search term; and use the at least one chat message as the target data;
[0281] When the content display parameter is a time parameter, the message sending time or message receiving time corresponding to at least one chat message is obtained.
[0282] In one embodiment, the target data source includes a sub-application data source; the search module is further configured to: search the sub-application data source for an application name of at least one sub-application containing the search term; and use the application name of the at least one sub-application as the target data;
[0283] When the content display parameter is an application description parameter, obtain the description information of the sub-application.
[0284] In one embodiment, the target data source includes an email data source, and the search module is further configured to: search the email data source for at least one sender identifier containing the search term; and use the at least one sender identifier as target data;
[0285] When the content display parameter is an email content parameter, the email information sent or received by the sender ID is obtained; when the content display parameter is an email source parameter, the recipient information of the email sent by the sender ID is obtained.
[0286] In one embodiment, the content display parameters also include a search term position parameter, and the search module is further used to: determine the position where the search term appears in the result item based on the search term position parameter; and use at least one target data, corresponding associated information and the position where the search term appears in the result item as the search result item.
[0287] In one embodiment, Figure 16 As shown, a device for displaying search results is provided. The device can be a software module or a hardware module, or a combination of the two to form a part of a computer device. The device specifically includes: a result display module 1602, an interaction data generation module 1604 and a sending module 1606, wherein:
[0288] The result display module 1602 is used to display the search results found from the target data source according to the display type.
[0289] The interaction data generating module 1604 is configured to generate interaction data of the search results in response to interaction operations on the search results.
[0290] The sending module 1606 is configured to send the interaction data to the server, so that the server determines the display scores corresponding to different display types based on the interaction data, and returns the target display type corresponding to the display score when the display score meets the score condition.
[0291] The sending module 1606 is further configured to send a first search request generated based on the target display type to the server upon receiving the target display type, so that the server performs an associated search based on the search term carried in the first search request and the content display parameters of the target display type.
[0292] The result display module 1602 is further configured to receive target search results obtained by the server through an associated search, and display the target search results based on search term display parameters of a target display type.
[0293] In one embodiment, the sending module 1606 is further used to: obtain the configured search types from the server; upon obtaining the input search terms, generate corresponding sub-search requests based on the search types; and send the generated sub-search requests to the server so that the server searches from the target data source based on the received sub-search requests. The result display module 1602 is further used to: receive the search results searched by the server based on the sub-search requests.
[0294] The above-mentioned search result display device displays the search results found from the target data source according to the display type, and generates interactive data of the search results in response to interactive operations on the search results, and sends the interactive data to the server, so that the server determines the display scores corresponding to different display types in turn based on the interactive data, and returns the target display type corresponding to the display score when the display score meets the score conditions; when receiving the target display type, it sends a first search request generated based on the target display type to the server, so that the server performs an associated search based on the search terms carried in the first search request and the content display parameters of the target display type, receives the target search results obtained by the server through the associated search, and displays the target search results based on the search term display parameters of the target display type, so that users can quickly find the required result items and click them, thereby improving the search click efficiency.
[0295] For the specific definition of the search result display device, please refer to the definition of the search result display method above, which will not be repeated here. The various modules in the above-mentioned search result display device can be implemented in whole or in part by software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.
[0296] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 17As shown. The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store interactive data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for displaying search results is implemented.
[0297] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 18 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for displaying search results is implemented. The display screen of the computer device can be a liquid crystal display or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse.
[0298] Those skilled in the art will understand that Figure 17 or Figure 18 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0299] In one embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
[0300] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above-mentioned method embodiments when executed by a processor.
[0301] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps of each of the above-described method embodiments.
[0302] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0303] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0304] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A method for displaying search results, characterized in that: The method comprises: Obtaining interaction data obtained by each client interacting with a target result item in the search results displayed based on each display type; wherein each piece of the interaction data includes triple information of the target result item, the display position of the target result item in the search results, and the total number of result items in the search results; the triple information includes the data source category of the target data source to which the target result item belongs, the display type under the search term display category used by the target result item, and the display type under the associated information display category used by the target result item; For the mth display type corresponding to the target data source, based on the interaction data corresponding to the mth display type, determining the display positions of the target result items when displayed by different clients according to the mth display type; determining scores for different clients when displaying the target result items based on the display positions and the total number of result items in the search results; and summing the scores for different clients when displaying the target result items to obtain a display score corresponding to the mth display type. Among the display types, the display type corresponding to the display score meeting the score condition is sent to the client as the target display type; When receiving a first search request sent by the client, performing an associated search based on the search term carried in the first search request and the content display parameters of the target display type; The target search results obtained from the associated search are fed back to the client, so that the client displays the target search results based on the search term display parameters of the target display type.
2. The method according to claim 1, characterized in that Before obtaining the interaction data obtained by each client interacting with the target result item in the search results displayed based on each display type, the method further includes: receiving a second search request sent by a different client; Searching from a target data source based on the second search request to obtain the search results requested by each of the clients; The requested search results are returned to each client respectively, so that each client displays the search results based on the display type and interacts with the target result item in the search results to obtain the interaction data.
3. The method according to claim 2, characterized in that The second search requests sent by different clients include sub-search requests generated according to different search types; The searching from the target data source based on the second search request to obtain the search results requested by each of the clients includes: In the target data sources corresponding to the different search types, a search is performed based on the search terms carried in the sub-search request to obtain the search results requested by each client.
4. The method according to claim 1, wherein When receiving the first search request sent by the client, performing an associated search based on the search term carried in the first search request and the content display parameter of the target display type includes: When receiving a first search request sent by the client, searching for at least one matching target data in the target data source based on the search term carried in the first search request; Acquire association information corresponding to at least one of the target data based on the content display parameter; At least one of the target data and the corresponding associated information is used as a search result item to obtain a target search result including the result item.
5. The method according to claim 4, characterized in that The target data source includes a session data source; The searching for at least one matching target data in the target data source based on the search term carried in the first search request includes: Searching the session data source for at least one session member containing the search term; Acquire session information of at least one of the session members; the session information is the target data; The acquiring, based on the content display parameter, associated information corresponding to at least one target data includes: When the content display parameter is a group type parameter of the group to which the session member belongs, obtaining the group type of the group to which the session member belongs; When the content display parameter is a parameter of the number of members of the group to which the conversation member belongs, obtaining the number of members of the group to which the conversation member belongs; When the content display parameter is a relationship parameter between the conversation member and the group, obtaining relationship information between the conversation member and the group; When the content display parameter is an announcement parameter of the group to which the conversation member belongs, the announcement information of the group to which the conversation member belongs is obtained.
6. The method according to claim 4, characterized in that The target data source includes an address book data source; The searching for at least one matching target data in the target data source based on the search term carried in the first search request includes: Searching the address book data source for at least one user identifier containing the search term; using at least one of the user identifiers as the target data; The acquiring, based on the content display parameter, associated information corresponding to at least one target data includes: When the content display parameter is an attribute parameter, obtaining attribute information corresponding to the user identifier; When the content display parameter is a tag parameter, tag information corresponding to the user identifier is obtained.
7. The method according to claim 4, characterized in that The target data source includes a chat record data source; searching the target data source for at least one matching target data based on the search term carried in the first search request includes: Searching the chat record data source for at least one chat message containing the search term; using at least one of the chat messages as the target data; The acquiring, based on the content display parameter, associated information corresponding to at least one target data includes: When the content display parameter is a time parameter, the message sending time or the message receiving time corresponding to at least one of the chat messages is obtained.
8. The method according to claim 4, characterized in that The target data source includes a sub-application data source; The searching for at least one matching target data in the target data source based on the search term carried in the first search request includes: Searching the sub-application data source for an application name of at least one sub-application containing the search term; using an application name of at least one of the sub-applications as the target data; The acquiring, based on the content display parameter, associated information corresponding to at least one target data includes: When the content display parameter is an application description parameter, the description information of the sub-application is obtained.
9. The method according to claim 4, characterized in that The target data source includes an email data source, and searching the target data source for at least one matching target data based on the search term carried in the first search request includes: Searching the email data source for at least one sender identifier containing the search term; using at least one of the sender identifiers as the target data; The acquiring, based on the content display parameter, associated information corresponding to at least one target data includes: When the content display parameter is an email content parameter, obtaining email information sent or received by the sender identifier; When the content display parameter is an email source parameter, the recipient information of the email sent by the sender identifier is obtained.
10. The method according to any one of claims 4 to 9, characterized in that The content display parameters also include a search term position parameter, and the method further includes: Based on the search term position parameter, determining the position where the search term appears in the result item; The taking at least one target data and the corresponding associated information as a search result item includes: The at least one target data, the corresponding associated information and the position where the search term appears in the result item are used as the search result item.
11. A method for displaying search results, characterized in that: The method comprises: Display search results from the target data source according to display type; In response to an interactive operation on a target result item in the search results, generating interactive data for the target result item in the search results; the interactive data includes triple information of the target result item, a display position of the target result item in the search results, and a total number of result items in the search results; the triple information includes a data source category of a target data source to which the target result item belongs, a display type under a search term display category used by the target result item, and a display type under a related information display category used by the target result item; Sending the interaction data to a server, so that the server sequentially determines the display scores corresponding to the different display types based on the interaction data, and returns the target display type corresponding to the display score when the display score meets the score condition; Upon receiving the target display type, sending a first search request generated based on the target display type to the server, so that the server performs an associated search based on the search term carried in the first search request and the content display parameters of the target display type; receiving a target search result obtained by the server through an associated search, and displaying the target search result based on a search term display parameter of the target display type; Among them, the server determines the display scores corresponding to different display types in sequence based on the interaction data, including: for the mth display type corresponding to the target data source, based on the interaction data corresponding to the mth display type, determining the display positions of the target result items when different clients display according to the mth display type; determining the scores of different clients when displaying the target result items according to the display positions and the total number of result items in the search results; and summing the scores of different clients when displaying the target result items to obtain the display scores corresponding to the mth display type.
12. The method according to claim 11, characterized in that Before displaying the search results found from the target data source according to the display type, the method further includes: Obtain configured search types from the server; When the input search term is obtained, a corresponding sub-search request is generated based on each of the search types; sending the generated sub-search request to the server, so that the server searches from the target data source based on the received sub-search request; The search result obtained by the server based on the sub-search request is received.
13. A device for displaying search results, characterized in that: The device comprises: An interaction data acquisition module is configured to acquire interaction data obtained by each client interacting with a target result item in the search results displayed based on each display type; wherein each piece of interaction data includes triple information of the target result item, the display position of the target result item in the search results, and the total number of result items in the search results; the triple information includes the data source category of the target data source to which the target result item belongs, the display type under the search term display category used by the target result item, and the display type under the associated information display category used by the target result item; a display score determination module configured to determine, for the mth display type corresponding to the target data source, based on interaction data corresponding to the mth display type, display positions of the target result items when displayed by different clients according to the mth display type; determine scores for different clients when displaying the target result items based on the display positions and the total number of result items in the search results; and sum the scores for different clients when displaying the target result items to obtain a display score corresponding to the mth display type; A display type sending module, configured to send, among the display types, the display type corresponding to the display score that meets the score condition as a target display type to the client; A search module configured to, upon receiving a first search request sent by the client, perform an associated search based on a search term carried in the first search request and content display parameters of the target display type; The result feedback module is configured to feed back the target search result obtained by the associated search to the client, so that the client displays the target search result based on the search term display parameters of the target display type.
14. The device according to claim 13, characterized in that Before obtaining the interaction data obtained by each client interacting with the target result item in the search results displayed based on each display type, The search module is further configured to receive second search requests sent by different clients; search from a target data source based on the second search request to obtain the search results requested by each client; The result feedback module is further configured to return the requested search results to each client, so that each client displays the search results based on the display type and interacts with the target result item in the search results to obtain the interaction data.
15. The device according to claim 14, characterized in that The second search requests sent by different clients include sub-search requests generated according to different search types; The search module is further configured to search target data sources corresponding to different search types based on the search terms carried in the sub-search requests to obtain the search results requested by each client.
16. The device according to claim 13, characterized in that The search module is also used to: When receiving a first search request sent by the client, searching for at least one matching target data in the target data source based on the search term carried in the first search request; Acquire association information corresponding to at least one of the target data based on the content display parameter; At least one of the target data and the corresponding associated information is used as a search result item to obtain a target search result including the result item.
17. The device according to claim 16, characterized in that The target data source includes a session data source; and the search module is further configured to: Searching the session data source for at least one session member containing the search term; Acquire session information of at least one of the session members; the session information is the target data; When the content display parameter is a group type parameter of the group to which the session member belongs, obtaining the group type of the group to which the session member belongs; When the content display parameter is a parameter of the number of members of the group to which the conversation member belongs, obtaining the number of members of the group to which the conversation member belongs; When the content display parameter is a relationship parameter between the conversation member and the group, obtaining relationship information between the conversation member and the group; When the content display parameter is an announcement parameter of the group to which the conversation member belongs, the announcement information of the group to which the conversation member belongs is obtained.
18. The device according to claim 16, characterized in that The target data source includes an address book data source; the search module is further configured to: Searching the address book data source for at least one user identifier containing the search term; using at least one of the user identifiers as the target data; When the content display parameter is an attribute parameter, obtaining attribute information corresponding to the user identifier; When the content display parameter is a tag parameter, tag information corresponding to the user identifier is obtained.
19. The device according to claim 16, characterized in that The target data source includes a chat record data source; the search module is further used to: Searching the chat record data source for at least one chat message containing the search term; using at least one of the chat messages as the target data; When the content display parameter is a time parameter, the message sending time or the message receiving time corresponding to at least one of the chat messages is obtained.
20. The device according to claim 16, wherein The target data source includes a sub-application data source; the search module is further configured to: Searching the sub-application data source for an application name of at least one sub-application containing the search term; using an application name of at least one of the sub-applications as the target data; When the content display parameter is an application description parameter, the description information of the sub-application is obtained.
21. The device according to claim 16, characterized in that The target data source includes an email data source, and the search module is further configured to: Searching the email data source for at least one sender identifier containing the search term; using at least one of the sender identifiers as the target data; When the content display parameter is an email content parameter, obtaining email information sent or received by the sender identifier; When the content display parameter is an email source parameter, the recipient information of the email sent by the sender identifier is obtained.
22. The device according to any one of claims 16 to 21, characterized in that The content display parameters also include search term position parameters, and the search module is further configured to: Based on the search term position parameter, determining the position where the search term appears in the result item; The at least one target data, the corresponding associated information and the position where the search term appears in the result item are used as the search result item.
23. A device for displaying search results, characterized in that: The device comprises: The result display module is used to display the search results found from the target data source according to the display type; an interaction data generation module, configured to generate interaction data for a target result item in the search results in response to an interaction operation on the target result item in the search results; the interaction data including triple information of the target result item, a display position of the target result item in the search results, and a total number of result items in the search results; the triple information including a data source category of a target data source to which the target result item belongs, a display type under a search term display category used by the target result item, and a display type under a related information display category used by the target result item; a sending module, configured to send the interaction data to a server, so that the server sequentially determines the display scores corresponding to the different display types based on the interaction data, and returns the target display type corresponding to the display score when the display score meets the score condition; The sending module is further configured to, upon receiving the target display type, send a first search request generated based on the target display type to the server, so that the server performs an associated search based on the search term carried in the first search request and the content display parameters of the target display type; The result display module is further configured to receive target search results obtained by the server through the associated search, and display the target search results based on the search term display parameters of the target display type; Among them, the server determines the display scores corresponding to different display types in sequence based on the interaction data, including: for the mth display type corresponding to the target data source, based on the interaction data corresponding to the mth display type, determining the display positions of the target result items when different clients display according to the mth display type; determining the scores of different clients when displaying the target result items according to the display positions and the total number of result items in the search results; and summing the scores of different clients when displaying the target result items to obtain the display scores corresponding to the mth display type.
24. The device according to claim 23, characterized in that Before displaying the search results found from the target data source according to the display type, the sending module is further configured to: Obtain configured search types from the server; When the input search term is obtained, a corresponding sub-search request is generated based on each of the search types; sending the generated sub-search request to the server, so that the server searches from the target data source based on the received sub-search request; The result display module is further configured to receive the search results found by the server based on the sub-search request.
25. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.
26. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
Citation Information
Patent Citations
Click model application method and device and searching system
CN106844744A
A search result display method and apparatus
CN109213942A