Message processing method, device, equipment and medium
By triggering a search event in the message editing area of the instant messaging session page, outputting a search window and displaying matching results, the problems of long search paths and low efficiency in the prior art are solved, and an efficient search experience is achieved.
Patent Information
- Application Number
- CN202010942933.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-09
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2040-09-09
AI Technical Summary
In an instant messaging session scenario, the search process in the prior art requires frequent application switching, resulting in a long search path, low efficiency, and an unsmooth user experience.
A search event is triggered in the message editing area of the instant messaging session page, a search window is output, and search content is entered in the search window to display matching search results, thereby avoiding application switching.
This enables content search during an instant messaging session without switching applications, shortening the search path and improving search efficiency and user experience.
Smart Images

Figure CN112069410B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, specifically to the field of message processing, and more particularly to a message processing method, a message processing apparatus, a message processing device, and a computer-readable storage medium. Background Art
[0002] In the context of instant messaging sessions, there is often a need to search. In the prior art, searching for content through search engines (e.g., Baidu search, Sogou search, Toutiao search, etc.) can help users find content that meets their needs more quickly in a vast amount of data. However, practice has found that the process of searching for content through search engines is an independent search process to achieve the search for content; for example, when a user generates a search demand in an instant messaging session, the user needs to interrupt the current instant messaging (such as chat, video, voice, etc.) and switch from the instant messaging session page to the search page of the search engine, and then search for content on the search page of the search engine to meet the search demand. This requires frequent switching of applications during the search process in the instant messaging session, resulting in a long search path, low search efficiency, and an unsmooth user experience. Summary of the Invention
[0003] The embodiments of the present application provide a message processing method, apparatus, device, and medium that support users actively triggering search events during the process of editing instant messaging conversation messages to implement content search in instant messaging conversation scenarios without the need to switch applications, with a short search path and high search efficiency.
[0004] On the one hand, an embodiment of the present application provides a message processing method, including:
[0005] Displaying an instant messaging session page, wherein the instant messaging session page has a message editing area;
[0006] If there is a search event in the message editing area, the search window will be output;
[0007] Enter search content in the search window, and N search results matching the search content will be displayed in the search window, where N is an integer.
[0008] On the other hand, an embodiment of the present application provides a message processing device, including:
[0009] A display unit, configured to display an instant messaging session page, wherein the instant messaging session page includes a message editing area;
[0010] A processing unit, configured to output a search window if a search event occurs in the message editing area;
[0011] Enter search content in the search window, and N search results matching the search content will be displayed in the search window, where N is an integer.
[0012] In one implementation, the search event in the message editing area includes at least one of the following:
[0013] The message editing area includes a search entry; when the search entry is triggered, a search event is generated in the message editing area;
[0014] The message editing area includes a message input box; when a search character is input in the message input box, a search event is generated in the message editing area.
[0015] In another implementation, the search portal includes a search icon and / or a search option; the search portal may be configured in at least one of the following ways:
[0016] If the message editing area includes a message input box, the search entry is set in the message input box;
[0017] If the message editing area includes an operation menu, the search entry is set in the operation menu;
[0018] If the message editing area includes a message input box, and input characters are displayed in the message input box; selecting the input characters triggers the display of the option bar, and the search entry is set in the option bar.
[0019] In another implementation, the search window includes a hide option; and the processing unit is further configured to:
[0020] When the hide option is triggered, the search window is hidden; wherein the message input box is set as the search box in the hidden search window;
[0021] The processing unit is specifically configured to: input search content in the message input box, where the search content includes search characters.
[0022] In another implementation, the processing unit is further configured to:
[0023] When the search content containing the search characters is sent to the instant messaging session page in the form of a message, if the search content in the form of a message is triggered, a search result page is displayed, which includes identifiers of N search results that match the search content.
[0024] In another implementation, the search window includes a result display area; and the processing unit is specifically configured to:
[0025] Display N search results in the result display area;
[0026] N search results are clustered into M application categories according to their sources. Each application category includes at least one search result, where M is an integer. The result display area is divided into M sub-areas.
[0027] The processing unit is specifically used to:
[0028] The identifiers of the M application categories are displayed in the M sub-areas respectively, and the identifier of at least one search result under each application category is displayed in the sub-area corresponding to each application category.
[0029] In another implementation, M application category identifiers are displayed in the M sub-areas, respectively, including at least one of the following:
[0030] Display the logos of the M application categories in the M sub-areas in a random order;
[0031] Arrange and display the M application categories in M sub-areas in descending order of users' attention to the application categories;
[0032] Any application category among the M application categories is denoted as the i-th application category, where i is an integer and i≤M;
[0033] Displaying an identifier of at least one search result under the i-th application category in the sub-area corresponding to the i-th application category includes at least one of the following:
[0034] Displaying the identifier of at least one search result under the i-th application category in a sub-area corresponding to the i-th application category in a random order;
[0035] Arrange and display the identifier of at least one search result under the i-th application category in the sub-area corresponding to the i-th application category in descending order of the degree of matching between the search results and the user's historical behavior;
[0036] The user's attention to the application category is obtained based on the user's historical behavior statistics; the user's historical behavior includes at least one of the following: usage behavior of the application category, search behavior of the application category, and download behavior of the application category.
[0037] In another implementation, the search window includes a search content input area, the search content input area includes a search box and a history display area; the history display area is used to display historical search content;
[0038] The processing unit is specifically used to:
[0039] In the search box, enter the historical search content selected in the history display area, or enter new search content in the search box; the search content includes at least one of the following: voice, text, and image.
[0040] In this technical solution, the search window includes a history display area, and the history display area contains historical search content; when the search window is displayed, by selecting the historical search content in the history display area, multiple searches for the same search content can be quickly performed, thereby improving the user's search experience.
[0041] In another implementation, the search window displays return items; and the processing unit is further configured to:
[0042] Selecting the Return option closes the search window and displays the instant messaging session page again.
[0043] In another implementation, the processing unit is further configured to:
[0044] When a target search result among the N search results is selected, the target search result is displayed in a message form in the instant messaging session page.
[0045] In another implementation, the search window includes a result display area; the result display area displays an aggregation indicator, and when the aggregation indicator is selected, it indicates that all N search results are selected, and the target search result includes N search results;
[0046] The processing unit is specifically used to:
[0047] The first target session message is displayed on the instant messaging session page, where the first target session message carries the aggregation identifier.
[0048] In this technical solution, by selecting the aggregation logo in the result display area, all N search results can be shared, thereby achieving sharing of all application categories and all search results under each application category, improving the efficiency of search result sharing.
[0049] In another implementation, N search results are clustered into M application categories according to their sources, each application category includes at least one search result, where M is an integer; any application category in the M application categories is denoted as the i-th application category, where i is an integer and i≤M; when the identifier of the i-th application category is selected, it indicates that all search results under the i-th application category are selected, and the target search results include all search results under the i-th application category;
[0050] The processing unit is specifically used to:
[0051] The second target conversation message is displayed in the instant messaging conversation page, and the second target conversation message carries the identifier of the i-th application category.
[0052] In this technical solution, by selecting the logo of the application category in the result display area, the application category can be shared, and then all search results under the application category can be shared, thereby improving the efficiency of search result sharing.
[0053] In another implementation, the target search result is the j-th search result among N search results, where j is an integer and j≤N, and the j-th search result refers to any one of the N search results;
[0054] The processing unit is specifically used to:
[0055] The third target conversation message is displayed on the instant messaging conversation page, and the third target conversation message carries the identifier of the j-th search result.
[0056] In this technical solution, by selecting the search result identifier in the result display area, a single search result can be shared, thereby improving the efficiency of search result sharing.
[0057] In another implementation, the processing unit is further configured to:
[0058] If the first target conversation message in the instant messaging conversation page is selected, a search result page is displayed, the search result page including N search result identifiers; or,
[0059] If the second target conversation message in the instant messaging conversation page is selected, a search result page is displayed, the search result page including identifiers of N search results under the i-th application category; or,
[0060] If the third target conversation message in the instant messaging conversation page is selected, a search result page is displayed, and the search result page includes detailed information of the j-th search result.
[0061] In this technical solution, one or more users who are on the current instant messaging conversation page with the sharer can quickly and promptly obtain the search results shared by the sharer by selecting the target conversation message in the instant messaging conversation page, thereby improving the efficiency of the instant messaging conversation and enhancing the experience of each user participating in the conversation.
[0062] In another implementation, the target search result is displayed in the instant messaging session page in the form of a target conversation message, where the target conversation message is any message in the instant messaging message stream in the instant messaging session page; and the processing unit is further configured to:
[0063] When the target conversation message is triggered to be shared, a sharing object list is output, and the sharing object list contains at least one sharing object;
[0064] Send a target conversation message to the target sharing object. The target sharing object is any sharing object selected in the sharing object list.
[0065] In this technical solution, the target search results displayed in the instant messaging session page can also be forwarded to other session pages other than the current instant messaging session page, thereby improving the sharing efficiency of the search results.
[0066] On the other hand, an embodiment of the present application provides a message processing device, the message processing device comprising:
[0067] a processor adapted to execute a computer program;
[0068] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the message processing method described above is implemented.
[0069] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are read and executed by a processor of a computer device, the computer device executes the above-mentioned message processing method.
[0070] In another aspect, an embodiment of the present application provides a computer program product or computer program, which includes 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 message processing method described above.
[0071] In an embodiment of the present application, when a search event occurs in the message editing area (e.g., a search entry is triggered or a search character is entered), a search window is output. By entering search content in the search window, N (N is an integer) search results matching the search content are displayed in the search window. Through the above process, when any user participating in an instant messaging session has a search need, a search event can be actively triggered in the message editing area included in the instant messaging session page, and then the search can be quickly performed in the instant messaging application and the corresponding search results can be obtained. This shortens the path for users to reach search results and helps users obtain the desired search results more quickly. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0073] Figure 1 A flowchart schematically shows a message processing method provided by an exemplary embodiment of the present application;
[0074] Figure 2a A schematic diagram of a search portal provided by an exemplary embodiment of the present application is shown;
[0075] Figure 2b A schematic diagram showing another search portal provided by an exemplary embodiment of the present application is shown;
[0076] Figure 2c A schematic diagram showing another search portal provided by an exemplary embodiment of the present application is shown;
[0077] Figure 2d A schematic diagram showing another search portal provided by an exemplary embodiment of the present application is shown;
[0078] Figure 2e A schematic diagram of generating a search event provided by an exemplary embodiment of the present application is shown;
[0079] Figure 3a A schematic diagram of inputting search content in a search window provided by an exemplary embodiment of the present application is shown;
[0080] Figure 3b A schematic diagram showing another method of inputting search content in a search window provided by an exemplary embodiment of the present application is shown;
[0081] Figure 3c A schematic diagram showing another method of inputting search content in a search window provided by an exemplary embodiment of the present application is shown;
[0082] Figure 4a A schematic diagram of displaying search results provided by an exemplary embodiment of the present application is shown;
[0083] Figure 4b Another schematic diagram of displaying search results provided by an exemplary embodiment of the present application is shown;
[0084] Figure 5 A flow chart of another message processing method provided by an exemplary embodiment of the present application is shown;
[0085] Figure 6a A schematic diagram of adding search results provided by an exemplary embodiment of the present application is shown;
[0086] Figure 6b A schematic diagram showing another method of adding search results provided by an exemplary embodiment of the present application is shown;
[0087] Figure 6c A schematic diagram of a search result page provided by an exemplary embodiment of the present application is shown;
[0088] Figure 7a A schematic diagram showing another method of adding search results provided by an exemplary embodiment of the present application is shown;
[0089] Figure 7b A schematic diagram of another search result page provided by an exemplary embodiment of the present application is shown;
[0090] Figure 8a A schematic diagram showing another method of adding search results provided by an exemplary embodiment of the present application is shown;
[0091] Figure 8b A schematic diagram of another search result page provided by an exemplary embodiment of the present application is shown;
[0092] Figure 9 A schematic diagram showing a sharing object list provided by an exemplary embodiment of the present application is shown;
[0093] Figure 10 A schematic diagram of a method for arranging and displaying search results provided by an exemplary embodiment of the present application is shown;
[0094] Figure 11 A schematic structural diagram of a message processing device provided by an exemplary embodiment of the present application is shown;
[0095] Figure 12 A structural diagram of a message processing device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0096] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0097] The embodiments of the present application relate to instant messaging (IM). Instant messaging refers to related services that can send and receive Internet messages instantly. With the rapid development of computer communication technology, the functions of instant messaging are becoming increasingly rich, and multiple functions such as email, blogs, music, television and games have gradually been integrated. Instant messaging is no longer a simple chat tool. It has developed into an integrated information platform that integrates communication, information, entertainment, e-commerce, office collaboration and corporate customer service. An instant messaging session refers to a session initiated by two or more users with the help of an instant messaging application (for example, QQ, WeChat, enterprise WeChat, map applications with social interaction functions, game applications, etc.). Instant messaging sessions can be divided into individual sessions and group chat sessions. The so-called individual session refers to an instant messaging session between two users. The so-called group chat session refers to an instant messaging session between two or more users. The conversation messages generated between the users participating in the same instant messaging session are displayed in the instant messaging session page in the form of a message stream.
[0098] The embodiments of the present application also involve searching. Searching, also known as retrieval, refers to the process of obtaining search results that match the search content by entering search content (such as search keywords, search queries) and running a search engine. For example, in order to retrieve the playback resources of a certain movie, you can enter some search content related to the movie (such as the name of the movie, the names of the actors in the movie, the names of the characters that appear in the movie, etc.). The search engine performs a search operation on the Internet based on the search content, thereby obtaining the playback resources of the movie (or reputation, introduction, etc.).
[0099] Practice has found that there is currently a lack of effective interactive search methods for search needs in instant messaging conversation scenarios, which makes the current search path long and the search efficiency low. Based on this discovery, the embodiments of the present application propose a message processing solution. The solution proposes that when a search event occurs in the instant messaging conversation page (such as triggering a search entry or entering a search character, etc.), a search window is displayed. Entering search content in the search window will display N (N is an integer) search results matching the search content in the search window. In addition, when a target search result from the N search results is selected, the target search result is displayed as a message in the instant messaging conversation page. In the solution proposed in the embodiments of the present application, if any user participating in the instant messaging conversation generates a search need while editing an instant messaging conversation message, they can quickly search and obtain the corresponding search results in the instant messaging application. This shortens the user's path to the search results and helps users obtain the desired search results more quickly. In addition, the search results can be displayed in the form of messages in the instant messaging conversation page, so that the search results triggered in the instant messaging conversation page can be quickly shared with other users participating in the instant messaging conversation. This provides a new interactive method for conversation search, improving search efficiency and the efficiency of sharing search results.
[0100] The message processing solution proposed in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0101] Figure 1 The flowchart of a message processing method provided by an exemplary embodiment of the present application is shown; the process of the message processing method of the embodiment of the present application can be executed by the terminal device used by any user participating in the instant messaging session. Figure 1 As shown, the message processing method may include the following steps S101 to S103:
[0102] S101: Display an instant messaging session page, wherein a message editing area is provided in the instant messaging session page.
[0103] The instant messaging session page is displayed on the terminal device used by any user participating in the instant messaging session. The instant messaging session page displays the instant messaging session message stream generated between the users participating in the same instant messaging session, and the instant messaging session message stream contains at least one session message. Take the individual session between user A and user B as an example, Figure 1As shown, the terminal device used by user B displays an instant messaging session page 1011 between user B and user A. As shown in the figure, the instant messaging session page 1011 displays the identifier of the object of the instant messaging session with user B (i.e., the identifier of user A "XXX friend"). The instant messaging session page 1011 includes a message display area 1012 and a message editing area 1013; wherein:
[0104] The message display area 1012 is used to display the instant messaging session message stream 10121 generated between the users participating in the instant messaging session. The instant messaging session message stream 10121 includes at least one session message; for example, Figure 1 As shown, the instant messaging session message stream 10121 includes a session message 101211 edited and sent by user A, and a session message 101212 edited and sent by user B;
[0105] Message editing area 1013 is used to edit and display the edited conversation message. Message editing area 1013 may include a message input box 10131 and a keyboard area 10132. Message input box 10131 is used to receive input of the conversation message, while keyboard area 10132 is used to edit the conversation message and enter it into message input box 10131. It should be noted that keyboard area 10132 does not necessarily need to be present in message editing area 1013. For example, keyboard area 10132 may be folded and displayed within message editing area 1013. When message input box 10131 is triggered to indicate input intent, keyboard area 10132 is expanded and displayed within message editing area 1013. Alternatively, if a hardware keyboard is connected to the terminal device, keyboard area 10132 is not included in message editing area 1013, and content in message input box 10131 is entered using the hardware keyboard.
[0106] Continue to see Figure 1 , a return item 1024 is also displayed in the search window 1021; when the return item 1024 is selected, the search window 1021 is closed and the instant messaging session page is displayed again.
[0107] S102: If a search event exists in the message editing area, a search window is output.
[0108] There is often a search demand in an instant messaging session scenario. At this time, any user participating in the instant messaging session can initiate a search event on the instant messaging session page to trigger the search process. Specifically, the user can initiate a search event in the message editing area in the instant messaging session page to trigger the search process. When there is a search event in the message editing area, the terminal device outputs a search window. The search window is a window used to perform search operations and to display search results. In one embodiment, the search window may be a window in the instant messaging session page, that is, the terminal device can output the search window in the instant messaging session page, and the search window can be fully or partially displayed in the instant messaging session page in the form of a floating layer. In another embodiment, the search window may be a window independent of the instant messaging session page, that is, the terminal device can use a search page independent of the instant messaging session page to display the search window; the embodiment of the present application does not limit the specific display form of the search window. Such as Figure 1 As shown, when a search event is generated in the message editing area, a search window 1021 is displayed in a floating form in the instant messaging session page, wherein the search window 1021 includes a search content input area 1022 and a result display area 1023; wherein, the search content input area 1022 is used to input the search content, such as inputting "XX movie", "XXX", etc.; the result display area 1023 is used to display N search results obtained by retrieving the search content, where N is an integer.
[0109] In the message editing area, you can generate a search event by selecting a search entry and / or entering search characters. Figure 2a 、 Figure 2b 、 Figure 2c 、 Figure 2d as well as Figure 2e To explain in detail some specific implementation processes of generating search events in the message editing area.
[0110] In one embodiment, a search event is generated by selecting a search entry. Specifically, the message editing area 1013 includes a search entry; when the search entry is selected, it indicates that the user participating in the instant messaging session has a search demand, and a search event is generated in the message editing area. The search entry may include a search icon and / or a search option, and the search entry may be set in at least one of the following ways: if the message editing area includes a message input box, the search entry is set in the message input box; if the message editing area includes an operation menu, the search entry is set in the operation menu; if the message editing area includes a message input box and input characters are displayed in the message input box; if selecting the input characters triggers the display of the option bar, the search entry is set in the option bar.
[0111] The following details the various ways to set up the search entry:
[0112] In one implementation, the search entry is provided in the form of a search icon in the message editing area 1013 of the instant messaging session page; specifically, the search icon is provided in the message input box 10131 of the message editing area 1013; when the user selects the search icon in the message input box 10131, a search event is generated in the message editing area 1013. Figure 2a , Figure 2a A schematic diagram of a search entry provided by an exemplary embodiment of the present application is shown; Figure 2a As shown, the message input box 10131 includes a search icon 101311; if the user selects the search icon 101311, it means that a search event is generated in the message editing area 1013.
[0113] In another implementation, the search entry is provided in the form of a search option in the message editing area 1013 of the instant messaging session page; when the user selects the search option in the message editing area 1013, a search event is generated in the message editing area 1013. Specifically, the message editing area 1013 of the instant messaging session page includes an operation menu, and the search entry is provided in the form of a search option in the operation menu. It is understandable that the operation menu may include other options (such as a shooting option, a red envelope option, etc.) in addition to the search option. It should be noted that the operation menu may be displayed directly in the instant messaging session page or indirectly on the instant messaging session page. Figure 2b Describes the location of the operation menu. Figure 2b , Figure 2b FIG. 1 shows a schematic diagram of another search entry provided by an exemplary embodiment of the present application; FIG. Figure 2bAs shown, on the right side of the message input box 10131 in the message editing area 1013 included in the instant messaging session page 1011, a more icon 10133 is displayed, and the more icon 10133 is used to fold and display some other options; when the more icon 10133 is selected, an operation menu 1014 is displayed in the message editing area 1013 in a floating form, and the operation menu 1014 displays the options folded and displayed in the more icon 10133 (for example, transfer options, voice call options, camera options, search options 10141, etc.); in addition, the operation menu 1014 It can also be displayed directly on the instant messaging session page. Specifically, the operation menu 1014 can be displayed directly below the message input box 10131. The operation menu 1014 includes at least one option, and the search option 10141 is displayed directly on the operation menu as an option. Alternatively, the operation menu includes a more icon 10133. When the more icon 10133 is selected, it triggers the display of the options window 1015. The options window 1015 includes at least one hidden option, wherein the search option 10141 is set as a hidden option in the options window 1015. In summary, the operation menu 1014 can be displayed directly or indirectly on the instant messaging session page. Similarly, the search options included in the search entry can be displayed directly or indirectly on the operation menu 1014. In other words, the search option 10141 included in the search entry can be displayed directly or indirectly on the instant messaging session page. The embodiments of the present application do not limit the specific locations of the operation menu 1014 and the search option 10141.
[0114] In another implementation, the search entry can also be set in an option bar associated with the input characters, where the input characters refer to the input characters entered by the user in the message input box 10131 contained in the message editing area 1013; when the user selects the search option in the option bar, it means that the search entry is selected, that is, a search event is generated in the message editing area 1013. The so-called option bar associated with the input characters refers to the option bar that is output by triggering the input characters displayed in the message input box. Specifically, the message editing area includes a message input box, and the input characters are displayed in the message input box (the input characters are actively entered by the user with the search requirement); when the input characters are selected, the option bar is triggered to be displayed, and the search entry is set in the option bar. The way to select the input characters in the message input box may include but is not limited to: double-clicking (e.g., tapping the input character twice in succession with a 1-second interval between the two taps), long pressing (e.g., tapping the input character continuously with a 2-second interval), etc.; in addition, the selected input characters may include part of the input characters displayed in the message input box or all of the input characters displayed in the message input box, which is not limited in this embodiment of the present application; and the selected input characters may be displayed in the search box contained in the search window. Please refer to Figure 2c , Figure 2c FIG. 1 shows a schematic diagram of another search entry provided by an exemplary embodiment of the present application; FIG. Figure 2c As shown, the input characters "XX, secret XX" 10138 are displayed in the message editing area 1013; when part of the input characters "secret" 101381 in the input characters "XX, secret XX" 10138 is selected, an option bar 202 is displayed in the area where the message input box is located, and the option bar 202 includes at least one option (for example, a copy option, a multiple selection option, a delete option, etc.), and a search option 2021 is set as an option in the option bar 202; when the search option 2021 is clicked, a search window 1021 is displayed in the instant messaging session page, wherein the search box contained in the search window displays the input characters "secret" 101381 selected in the message input box. It should be noted that, in addition to the search entry described above being set in the option bar associated with the input characters, the search entry can also be set in the option bar associated with the conversation message. The conversation message here can be a message edited and sent by any user participating in the same instant messaging session. Specifically, the instant messaging session page includes a message display area, and the instant messaging session message stream displayed in the message display area includes at least one conversation message. When the message content in any conversation message is selected, the option bar is displayed on the instant messaging session page, and the search entry is set in the option bar. Please refer to Figure 2d , Figure 2d FIG. 1 shows a schematic diagram of another search entry provided by an exemplary embodiment of the present application; FIG. Figure 2d As shown, when any conversation message (such as conversation message 201) in the instant messaging conversation page is selected, an option bar 202 is displayed in the area where the selected conversation message is located. The option bar 202 includes at least one option (for example, a copy option, a multiple selection option, a delete option, etc.), and a search option 2021 is set as an option in the option bar 202; when the search option 2021 is clicked, a search window 1021 is displayed in the instant messaging conversation page.
[0115] In another embodiment, a search event is generated by inputting a search character. Specifically, by inputting a search character in the message input box on the instant messaging session page, a search event can be generated in the message editing area. The search character can refer to a character or string that carries a search entry, such as the character "#", the character "!", the string "XX&X", etc. By clicking the search character in the keyboard area 10132 (or the hardware keyboard connected to the terminal device), that is, inputting the search character in the message input box, a search event can be generated. See Figure 2e , Figure 2e FIG. 1 shows another schematic diagram of generating a search event provided by an exemplary embodiment of the present application; FIG. Figure 2eAs shown, the message editing area 1013 includes a keyboard area 10132. If the user clicks the "#" key in the keyboard area 10132, a search event is generated, and a search window is displayed. Of course, in addition to entering search characters in the keyboard area, search characters can also be entered on an external hardware keyboard connected to a terminal device (such as a computer). The embodiment of the present application does not limit the specific method of entering search characters.
[0116] From the above description, it can be seen that the user can generate a search event in the message editing area contained in the instant messaging session page through the above simple operations in the instant messaging session page, which makes the operation of triggering the search event simple and improves the convenience of user operation.
[0117] S103: Enter search content in the search window, and display N search results matching the search content in the search window, where N is an integer.
[0118] In one implementation, the search window includes a search content input area, which includes a search box and a history display area, and the history display area is used to display historical search content; then, the method of entering search content in the search window may include: entering the historical search content selected in the history display area in the search box. Figure 3a , Figure 3a FIG. 1 shows a schematic diagram of inputting search content in a search window provided by an exemplary embodiment of the present application; FIG. Figure 3a As shown, search window 1021 includes a search input area 1034, which includes a search box 10341 and a history display area 10342. History display area 10342 displays historical search content that has been searched at previous moments, allowing users to select historical search content from history display area 10342 for search. Methods for selecting historical search content from history display area 10342 include, but are not limited to, clicking on the historical search content or dragging the historical search content into the search box. This embodiment of the present application does not limit the method for selecting historical search content. For example, at a previous moment, a user searched for search content such as "XXXX good-looking" or "XX like XX." When a search event is generated in the message editing area of the instant messaging session page, the history display area of the output search window displays the historical search content: "XXXX good-looking" or "XX like XX." At this time, if the user selects the historical search content "XXXX good-looking," the search box displays the search content "XXXX good-looking" and at least one search result matching the search content "XXXX good-looking."
[0119] In another implementation, the method of entering search content in the search window may include: entering new search content in the search box. Figure 3b , Figure 3b FIG. 1 shows another schematic diagram of inputting search content in a search window provided by an exemplary embodiment of the present application; FIG. Figure 3b As shown, the user can also enter new search content in the search box as the search content entered in the search window instead of selecting historical search content from the history display area 10342; it should be noted that in the process of continuously entering the search content, multiple recommended content about the search content can be displayed in real time in the search window, so that when there is content that the user wants to search for among the multiple recommended contents, the user does not need to continue entering, but only needs to select the desired recommended content to enter the search content in the search box, wherein the multiple recommended contents may be recommended according to the popularity parameters of the recommended content that matches the search content on the Internet in the current time period, for example, the popularity parameters may be the number of clicks, views, likes, etc. of the recommended content in the current time period; or, the multiple recommended contents are recommended based on the user's historical records at historical moments, and the historical records may include historical search content, historical browsing content, etc., which is not limited in this embodiment of the present application. For example, when entering "hidden corner" (search content) in the search box, when the user enters the word "hidden", recommended content containing the word "hidden" will be displayed in the search window (for example, hidden corner, XX hidden XX, XXX hidden XX, etc.). At this time, the user can directly select "hidden corner" from the recommended content without having to continue entering the keywords "corner" in the search box.
[0120] It should be noted that in addition to the text content described above, the search content can also include but is not limited to: voice, picture, text, etc. Take the search content as voice (or picture) as an example to explain the process of entering voice (or picture) in the search window: See Figure 3c , Figure 3c FIG. 1 shows another schematic diagram of inputting search content in a search window provided by an exemplary embodiment of the present application; FIG. Figure 3c As shown, the search window includes a voice identifier 301. When the voice identifier 301 is selected, voice input is triggered, and the input voice can also be converted into text form, etc., wherein the method of selecting the voice identifier 301 may include but is not limited to long pressing the voice identifier, etc. In addition, as Figure 3cAs shown, the search window also includes a more logo 302. When the more logo 302 is selected, a hidden window 303 is displayed in the search window in a floating form. The hidden window 303 includes some folded options, such as picture option 3031, music option 3032, etc., wherein, when the picture option 3031 is selected, the user can enter the picture locally cached on the terminal device or immediately obtained from the Internet into the search box as the search content to search for the picture; similarly, when the music option 3032 is selected, the user can enter the audio locally cached on the terminal device or immediately obtained from the Internet into the search box as the search content to search for the audio. Of course, options such as picture option 3031 and music option 3032 can also be directly displayed in the search window similar to the voice logo 301, and this embodiment of the present application is not limited to this.
[0121] After the search content is entered into the search box of the search window, the result display area contained in the search window can display N search results that match the search content, and the N search results include multiple application categories and at least one search result under each application category, where N is an integer; when N is 0, it means that there is no search result that matches the search content. At this time, a prompt message can be output to prompt the user to adjust the search content and search again to obtain search results that match the search content. The above-mentioned application categories may include but are not limited to: videos, articles, public accounts, mini-programs, etc. For example, if the search content entered in the search box is "Hidden Corner", then at least one search result that matches "Hidden Corner" will be displayed in the result display area of the search window, where the search result may be a result containing all or part of the keywords in "Hidden Corner", for example, the title or content of the article contains all or part of the keywords in "Hidden Corner", or the title or comments of the video contain all or part of the keywords in "Hidden Corner", etc. For example, please refer to Figure 4a , Figure 4a FIG. 1 shows a schematic diagram of displaying search results provided by an exemplary embodiment of the present application; FIG. Figure 4a As shown, the result display area 1023 contains N search results, where N is an integer. For example, the search result is the article "Secret XX". It should be noted that due to the limited length of the display screen of the terminal device, the N search results contained in the result display area of the search window may not all be displayed on the display screen. In this case, a sliding shaft 401 is provided in the search window. By sliding the sliding shaft 401, the result display area 1023 of the search window can slide to display the folded search results. It is understandable that in addition to the sliding display method, the search window can also set "More Options" at the bottom. When "More Options" is clicked, all or part of the folded search results will be displayed. See Figure 4b , Figure 4bFIG. 1 shows another schematic diagram of displaying search results provided by an exemplary embodiment of the present application; FIG. Figure 4b As shown, at the bottom of the search window is a "more ∨" mark 402. When the "more ∨" mark 402 is selected, part or all of the folded search results will be displayed. When the "more ∨" mark 402 is clicked again, multiple search results can be hidden, which makes it easier to browse the search results.
[0122] Specifically, N search results are clustered into M application categories according to the source. The so-called clustering according to the source means: if the first search result (the first search result refers to any one of the M search results) is retrieved from the first application category (the first application category refers to any one of the M application categories), then the first search result is clustered into the first application category. Each application category includes at least one search result, M is an integer; the result display area is divided into M sub-areas; then the logos of the M application categories can be displayed respectively in the M sub-areas, and the logo of at least one search result under each application category can be displayed in the sub-area corresponding to each application category. Among them, the application categories of the search results may include but are not limited to: official accounts, articles, videos, video accounts, mini-programs, etc. Please refer to Figure 4b , N search results are clustered according to their sources into application categories - film and television works 403, mini-programs 404..., where the sub-area where film and television works 403 is located includes the identifiers of various videos (such as movies and videos) under the application category film and television works that match the search content, and the sub-area where mini-programs 404 is located includes the identifiers of mini-programs under the application category mini-programs that match the search content. It should be noted that the identifier of the search result or the identifier of the application category can be the title, icon, etc. of the search result (or application category), and this embodiment of the application does not limit this.
[0123] In addition, the N search results in the search window can be displayed in a variety of ways. Specifically, the identifiers of the M application categories can be displayed in the result display area in at least one of the following ways:
[0124] (1) Display the logos of M application categories in M sub-areas in a random order.
[0125] (2) Arrange and display M application categories in M sub-areas in descending order of the user's attention to the application category. The user's attention to the application category is obtained based on the user's historical behavior statistics; the user's historical behavior includes at least one of the following: the use behavior of the application category, the search behavior of the application category, and the download behavior of the application category. In one embodiment, the user here can refer to the massive users that are widely present on the Internet; in this case, the user's historical behavior can include the use behavior of the massive users on the application category, the search behavior of the massive users on the application category, and the download behavior of the massive users for the corresponding category; for example, among application categories A, application category B, and application category C, the usage rate of application category A by the massive users is the highest, indicating that application category A has the highest attention, and application category A can be arranged and displayed before application category B and application category C. For another example, the number of times the massive users search for the same application category, etc., if the number of times the same application category is searched is greater, it means that the attention to the application category is higher, and conversely, the number of times the same application category is searched is less, it means that the attention to the application category is lower. For example, a large number of users download search results under a certain application category a large number of times, indicating that the application category has a high level of attention; the logo of the application category with high attention is displayed before (or above) the logo of the application category with low attention. In another embodiment, the user may refer to a user holding a terminal device in the embodiment of the present application, that is, any user participating in an instant messaging session; in this case, the user's historical behavior may include: the user's use behavior of the application category, the user's search behavior for the application category, and the user's download behavior for the application category; for example, the number of times the user uses (such as opening, browsing) the application category in the historical time period, such as the number of times the user clicks on the public account in the historical time period is significantly higher than the number of times the user clicks on other application categories, indicating that the public account has a higher level of attention than other application categories, and the public account logo is displayed before (or above) the logos of other application categories. For example, the number of times the user searches for the application category in the historical time period; for example, whether the user has downloaded a certain application category in the historical time period; and so on.
[0126] It is understandable that the search results in the sub-area corresponding to each application category are also arranged and displayed in a certain order. Specifically, assuming that any application category among the M application categories is identified as the i-th application category, i is an integer and i≤M; the method of displaying the identification of at least one search result under the i-th application category in the sub-area corresponding to the i-th application category may include but is not limited to at least one of the following: (1) displaying the identification of at least one search result under the i-th application category in the sub-area corresponding to the i-th application category in a random order. (2) arranging and displaying the identification of at least one search result under the i-th application category in the sub-area corresponding to the i-th application category in descending order of the degree of matching between each search result and the user's historical behavior. Specifically, the method of displaying each search result in the sub-area under the application category is the same as the method of displaying the identification of the application category described above. In the sub-area under the same application category, the identification of the search result with higher attention popularity is displayed before (or above) the identification of the search result with lower attention popularity. The specific implementation process of the display method of each search result under the same application category can be referred to the relevant description of the display method of the identification of the application category described above, which will not be repeated here. In addition, the identifiers of each application category and the identifiers of each search result can be mixed and arranged. Here, each search result is the search result under each application category. Specifically, the mixed arrangement can be based on factors such as the category weight of each search result or application category, the timeliness of the search result, etc., combined with manual rules. For example, the manual rules can be shown in Table 1, where:
[0127] Table 1 Artificial rules
[0128]
[0129] According to the manual rules shown in Table 1, when arranging the search results, tool-related search results can be prioritized before other search results. Tool-related search results can refer to search results that can help users find information, such as mini-programs for finding air tickets. Search results that the user has used in the past can be arranged and displayed before other relevant search results. Other relevant search results can refer to results such as text with the same keywords as the search content. Of course, the manual rules shown in Table 1 can also be changed, and this embodiment of the application does not limit this.
[0130] In an embodiment of the present application, a search window is displayed when a search event occurs in the message editing area of an instant messaging session page. A search event can be generated in the message editing area of the instant messaging session page by triggering a search entry or entering search characters. After entering search content in the search window, N search results matching the search content are displayed in the search window, where N is an integer. Through this process, any user participating in an instant messaging session can proactively trigger a search event in the message editing area of the instant messaging session page when a search request is made, thereby quickly performing a search within the instant messaging application and obtaining at least one search result corresponding to the search content. This shortens the user's path to search results and helps users more quickly obtain desired search results.
[0131] The embodiment of the present application also supports displaying the target search results in the result display area in the form of conversation messages on the instant messaging conversation page; for details, please refer to Figure 5 , Figure 5 The flowchart of another message processing method provided by an exemplary embodiment of the present application is shown; the process of the message processing method of the embodiment of the present application can be executed by the terminal device used by any user participating in the instant messaging session. Figure 5 As shown, the message processing method includes but is not limited to the following steps S501 to S505:
[0132] S501: Display an instant messaging session page, wherein a message editing area is provided in the instant messaging session page.
[0133] S502: If a search event exists in the message editing area, a search window is output.
[0134] S503: Enter search content in the search window, and display N search results matching the search content in the search window, where N is an integer.
[0135] It should be noted that the specific implementation process of steps S501 to S503 can be found in Figure 1 The detailed description of the implementation process of step 101 to step S103 is omitted here.
[0136] S504: When a target search result among the N search results is selected, the target search result is displayed in a message form in the instant messaging session page.
[0137] The target search result refers to any one or more search results displayed in the results display area of the search window. When a target search result is selected, it is added to the instant messaging session page that triggered the search event and displayed as a message within the instant messaging session page. This allows multiple users participating in the same instant messaging session to view, use, and edit the search results, achieving the integration of the instant messaging session and search scenarios, effectively improving the quality of instant messaging sessions and search efficiency.
[0138] S505: Display a search result page corresponding to the target search result in the instant messaging application.
[0139] In steps S504-S505, after obtaining N search results in the search window, it is also supported to display part or all of the N search results in the form of messages in the instant messaging session page. The instant messaging session page here is the session page to which the message editing area that triggers the search event belongs; and when the target search result displayed in the instant messaging session page is selected, the search result page corresponding to the target search result can be displayed, so that multiple users participating in the same instant messaging session can view the search results. Among them, the application category in the result display area, the search results under the application category, the application category and the search results under the application category can all be added to the instant messaging session page; in other words, the target search result may be an application category, or a search result under an application category, or an application category and a search result under an application category; depending on the target search result in the instant messaging session page, the content displayed on the search result page is also different. Among them:
[0140] In one implementation, both the application category and the search results under the application category may be added to the instant messaging session page. Specifically, the manner of adding both the application category and the search results under the application category to the instant messaging session page may include, but is not limited to, at least one of the following:
[0141] (1) An aggregation mark is displayed in the result display area. When the aggregation mark is selected, it means that all N search results (application categories and search results under application categories) are selected, and the target search results include N search results. Figure 6a For example, Figure 6a FIG. 1 shows a schematic diagram of adding search results provided by an exemplary embodiment of the present application; FIG. Figure 6aAs shown, an aggregation mark 601 is displayed in the result display area of the search window. When the aggregation mark 601 is selected, it means that at least one search result (application category and search results under the application category) matching the search content is selected, and the first target conversation message is displayed in the instant messaging conversation page, and the first target conversation message carries the aggregation mark.
[0142] (2) The search window contains a hidden option. When the hidden option is triggered, the search window is hidden, wherein the message input box in the instant messaging session page is set as the search box in the hidden search window; then the aforementioned input of search content in the search window can be understood as inputting search content in the message input box, and the search content contains search characters. For the relevant description of the search characters here, please refer to the relevant description shown in step S102. For example, when "secret corner" is entered in the message input box, the search content actually includes "#secret corner", and "#secret corner" can be understood as the aggregation identifier in (1) above; when the search content containing the search characters is sent to the instant messaging session page in the form of a message, it indicates that the application category and the search results under each application category are added to the instant messaging session page. Please refer to Figure 6b , Figure 6b FIG. 1 shows another schematic diagram of adding search results provided by an exemplary embodiment of the present application; FIG. Figure 6b As shown, when a search character 6021 is entered in the message input box on the instant messaging session page, a search event is generated in the message editing area; a search window is output, and the search window includes a hide option 602. When the hide option 602 is selected, the search window is collapsed downward to hide the search window. At this time, the message input box on the instant messaging session page is set as a search box of the hidden search window; after the search content is entered in the message input box, the search content actually includes the search character and the part of the content entered by the user, as shown in FIG. Figure 6b As shown, the search content 603 at this time includes the search character "#" 6021 and the partial content "hidden corner" 6022 input by the user; when the search content is sent, the search content is displayed in the instant messaging session page in the form of a message.
[0143] In addition, when the first target conversation message (or the search content containing the search characters) in the instant messaging conversation page is clicked, a search result page is displayed; the search result page includes the identifiers of N search results that match the search content, that is, the search result page includes the identifier of the application category and the identifiers of each search result under the application category. For example, see Figure 6c , Figure 6c A schematic diagram of a search result page provided by an exemplary embodiment of the present application is shown; Figure 6cAs shown, when the first target conversation message (the search content containing the search character) in the instant messaging conversation page is selected, the instant messaging application displays a search results page, which includes multiple application categories matching the "secret corner" and multiple search results under each application category. It is understandable that if some search results are folded and displayed in the search results page, the "more ∨" mark 604 can be clicked to display the folded search results in the visual interface; of course, the operation method for causing the folded search results to be displayed on the display screen is not limited to clicking the "more ∨" mark described above. This embodiment of the application uses the above-mentioned clicking of the "more ∨" mark as an example, which does not limit the embodiment of the application.
[0144] In another implementation, application categories can be added separately to the instant messaging session page. Specifically, any application category among the M application categories is represented as the i-th application category, where i is an integer and i≤M; when the identifier of the i-th application category is selected, it indicates that all search results under the i-th application category are selected, and the target search results include all search results under the i-th application category; the second target session message is displayed in the instant messaging session page, and the second target session message carries the identifier of the i-th application category. For example, under the application category - mini program, mini program A, mini program B, and mini program C that match the search content are included. Then, when the application category - mini program is selected, it means that mini program A, mini program B, and mini program C are selected. See Figure 7a , Figure 7a FIG. 1 shows another schematic diagram of adding search results provided by an exemplary embodiment of the present application; FIG. Figure 7a As shown, the result display area includes the application category - film and television work logo 701, the application category - public account logo...; when the film and television work logo 701 is selected, a sending confirmation window is displayed in a floating layer above the instant messaging session page, wherein the display form of the sending confirmation window may include but is not limited to Figure 7a The send confirmation window 702 and the send confirmation window 703 are shown; when the send indicator 704 contained in the send confirmation window 702 or the send confirmation window 703 is selected, the second target conversation message is displayed in the instant messaging session page, and the second target conversation message carries the identifier 701 of the film and television work. In addition, when the second target conversation message in the instant messaging session page is selected, a search result page is displayed in the instant messaging application, and the search result page contains various search results matching the search content under the application category; for details, please refer to Figure 7b , Figure 7b FIG. 1 shows a schematic diagram of another search result page provided by an exemplary embodiment of the present application; FIG. Figure 7bAs shown, when the second target conversation message in the instant messaging session page is selected, a search results page is displayed, which displays multiple search results under the application category "XX-Film and Television Works." Furthermore, the search results page includes a return item 1024. When return item 1024 is selected, the search results page is closed and the instant messaging session page is displayed again. It should be noted that each search result displayed in search results page 705 can still be individually added to the instant messaging session page; alternatively, any search result in the search results page can be clicked to view it. For example, when any search result in the search results page is selected, the details page corresponding to the selected search result is displayed, which contains the specific information (or content) contained in the search result.
[0145] In another implementation, search results under the application category can be added separately to the instant messaging session page. Specifically, the jth search result among the N search results in the result display area is added to the instant messaging session page, where j is an integer and j≤N, and the jth search result refers to any one of the N search results; a third target session message is displayed on the instant messaging session page, and the third target session message carries the identifier of the jth search result. For example, the result display area contains search results A, B, and C; if search result C is selected, the third target session message is displayed on the instant messaging session page, and the third target session message carries the identifier of search result C. See Figure 8a , Figure 8a FIG. 1 shows another schematic diagram of adding search results provided by an exemplary embodiment of the present application; FIG. Figure 8a As shown, when the search result 801 under Film and Television Works in the result display area is selected, the instant messaging application displays a send confirmation window 702 (or send confirmation window 703); when the send icon in the send confirmation window 702 is clicked, the third target conversation message is displayed in the instant messaging session page. It should be noted that when the third target conversation message is selected, the search result page is displayed in the instant messaging application, and the search result page displays detailed information about the search result carried in the third target conversation message; for example, Figure 8a If the search result is a video, when the video is clicked to play, the specific content of the video will be played on the search results page. Figure 8b , Figure 8bA schematic diagram of another search result page provided by an exemplary embodiment of the present application is shown. In addition, an application category identifier is displayed in the third target conversation message. When the third target conversation message is selected, the identifier indicating the application category carried by the third target conversation message is selected. At this time, the instant messaging application displays a search result page, which includes multiple search results matching the search result under the application category. The search result selected as the target search result may be displayed preferentially before or above other search results. Figure 8b When the XX-film and television work logo 802 in the third target conversation message is clicked, multiple search results are displayed on the search result page, among which the search result for "Ministry of Foreign Affairs responds: XXX" is arranged and displayed at the top position.
[0146] In addition, the target conversation messages (first target conversation message, second target conversation message and third conversation message) added to the instant messaging session page also support being shared (or forwarded) to other instant messaging applications or the same instant messaging application. The process of sharing the target conversation message is essentially the target search result being shared or forwarded. For example, the target search result displayed in the QQ conversation page between user B and user A can be shared to the QQ conversation page between user B and user C, or the target search result displayed in the QQ group chat conversation page in which user B participates can be shared to the WeChat group chat conversation page in which user B participates. This embodiment of the present application does not elaborate on this. Specifically, when the target conversation message displayed in the instant messaging session page is triggered to be shared, a sharing object list is output, and the sharing object list contains at least one sharing object; a target conversation message is sent to the target sharing object, and the target sharing object is any sharing object selected in the sharing object list. Among them, the operation of triggering the sharing of the target conversation page in the instant messaging session page may include but is not limited to: long pressing the target conversation message, double-clicking the target conversation message, etc. See Figure 9 , Figure 9 A schematic diagram of a sharing object list provided by an exemplary embodiment of the present application is shown; Figure 9 As shown, when the target conversation message 901 displayed in the instant communication conversation page between the sharer and user A is triggered to be shared, a sharing object list 902 is displayed, which includes at least one sharing object; assuming that the selected target sharing object is user C, the target conversation message 901 is displayed in the instant communication conversation page between the sharer and user C. It should be noted that, in addition to using Figure 9As shown, in addition to selecting the target sharing object from the sharing object list to share (or forward) the target conversation message, you can also drag the target conversation message from one conversation page to another conversation page by dragging and dropping to achieve sharing of the target conversation message. The embodiment of the present application does not limit the specific sharing operation of the target conversation message.
[0147] In an embodiment of the present application, a search window is displayed when a search event occurs on an instant messaging session page. The search event can be triggered by triggering a search entry or entering search characters. After entering search content in the search window, N search results matching the search content are displayed in the search window, where N is an integer. When a target search result is selected from the N search results, the target search result is displayed as a message on the instant messaging session page. Through this process, any user participating in an instant messaging session can quickly search and obtain at least one search result corresponding to the search content within the instant messaging application, shortening the user's path to search results and helping them more quickly obtain the desired search results. Furthermore, search results can be displayed as messages on the instant messaging session page, allowing search results triggered within the instant messaging session page to be quickly shared with other users participating in the instant messaging session. This provides a novel interactive method for session search, improving search efficiency and search result sharing efficiency. Furthermore, target session messages on the instant messaging session page can be shared or forwarded to other session pages within the instant messaging application or shared within other instant messaging applications, significantly improving data sharing efficiency and user experience.
[0148] It is understandable that the message processing scheme described in the above embodiments can be completed by the interaction between the terminal device, the server, or the terminal device and the server, wherein the terminal device may include but is not limited to: smart phones (such as Android phones, iOS phones, etc.), tablet computers, portable personal computers, mobile Internet devices (Mobile Internet Devices, referred to as MIDs), smart TVs and other devices. The embodiments of this application do not limit the type of terminal device. The terminal device includes a display screen, which can be a physical screen, a touch screen, etc. Various instant messaging applications can be installed and run in the terminal device. Instant messaging applications refer to applications for instant messaging and social interaction based on the Internet. Instant messaging applications may include but are not limited to: QQ, WeChat, Enterprise WeChat, map applications with social interaction functions, game applications, etc. The server 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, and big data and artificial intelligence platforms. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.
[0149] In addition, the aforementioned Figure 1 In the embodiment shown, each application category matching the search content and multiple search results under each application category can be arranged and displayed in the result display area according to the user's attention heat, wherein the user's attention heat to the application category is obtained based on the user's historical behavior statistics. Figure 10 Detailed description of the application categories and the backend (i.e., server backend, server) workflow for arranging and displaying the search results under the application categories in the result display area.
[0150] See Figure 10 , Figure 10 A schematic diagram of a method for arranging and displaying search results provided by an exemplary embodiment of the present application is shown; Figure 10In the flowchart of the arrangement and display of search results shown, the main process of arranging and displaying search results includes: ① Enter the search content in the search box, wherein the search box may include a search box displayed in the search window, or a message input box set as a search box. ② The terminal device (or server) performs intent analysis on the search content to obtain multiple application categories (or categories) that match the search content and the category weights corresponding to each category; wherein, the so-called intent analysis can be understood as analyzing the user's purpose or the information the user wants to retrieve based on the search content, and the category weights are used to indicate the importance of the category. Specifically, the classification database and thesaurus are used as category intent targets, and one or more target methods are used to identify the intent categories and the category weights of each intent category from the category intent targets. Among them, the classification database can be found in Figure 10 As shown, database 1001 includes a vocabulary list of articles 1002, a vocabulary list of public accounts 1003, a vocabulary list of mini-programs 1004, a vocabulary list of videos 1005, and other vocabulary lists. One or more target methods may include, but are not limited to: using manual rules to classify and label the categories (application categories) corresponding to the search content; or classifying and labeling each category based on actual user search behavior logs (such as user click behavior categories, for example, user click behavior records of application categories within a historical period); or combining pattern string matching with classification model algorithms such as FastText (Fast Text Classifier) and XGBoost (Distributed Gradient Boosting Library) to classify and label each category, etc. For example, the search content is subjected to intent category identification, and the weights of each category are obtained as follows: article weight 0.1%, public account weight 43%, mini-program weight 34%, video weight 12%, etc. ③ Each category is divided according to a set weight threshold, and some or all categories with category weights greater than or equal to the weight threshold are selected for category recall. The so-called recall of category results may refer to obtaining multiple search results under the category (application category). For example, it is known that the article weight is 0.1%, the public account weight is 43%, the mini program weight is 34%, the video weight is 12%, and the weight threshold is 20%. Then the public account weight is 43%> the mini program weight is 34%> the weight threshold is 20%> the video weight is 12%> the article weight is 0.1%, and multiple search results matching the search content under the public account and mini program are obtained. It should be noted that the recall method of category results is different depending on the category. The main recall methods may include but are not limited to: vocabulary recall, vector recall, inverted recall, etc.; specifically, the specific recall methods of category results under each category can be found in Table 2:
[0151] Table 2 Category recall method
[0152]
[0153]
[0154] After recalling the category results (search results under the application category) under each category (application category) according to the recall rules shown in Table 2, the embodiment of the present application also involves sorting each category, and sorting the category results under each category. As described in the aforementioned embodiment, each category and the category results under each category can be sorted mainly based on the user's historical behavior. Then, the specific implementation process of sorting each category and the category results under each category based on the user's historical behavior can follow the following two rules: ① Sort the recalled category results (i.e., search results) under each category. ② Sort each category. It should be noted that the user here can be a user holding a terminal device described in the embodiment of the present application for executing the message processing method, or the user here is a user widely present on the Internet; depending on the definition of the user, the historical behavior of the user on which the above two rules are based is not the same, and the definition of the attention heat indicated by the user's historical behavior is also different.
[0155] In one implementation, when the user is a user holding a terminal device for executing the message processing method described in the embodiment of the present application; ① Sorting the recalled category results under each category can be understood as: among multiple category results under the same category, the category results that the user has browsed at a historical moment can be displayed first; for example, the category is article, and the category results under the same article category include: article A, article B, and article C, among which article A is browsed by the user at a historical moment, then article A can be prioritized and displayed before article B and article C. ② Sorting each category can be understood as: statistics are taken on the user's historical behavior data to obtain the category type preferred by the user. For example, under the three categories of official accounts, articles, and mini-programs, if the user prefers official accounts, then the official accounts can be prioritized and displayed before articles and mini-programs. In more detail, the category results under the official accounts are displayed before the category results under the articles and the category results under the mini-programs.
[0156] In another implementation, when the user is a widely existing user on the Internet, the user's historical behavior includes the historical behavior of a large number of users on the Internet, and the attention paid to a certain category or category results under a category is related to the historical behavior of a large number of users; wherein, ① sorting the recalled category results under each category can be understood as: determining the category results that match the search content under the same category; arranging and displaying each category result in descending order according to the attention paid to each category result at the current moment. ② sorting each category can be understood as: sorting each category in descending order according to the attention paid to each category at the current moment. It should be noted that the attention paid to the category described above may be related to factors such as the number of times the user clicks on the category, the number of times the category is collected, and so on. Similarly, the attention paid to the category results may be related to factors such as the number of times the user clicks on the category results, the number of times the category results are collected, and so on.
[0157] In an embodiment of the present application, the identifiers of each application category and the search results under each application category displayed in the result display area can be arranged and displayed from high to low according to the popularity of the application category or search results, which enables users to browse the search results with higher popularity first, thereby improving the user experience.
[0158] The message processing solution provided in the embodiments of the present application can be applied to various Internet scenarios, including but not limited to:
[0159] 1. Online teaching scenario.
[0160] In an online teaching scenario, teachers and students are participating in the same instant messaging session. If the teacher wants to explain a certain knowledge point to the student, the teacher can trigger a search for the keyword "XXXX" for that knowledge point within the instant messaging session. For example, by clicking the search icon within the instant messaging session, or by typing search characters to bring up the search window, and then entering the keyword "XXXX" within the search window, search results matching the keyword "XXXX" will be obtained. These search results may be in the form of videos, text, book reviews, and so on. The teacher can then filter these search results to target search results and send them as a message to the instant messaging session with the student. This not only allows the teacher to better convey their content, but also allows the student to more quickly grasp the knowledge point being explained by the teacher. Furthermore, students can click on the conversation message sent by the teacher containing the target search result to quickly access the details of the target search result, gaining a more comprehensive understanding of the knowledge point, enhancing the instant messaging session experience, and improving the quality of online teaching.
[0161] 2. Meeting scene.
[0162] In a multi-person group or department meeting scenario, one or more participants may have a search need, such as using search results to persuade other participants. In this case, the participant can open an instant messaging session page with the other participants and generate a search event in the message editing area of the instant messaging session page by clicking a search icon or entering search characters in the message input box. The participant then searches for content in the output search window to obtain at least one search result that matches the search content. The participant then selects a target search result from the at least one search result and adds it to the instant messaging session page. This allows the participant who initiated the search to quickly convey their desired content to other participants, enriching the input content format of the instant messaging session. Accordingly, other participants only need to click the target search result in the instant messaging session page to view detailed information about the target search result in the output search result page (for example, if the target search result carries an application category identifier, the detailed information displayed on the search result page is at least one search result under the application category; for example, if the target search result carries a search result identifier, the search result page contains detailed information about the search result, etc.). This helps participants quickly obtain the target search result, improving meeting quality and user experience.
[0163] It can be understood that in addition to the Internet scenario described above (i.e., the group chat session scenario) that is suitable for the message processing solution provided in the embodiment of the present application, there are many other Internet scenarios (such as individual session scenarios) that can adopt the message processing solution provided in the embodiment of the present application to realize content search and sharing of search results in instant messaging session scenarios; the embodiment of the present application does not provide a detailed description of the message processing solutions in other Internet scenarios, and changes in the Internet scenarios will not limit the embodiments of the present application.
[0164] The above describes in detail the method of the embodiment of the present application. In order to facilitate better implementation of the above scheme of the embodiment of the present application, the device of the embodiment of the present application is provided below accordingly.
[0165] See Figure 11 , Figure 11 The schematic diagram of the structure of a message processing device provided by an exemplary embodiment of the present application is shown; the message processing device can be used as a computer program (including program code) running in a terminal device, for example, the message processing device can be an instant messaging application (such as QQ, WeChat, etc.) in the terminal device; the message processing device can be used to execute Figure 1 、 Figure 5 Some or all of the steps in the method embodiment shown. Figure 11 , the message processing device includes the following units:
[0166] The display unit 1101 is used to display the instant messaging session page, which includes a message editing area;
[0167] The processing unit 1102 is configured to output a search window if a search event occurs in the message editing area, input search content in the search window, and display N search results matching the search content in the search window, where N is an integer.
[0168] In one implementation, the search event in the message editing area includes at least one of the following:
[0169] The message editing area includes a search entry; when the search entry is triggered, a search event is generated in the message editing area;
[0170] The message editing area includes a message input box; when a search character is input in the message input box, a search event is generated in the message editing area.
[0171] In another implementation, the search portal includes a search icon and / or a search option; the search portal may be configured in at least one of the following ways:
[0172] If the message editing area includes a message input box, the search entry is set in the message input box;
[0173] If the message editing area includes an operation menu, the search entry is set in the operation menu;
[0174] If the message editing area includes a message input box, and input characters are displayed in the message input box; selecting the input characters triggers the display of the option bar, and the search entry is set in the option bar.
[0175] In another implementation, the search window includes a hidden option; the processing unit 1102 is further configured to:
[0176] When the hide option is triggered, the search window is hidden; wherein the message input box is set as the search box in the hidden search window;
[0177] The processing unit 1102 is specifically configured to:
[0178] Enter the search content in the message input box. The search content contains the search characters.
[0179] In another implementation, the processing unit 1102 is further configured to:
[0180] When the search content containing the search characters is sent to the instant messaging session page in the form of a message, if the search content in the form of a message is triggered, a search result page is displayed, which includes identifiers of N search results that match the search content.
[0181] In another implementation, the search window includes a result display area; the processing unit 1102 is specifically configured to:
[0182] Display N search results in the result display area;
[0183] N search results are clustered into M application categories according to their sources. Each application category includes at least one search result, where M is an integer. The result display area is divided into M sub-areas.
[0184] The processing unit 1102 is specifically configured to:
[0185] The identifiers of the M application categories are displayed in the M sub-areas respectively, and the identifier of at least one search result under each application category is displayed in the sub-area corresponding to each application category.
[0186] In another implementation, M application category identifiers are displayed in the M sub-areas, respectively, including at least one of the following:
[0187] Display the logos of the M application categories in the M sub-areas in a random order;
[0188] Arrange and display the M application categories in M sub-areas in descending order of users' attention to the application categories;
[0189] Any application category among the M application categories is denoted as the i-th application category, where i is an integer and i≤M;
[0190] Displaying an identifier of at least one search result under the i-th application category in the sub-area corresponding to the i-th application category includes at least one of the following:
[0191] Displaying the identifier of at least one search result under the i-th application category in a sub-area corresponding to the i-th application category in a random order;
[0192] Arrange and display the identifier of at least one search result under the i-th application category in the sub-area corresponding to the i-th application category in descending order of the degree of matching between the search results and the user's historical behavior;
[0193] The user's attention to the application category is obtained based on the user's historical behavior statistics; the user's historical behavior includes at least one of the following: usage behavior of the application category, search behavior of the application category, and download behavior of the application category.
[0194] In another implementation, the search window displays a return item; the processing unit 1102 is further configured to:
[0195] Selecting the Return option closes the search window and displays the instant messaging session page again.
[0196] In another implementation, the processing unit 1102 is further configured to:
[0197] When a target search result among the N search results is selected, the target search result is displayed in a message form in the instant messaging session page.
[0198] In another implementation, the search window includes a result display area; the result display area displays an aggregation indicator, and when the aggregation indicator is selected, it indicates that all N search results are selected, and the target search result includes N search results;
[0199] The processing unit 1102 is specifically configured to:
[0200] The first target session message is displayed on the instant messaging session page, where the first target session message carries the aggregation identifier.
[0201] In another implementation, N search results are clustered into M application categories according to their sources, each application category includes at least one search result, where M is an integer; any application category in the M application categories is denoted as the i-th application category, where i is an integer and i≤M; when the identifier of the i-th application category is selected, it indicates that all search results under the i-th application category are selected, and the target search results include all search results under the i-th application category;
[0202] The processing unit 1102 is specifically configured to:
[0203] The second target conversation message is displayed in the instant messaging conversation page, and the second target conversation message carries the identifier of the i-th application category.
[0204] In another implementation, the target search result is the j-th search result among N search results, where j is an integer and j≤N, and the j-th search result refers to any one of the N search results;
[0205] The processing unit 1102 is specifically configured to:
[0206] The third target conversation message is displayed on the instant messaging conversation page, and the third target conversation message carries the identifier of the j-th search result.
[0207] In this technical solution, by selecting the search result identifier in the result display area, a single search result can be shared, thereby improving the efficiency of search result sharing.
[0208] In another implementation, the processing unit 1102 is further configured to:
[0209] If the first target conversation message in the instant messaging conversation page is selected, a search result page is displayed, the search result page including N search result identifiers; or,
[0210] If the second target conversation message in the instant messaging conversation page is selected, a search result page is displayed, the search result page including identifiers of N search results under the i-th application category; or,
[0211] If the third target conversation message in the instant messaging conversation page is selected, a search result page is displayed, and the search result page includes detailed information of the j-th search result.
[0212] In another implementation, the target search result is displayed in the instant messaging session page in the form of a target conversation message, where the target conversation message is any message in the instant messaging message stream in the instant messaging session page; the processing unit 1102 is further configured to:
[0213] When the target conversation message is triggered to be shared, a sharing object list is output, and the sharing object list contains at least one sharing object;
[0214] Send a target conversation message to the target sharing object. The target sharing object is any sharing object selected in the sharing object list.
[0215] According to one embodiment of the present application, Figure 11 The various units in the message processing device shown can be individually or entirely combined into one or several other units to form a message processing device, or one (or some) of the units can be further divided into multiple functionally smaller units to form a message processing device, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In actual applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the message processing device may also include other units. In actual applications, these functions can also be implemented with the assistance of other units and can be implemented by the collaboration of multiple units. According to another embodiment of the present application, a message processing device that can be used to execute a message processing device can be run on a general-purpose computing device such as a computer that includes processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM). Figure 1 、 Figure 5 A computer program (including program code) that implements some or all of the steps in the method embodiment shown in FIG. Figure 11 The message processing device shown in the embodiment of the present application is implemented by the message processing device. The computer program can be recorded on a computer-readable recording medium, for example, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.
[0216] In an embodiment of the present application, the display unit 1101 is used to display an instant messaging session page in an instant messaging application. When the processing unit 1102 detects a search event in the instant messaging session page (for example, triggering a search entry or entering a search character in a message editing area, etc.), a search window is output. The search window can be displayed in a floating form on the instant messaging session page or the search window can be displayed in the form of an independent page; the user can enter search content in the search window, wherein the search content can be the search content newly entered by the user, or the search content is the historical search content selected in the history display area; the search window can display at least one search result matching the search content, and the search result can include an identifier of an application category, or an identifier of at least one search result under each application category; the target search result displayed in the search window supports being displayed in the instant messaging session page in the form of a target session message, wherein The target search result can be an identifier of a certain application category, an identifier of a search result under the application category, or an aggregate identifier (the aggregate identifier includes the application category and the search results under the application category); accordingly, when the target conversation message displayed in the instant messaging session page is selected, a search results page can be displayed, and the search results page is used to display detailed information of the target search result carried by the target conversation message. For example, when the target search result is an identifier of an application category, the search results page displays the identifier of at least one search result under the application category. Of course, the identifiers of these search results can still be added to the instant messaging session page. For example, when the target search result is a search result under a certain application category, the search results page displays detailed information of the search result, and so on; in addition, the target conversation message displayed in the instant messaging session page can also be shared (or forwarded) to another instant messaging session page or another application. Through the above process, when any user participating in the instant messaging session has a search need, he or she can quickly search and obtain the corresponding search results in the instant messaging application, which shortens the user's path to the search results and helps the user obtain the desired search results more quickly; in addition, the search results can be displayed in the form of messages on the instant messaging session page, which enables the search results triggered in the instant messaging session page to be quickly sent to other users participating in the instant messaging session, providing a new type of conversation search interaction method, improving search efficiency and search result sharing efficiency.
[0217] Figure 12 FIG1 shows a schematic diagram of a message processing device provided by an exemplary embodiment of the present application. Figure 12The message processing device includes a processor 1201, a communication interface 1202 and a computer-readable storage medium 1203. The processor 1201, the communication interface 1202 and the computer-readable storage medium 1203 can be connected via a bus or other means. The communication interface 1202 is used to receive and send data. The computer-readable storage medium 1203 can be stored in the memory of the message processing device. The computer-readable storage medium 1203 is used to store computer programs. The computer programs include program instructions. The processor 1201 is used to execute the program instructions stored in the computer-readable storage medium 1203. The processor 1201 (or CPU (Central Processing Unit)) is the computing core and control core of the message processing device, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function.
[0218] The embodiment of the present application also provides a computer-readable storage medium (Memory), which is a memory device in a message processing device for storing programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the message processing device and, of course, the extended storage medium supported by the message processing device. The computer-readable storage medium provides a storage space that stores the processing system of the message processing device. In addition, one or more instructions suitable for being loaded and executed by the processor 1201 are also stored in the storage space. These instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor.
[0219] In one embodiment, the message processing device may be the terminal device mentioned in the above embodiment; the computer-readable storage medium stores one or more instructions; the processor 1201 loads and executes the one or more instructions stored in the computer-readable storage medium to implement the corresponding steps in the above message processing method embodiment; in a specific implementation, the one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and the following steps are executed:
[0220] Displaying an instant messaging session page, wherein the instant messaging session page has a message editing area;
[0221] If there is a search event in the message editing area, the search window will be output;
[0222] Enter search content in the search window, and N search results matching the search content will be displayed in the search window, where N is an integer.
[0223] In one implementation, the search event in the message editing area includes at least one of the following:
[0224] The message editing area includes a search entry; when the search entry is triggered, a search event is generated in the message editing area;
[0225] The message editing area includes a message input box; when a search character is input in the message input box, a search event is generated in the message editing area.
[0226] In another implementation, the search portal includes a search icon and / or a search option; the search portal may be configured in at least one of the following ways:
[0227] If the message editing area includes a message input box, the search entry is set in the message input box;
[0228] If the message editing area includes an operation menu, the search entry is set in the operation menu;
[0229] If the message editing area includes a message input box, and input characters are displayed in the message input box; selecting the input characters triggers the display of the option bar, and the search entry is set in the option bar.
[0230] In another implementation, the search window includes a hidden option; one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and further perform the following steps:
[0231] When the hide option is triggered, the search window is hidden; wherein the message input box is set as the search box in the hidden search window;
[0232] Enter the search content in the search window, including: entering the search content in the message input box, and the search content contains the search characters.
[0233] In another implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and further perform the following steps:
[0234] When the search content containing the search characters is sent to the instant messaging session page in the form of a message, if the search content in the form of a message is triggered, a search result page is displayed, which includes identifiers of N search results that match the search content.
[0235] In another implementation, the search window includes a result display area; one or more instructions in a computer-readable storage medium are loaded by the processor 1201 and, when executed to display N search results in the result display area, specifically perform the following steps:
[0236] Display N search results in the result display area;
[0237] N search results are clustered into M application categories based on their sources, each application category includes at least one search result, where M is an integer; the result display area is divided into M sub-areas; one or more instructions in a computer-readable storage medium are loaded by processor 1201 and, when executed, display the N search results in the result display area, specifically perform the following steps:
[0238] The identifiers of the M application categories are displayed in the M sub-areas respectively, and the identifier of at least one search result under each application category is displayed in the sub-area corresponding to each application category.
[0239] In another implementation, M application category identifiers are displayed in the M sub-areas, respectively, including at least one of the following:
[0240] Display the logos of the M application categories in the M sub-areas in a random order;
[0241] Arrange and display the M application categories in M sub-areas in descending order of users' attention to the application categories;
[0242] Any application category among the M application categories is denoted as the i-th application category, where i is an integer and i≤M;
[0243] Displaying an identifier of at least one search result under the i-th application category in the sub-area corresponding to the i-th application category includes at least one of the following:
[0244] Displaying the identifier of at least one search result under the i-th application category in a sub-area corresponding to the i-th application category in a random order;
[0245] Arrange and display the identifier of at least one search result under the i-th application category in the sub-area corresponding to the i-th application category in descending order of the degree of matching between the search results and the user's historical behavior;
[0246] The user's attention to the application category is obtained based on the user's historical behavior statistics; the user's historical behavior includes at least one of the following: usage behavior of the application category, search behavior of the application category, and download behavior of the application category.
[0247] In another implementation, the search window displays the returned items; one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and further execute the following steps:
[0248] Selecting the Return option closes the search window and displays the instant messaging session page again.
[0249] In another implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and further perform the following steps:
[0250] When a target search result among the N search results is selected, the target search result is displayed in a message form in the instant messaging session page.
[0251] In another implementation, the search window includes a result display area; the result display area displays an aggregation indicator; when the aggregation indicator is selected, it indicates that all N search results are selected, and the target search results include N search results; one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and executed to display the target search results in the form of a message on the instant messaging session page, specifically performing the following steps:
[0252] The first target session message is displayed on the instant messaging session page, where the first target session message carries the aggregation identifier.
[0253] In another implementation, N search results are clustered into M application categories according to their sources, each application category includes at least one search result, where M is an integer; any application category in the M application categories is denoted as the i-th application category, where i is an integer and i≤M; when the identifier of the i-th application category is selected, indicating that all search results under the i-th application category are selected, the target search results include all search results under the i-th application category; one or more instructions in a computer-readable storage medium are loaded by the processor 1201 and, when executed, display the target search results in the form of a message on the instant messaging session page, specifically performing the following steps:
[0254] The second target conversation message is displayed in the instant messaging conversation page, and the second target conversation message carries the identifier of the i-th application category.
[0255] In another implementation, the target search result is the j-th search result among N search results, where j is an integer and j≤N, and the j-th search result refers to any one of the N search results. When one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and executed to display the target search result in the form of a message on the instant messaging session page, the processor 1201 specifically performs the following steps:
[0256] The third target conversation message is displayed on the instant messaging conversation page, and the third target conversation message carries the identifier of the j-th search result.
[0257] In another implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and further perform the following steps:
[0258] If the first target conversation message in the instant messaging conversation page is selected, a search result page is displayed, the search result page including N search result identifiers; or,
[0259] If the second target conversation message in the instant messaging conversation page is selected, a search result page is displayed, the search result page including identifiers of all search results under the i-th application category; or,
[0260] If the third target conversation message in the instant messaging conversation page is selected, a search result page is displayed, and the search result page includes detailed information of the j-th search result.
[0261] In another implementation, the target search result is displayed in the instant messaging session page in the form of a target conversation message, where the target conversation message is any message in the instant messaging message stream in the instant messaging session page; one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and further perform the following steps:
[0262] When the target conversation message is triggered to be shared, a sharing object list is output, and the sharing object list contains at least one sharing object;
[0263] Send a target conversation message to the target sharing object. The target sharing object is any sharing object selected in the sharing object list.
[0264] In an embodiment of the present application, the processor 1201 is used to display an instant messaging session page in an instant messaging application, and a search event may be generated in the message editing area, such as triggering a search entry or entering a search character in the message editing area, etc.; when a search event occurs in the message editing area, a search window is output, and the search window may be displayed in a floating form on the instant messaging session page or the search window may be displayed as an independent page; the user may enter search content in the search window, wherein the search content may be the search content newly entered by the user, or the search content may be the historical search content selected in the history display area; at least one search result matching the search content may be displayed in the search window, and the search result may include an identifier of an application category, or an identifier of at least one search result under each application category; the target search result displayed in the search window supports being displayed in the instant messaging session page in the form of a target session message, which In the instant messaging session page, the target search result can be an identifier of a certain application category, an identifier of a search result under the application category, or an aggregate identifier (the aggregate identifier includes the application category and the search results under the application category); accordingly, when the target conversation message displayed in the instant messaging session page is selected, a search results page can be displayed, and the search results page is used to display detailed information of the target search result carried by the target conversation message. For example, when the target search result is an identifier of an application category, the search results page displays the identifier of at least one search result under the application category. Of course, the identifiers of these search results can still be added to the instant messaging session page. For example, when the target search result is a search result under a certain application category, the search results page displays detailed information of the search result, and so on; in addition, the target conversation message displayed in the instant messaging session page can also be shared (or forwarded) to another instant messaging session page or another application. Through the above process, when any user participating in the instant messaging session has a search need, he or she can quickly search and obtain the corresponding search results in the instant messaging application, which shortens the user's path to the search results and helps the user obtain the desired search results more quickly; in addition, the search results can be displayed in the form of messages on the instant messaging session page, which enables the search results triggered in the instant messaging session page to be quickly sent to other users participating in the instant messaging session, providing a new type of conversation search interaction method, improving search efficiency and search result sharing efficiency.
[0265] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions, the computer instructions being 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, so that the computer device performs the above-mentioned Figure 1 、 Figure 5Various optional embodiments of the described embodiments provide message processing methods.
[0266] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0267] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted via a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0268] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A message processing method, characterized in that: include: Displaying an instant messaging session page, wherein the instant messaging session page includes a message editing area; If a search event occurs in the message editing area, a search window is output, wherein the search window includes hidden options; the message editing area includes a message input box; When the hide option is triggered, the search window is hidden; the message input box is set as the search box in the hidden search window; Enter search content in the message input box, where the search content includes search characters and content entered by the user; When the search content is sent to the instant messaging session page in the form of a message, if the search content in the form of the message is triggered, a search result page is displayed, the search result page including identifiers of N search results that match the search content; When the hidden option is not triggered, the search content is input in the search window, and the identifiers of N search results matching the search content are displayed in the search window, where N is an integer; If the j-th search result among the N search results is added to the instant messaging session page, displaying a third target session message on the instant messaging session page, the third target session message carrying an identifier of the j-th search result; j is an integer and j≤N; the third target conversation message also carries an identifier of the application category to which the j-th search result belongs; When the identifier of the application category in the third target conversation message is selected, displaying a search result page, the search result page including a plurality of search results matching the search content under the application category; When the identifier of the j-th search result in the third target conversation message is selected, a search result page is displayed, wherein the search result page includes detailed information of the j-th search result.
2. The method according to claim 1, wherein The message editing area has a search event including at least one of the following: The message editing area includes a search entry; when the search entry is triggered, a search event is generated in the message editing area; When a search character is input in the message input box, a search event is generated in the message editing area.
3. The method according to claim 2, wherein The search entry includes a search icon and / or a search option; the search entry is configured in at least one of the following ways: If the message editing area includes a message input box, the search entry is set in the message input box; If the message editing area includes an operation menu, the search entry is set in the operation menu; If the message editing area includes a message input box, and input characters are displayed in the message input box; selecting the input characters triggers the display of an option bar, and the search entry is set in the option bar.
4. The method according to claim 1, wherein The search window includes a result display area; displaying N search results matching the search content in the search window includes: displaying the N search results in the result display area; The N search results are clustered into M application categories according to their sources, each application category includes at least one search result, where M is an integer; the result display area is divided into M sub-areas; The displaying of the N search results in the result display area includes: The identifiers of the M application categories are displayed in the M sub-areas respectively, and the identifier of at least one search result under each application category is displayed in the sub-area corresponding to each application category.
5. The method according to claim 4, wherein The displaying of the identifiers of the M application categories in the M sub-areas respectively includes at least one of the following: Displaying the identifiers of the M application categories in the M sub-areas in a random order; Arrange and display the M application categories in the M sub-areas in descending order of user interest in the application categories; Any application category among the M application categories is denoted as the i-th application category, where i is an integer and i≤M; Displaying an identifier of at least one search result under the i-th application category in the sub-area corresponding to the i-th application category includes at least one of the following: Displaying the identifier of at least one search result under the i-th application category in a sub-area corresponding to the i-th application category in a random order; Arrange and display the identifier of at least one search result under the i-th application category in the sub-area corresponding to the i-th application category in descending order of the degree of matching between the search results and the historical behavior of the user; The user's attention to the application category is obtained based on the user's historical behavior statistics; the user's historical behavior includes at least one of the following: usage behavior of the application category, search behavior of the application category, and download behavior of the application category.
6. The method according to claim 1, wherein The search window displays a returned item; the method further includes: Selecting the return option closes the search window and displays the instant messaging session page again.
7. The method according to claim 1, wherein The method further comprises: When a target search result among the N search results is selected, the target search result is displayed in the form of a message on the instant messaging session page.
8. The method according to claim 7, wherein The search window includes a result display area; the result display area displays an aggregation mark, and when the aggregation mark is selected, it indicates that all of the N search results are selected, and the target search result includes the N search results; The displaying of the target search result in the form of a message in the instant messaging session page includes: Displaying a first target conversation message in the instant messaging conversation page, where the first target conversation message carries the aggregation identifier; If the first target conversation message in the instant messaging conversation page is selected, a search result page is displayed, where the search result page includes identifiers of the N search results.
9. The method according to claim 7, wherein The N search results are clustered into M application categories according to their sources, each application category including at least one search result, where M is an integer; any application category among the M application categories is denoted as the i-th application category, where i is an integer and i≤M; when the identifier of the i-th application category is selected, it indicates that all search results under the i-th application category are selected, and the target search results include all search results under the i-th application category; The displaying of the target search result in the form of a message in the instant messaging session page includes: Displaying a second target conversation message in the instant messaging conversation page, wherein the second target conversation message carries an identifier of the i-th application category; If the second target conversation message in the instant messaging conversation page is selected, a search result page is displayed, where the search result page includes identifiers of all search results under the i-th application category.
10. The method according to claim 7, wherein: The target search result is displayed in the instant communication session page in the form of a target conversation message, and the target conversation message is any conversation message in the instant communication session message flow in the instant communication session page; The method further comprises: When the target conversation message is triggered to be shared, a sharing object list is output, wherein the sharing object list includes at least one sharing object; The target conversation message is sent to a target sharing object, where the target sharing object is any sharing object selected from the sharing object list.
11. A message processing device, characterized in that: include: A display unit, configured to display an instant messaging session page, wherein the instant messaging session page includes a message editing area; A processing unit, configured to output a search window containing hidden options if a search event occurs in a message editing area; the message editing area includes a message input box; The processing unit is further configured to hide the search window when the hide option is triggered; the message input box is set as a search box in the hidden search window; The processing unit is further configured to input search content in the message input box, where the search content includes search characters and content input by the user; The processing unit is further configured to, when a message containing the search content is sent to the instant messaging session page in the form of a message, display a search results page if the search content in the form of a message is triggered, the search results page including identifiers of N search results that match the search content; The processing unit is further configured to, when the hidden option is not triggered, input the search content in the search window and display identifiers of N search results matching the search content in the search window, where N is an integer; The processing unit is further configured to, if the j-th search result among the N search results is added to the instant messaging session page, display a third target conversation message on the instant messaging session page, the third target conversation message carrying an identifier of the j-th search result; j is an integer and j≤N; the third target conversation message also carrying an identifier of an application category to which the j-th search result belongs; The processing unit is further configured to, when the identifier of the application category in the third target conversation message is selected, display a search result page, the search result page including a plurality of search results matching the search content under the application category; The processing unit is further configured to display a search result page when the identifier of the j-th search result in the third target conversation message is selected, wherein the search result page includes detailed information of the j-th search result.
12. A message processing device, characterized in that: include: a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the message processing method according to any one of claims 1 to 10 is implemented.
13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the message processing method according to any one of claims 1 to 10.
14. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the message processing method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Message service providing method for message service connected to search service, message server performing message service providing method, and user terminal
JP2016212860A
System and method for embedded search within messaging applications
US20160034977A1