WO2022052749A1 - 一种消息处理方法、装置、设备及存储介质 - Google Patents

一种消息处理方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2022052749A1
WO2022052749A1 PCT/CN2021/112901 CN2021112901W WO2022052749A1 WO 2022052749 A1 WO2022052749 A1 WO 2022052749A1 CN 2021112901 W CN2021112901 W CN 2021112901W WO 2022052749 A1 WO2022052749 A1 WO 2022052749A1
Authority
WO
WIPO (PCT)
Prior art keywords
search
message
instant messaging
page
displayed
Prior art date
Application number
PCT/CN2021/112901
Other languages
English (en)
French (fr)
Inventor
李鹏飞
姚创沐
房翊翔
赵航
郑千帆
冯健雄
颜俊鸿
王翊夫
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2022052749A1 publication Critical patent/WO2022052749A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Definitions

  • the present application relates to the field of communication technologies, in particular to the field of message processing, and in particular, to a message processing method, a message processing apparatus, a message processing device, and a computer-readable storage medium.
  • search engine eg, Baidu search, Sogou search, Toutiao search, etc.
  • An embodiment of the present application provides a message processing method, including:
  • An embodiment of the present application provides a message processing apparatus, including:
  • the display unit is used to display the instant messaging session page, and the instant messaging session page is provided with a message editing area;
  • a processing unit for outputting a search window if there is a search event in the message editing area
  • An embodiment of the present application provides a message processing device, and the message processing device includes:
  • a processor adapted to execute a computer program
  • a computer-readable storage medium where a computer program is stored, and when the computer program is executed by the processor, the above-mentioned message processing method is implemented.
  • Embodiments of the present application provide a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are read and executed by a processor of a computer device, the computer device can execute the above message processing method.
  • Embodiments of the present application provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned message processing method.
  • FIG. 1 shows a schematic flowchart of a message processing method provided by an exemplary embodiment of the present application
  • Fig. 2a shows a schematic diagram of a search entry provided by an exemplary embodiment of the present application
  • Fig. 2b shows a schematic diagram of another search entry provided by an exemplary embodiment of the present application
  • Fig. 2c shows a schematic diagram of another search entry provided by an exemplary embodiment of the present application.
  • Fig. 2d shows a schematic diagram of another search entry provided by an exemplary embodiment of the present application
  • FIG. 2e shows a schematic diagram of generating a search event provided by an exemplary embodiment of the present application
  • Fig. 3a shows a schematic diagram of inputting search content in a search window provided by an exemplary embodiment of the present application
  • Fig. 3b shows another schematic diagram of inputting search content in a search window provided by an exemplary embodiment of the present application
  • Fig. 3c shows another schematic diagram of inputting search content in the search window provided by an exemplary embodiment of the present application
  • Fig. 4a shows a schematic diagram of displaying search results provided by an exemplary embodiment of the present application
  • Fig. 4b shows another schematic diagram of displaying search results provided by an exemplary embodiment of the present application
  • FIG. 5 shows a schematic flowchart of another message processing method provided by an exemplary embodiment of the present application.
  • Figure 6a shows a schematic diagram of adding a search result provided by an exemplary embodiment of the present application
  • Figure 6b shows another schematic diagram of adding a search result provided by an exemplary embodiment of the present application
  • Fig. 6c shows a schematic diagram of a search result page provided by an exemplary embodiment of the present application
  • Figure 7a shows another schematic diagram of adding a search result provided by an exemplary embodiment of the present application.
  • Fig. 7b shows a schematic diagram of another search result page provided by an exemplary embodiment of the present application.
  • Figure 8a shows another schematic diagram of adding a search result provided by an exemplary embodiment of the present application
  • Fig. 8b shows a schematic diagram of another search result page provided by an exemplary embodiment of the present application.
  • FIG. 9 shows a schematic diagram of a shared object list provided by an exemplary embodiment of the present application.
  • FIG. 10A shows a system structure diagram to which the message processing method provided by the embodiment of the present application is applicable
  • FIG. 10B shows a schematic diagram of a method for arranging and displaying search results provided by an exemplary embodiment of the present application
  • FIG. 11 shows a schematic structural diagram of a message processing apparatus provided by an exemplary embodiment of the present application.
  • FIG. 12 shows a schematic structural diagram of a message processing device provided by an exemplary embodiment of the present application.
  • the embodiments of the present application relate to instant messaging (Instant Message, IM).
  • Instant messaging refers to related services that can instantly send and receive Internet messages.
  • functions of instant messaging have become increasingly rich, gradually integrating various functions such as e-mail, blog, music, TV and games.
  • Instant messaging is no longer a simple chat tool, it has developed into a comprehensive information platform integrating communication, information, entertainment, e-commerce, office collaboration and enterprise customer service.
  • An instant messaging session refers to a session initiated by two or more users with the help of instant messaging applications (eg, QQ, WeChat, Enterprise WeChat, map applications including social interaction functions, game applications, etc.).
  • An instant messaging session can be divided into an individual session and a group chat session.
  • the so-called individual session refers to an instant communication session between two users.
  • the so-called group chat session refers to an instant communication session between two or more users. Conversation messages generated between users participating in the same instant messaging session are displayed on the instant messaging session page in the form of message streams.
  • the embodiment of the present application also relates to search.
  • search is also called retrieval, which refers to the process of obtaining search results matching the search content by inputting search content (eg, retrieval keywords, retrieval query) and running a search engine.
  • search content eg, retrieval keywords, retrieval query
  • search engine is based on A search operation is performed on the Internet for the search content, so as to obtain playback resources (or information such as wind reviews, introductions, etc.) of the movie.
  • the process of searching for content through a search engine is an independent search process to realize the search for content; for example, when a user makes a search request in an instant messaging session scenario, the user needs to interrupt the current instant messaging (such as chat, video, voice, etc.) behavior, switch from the instant messaging session page to the search engine's search page, and then search for content on the search engine's search page to meet the search needs, which makes the instant messaging session scene.
  • the search process requires frequent application switching, the search path is long, the search efficiency is low, and the user experience is not smooth.
  • an embodiment of the present application proposes a message processing solution.
  • the solution proposes: output a search window when there is a search event (such as triggering a search entry or inputting a search character, etc.)
  • the content can then display N (N is an integer) search results matching the search content in the search window.
  • N is an integer
  • the target search result among the N search results is selected, the target search result is displayed in the form of a message in the instant messaging session page.
  • search results can be displayed in the instant messaging session page in the form of messages, which makes it possible to trigger the search results obtained in the instant messaging session page
  • results can be quickly presented to other users participating in the instant messaging session, which provides a new interactive way of conversational search, and improves the efficiency of search and sharing of search results.
  • FIG. 1 shows a schematic flowchart of a message processing method provided by an exemplary embodiment of the present application; the flow of the message processing method in the embodiment of the present application may be generated by a terminal device used by any user participating in an instant messaging session. implement.
  • the message processing method may include the following steps S101-S103:
  • 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 an instant messaging session message stream generated between users participating in the same instant messaging session, and the instant messaging session message stream includes at least one session message.
  • the terminal device used by user B displays the instant messaging session page 1011 between user B and user A.
  • instant messaging The conversation page 1011 displays the object identifier of the instant messaging conversation with user B (that is, the identifier "XXX friend" of user A).
  • the instant messaging conversation page 1011 includes a message display area 1012 and a message editing area 1013; wherein:
  • the message display area 1012 is used to display the instant messaging session message flow 10121 generated between the users participating in the instant messaging session, and the instant messaging session message flow 10121 includes at least one session message; for example, as shown in FIG. 1 , the instant messaging session message Stream 10121 contains conversation message 101211 edited and sent by user A, and conversation message 101212 edited and sent by user B;
  • the message editing area 1013 is used to edit and display the edited conversation message, and the message editing area 1013 may include a message input box 10131 and a keyboard area 10132; wherein, the message input box 10131 is used to receive the input of the conversation message, and the keyboard area 10132 is used to realize The editing of the conversation message is entered into the message input box 10131.
  • the keyboard area 10132 does not necessarily exist in the message editing area 1013.
  • the keyboard area 10132 can be folded and displayed in the message editing area 1013.
  • the terminal device is connected to a hardware keyboard, at this time, the message editing area 1013 does not include the keyboard area 10132, and the content in the message input box 10131 is input by the hardware keyboard.
  • 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.
  • the existence of a search event in the message editing area includes at least one of the following: the message editing area includes a search entry; when the search entry is triggered, it is determined that a search event exists in the message editing area; The message editing area includes a message input box; when a search character is detected in the message input box, it is determined that a search event exists in the message editing area.
  • any user participating in the instant messaging session can initiate a search event on the instant messaging session page to trigger the search process. Initiate a search event in the editing area to trigger the search process.
  • the terminal device When there is a search event in the message editing area, the terminal device outputs a search window.
  • a search window is a window for performing search operations and displaying search results.
  • the search window may be a window in the instant messaging session page, that is, the terminal device may output the search window in the instant messaging session page, and at this time, the search window may be displayed in whole or in part in the form of a floating layer on the instant messaging session page. in the communication session page.
  • the search window may be a window independent of the instant messaging session page, that is, the terminal device may use a search page independent of the instant messaging session page to display the search window;
  • the specific display form is not limited.
  • a search window 1021 is displayed in the form of a floating layer 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 search content, such as "XX movie", "XXX", etc.; the result display area 1023 is used to display N search results retrieved from the search content, where N is an integer.
  • a search event can be generated by selecting a search entry and/or inputting search characters. The following describes in detail with reference to FIGS. 2a, 2b, 2c, 2d and 2e.
  • the search event is generated in the message editing area. some specific implementation processes.
  • a search event is generated by selecting a search entry.
  • the message editing area 1013 includes a search entry; when the search entry is selected, it indicates that the users participating in the instant messaging session have a search requirement, and then a search event is generated in the message editing area.
  • the search entry may include a search icon and/or a search option
  • the setting method of the search entry includes at least one of the following: 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 there are input characters displayed in the message input box, when the input character is selected, the option bar is displayed, and the search entry is set in the option bar .
  • the search window includes a hidden option; when the hidden option is triggered, the search window is hidden; wherein the message input box is set as a search box in the hidden search window ; the inputting the search content in the search window includes: inputting the search content in the message input box, where the search content includes the search characters.
  • the search entry is set in the message editing area 1013 of the instant messaging session page in the form of a search icon; specifically, the search icon is set in the message input box 10131 of the message editing area 1013; when the user selects the message input box When the search icon in the box 10131 is displayed, a search event is generated in the message editing area 1013 .
  • Fig. 2a shows a schematic diagram of a search portal provided by an exemplary embodiment of the present application; as shown in Fig. 2a, the message input box 10131 contains 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 .
  • the search entry is set in the message editing area 1013 of the instant messaging session page in the form of search options; when the user selects the search option in the message editing area 1013, a search is generated in the message editing area 1013 event.
  • the message editing area 1013 of the instant messaging session page includes an operation menu, and the search entry is set in the operation menu in the form of a search option.
  • the operation menu may also include other options (such as shooting options, red envelope options, etc.).
  • the operation menu may be directly displayed on the instant messaging session page, or may be indirectly displayed on the instant messaging session page. The following describes the location of the operation menu with reference to FIG. 2b. Please refer to FIG.
  • FIG. 2b which shows a schematic diagram of another search portal provided by an exemplary embodiment of the present application; as shown in FIG. 2b, the message input box in the message editing area 1013 included in the instant messaging session page 1011 On the right side of 10131, more logos 10133 are displayed, and more logos 10133 are used to fold and display some other options; when more logos 10133 are selected, the operation menu 1014 is displayed in the form of a floating layer in the message editing area 1013.
  • the operation menu 1014 shows that part of the options (eg, transfer options, voice call options, camera options, search options 10141, etc.) that are folded and displayed in the more logo 10133; in addition, the operation menu 1014 can also be directly displayed in the instant messaging session page , specifically, the operation menu 1014 can be directly displayed below the message input box 10131; the operation menu 1014 includes at least one option, and the search option 10141 is directly displayed in the operation menu in the form of an option; or, the operation menu includes more identifiers 10133, when the more flag 10133 is selected, trigger the display of the option window 1015, the option window 1015 contains at least one hidden option, wherein the search option 10141 is set in the option window 1015 as a hidden option.
  • the options eg, transfer options, voice call options, camera options, search options 10141, etc.
  • the operation menu 1014 can be directly or indirectly displayed on the instant messaging session page.
  • the search options included in the search entry can be directly or indirectly displayed in the operation menu 1014, that is, the search options 10141 included in the search entry. It can be displayed on the instant messaging session page in a direct or indirect manner, and the specific positions of the operation menu 1014 and the search option 10141 are not limited in this embodiment of the present application.
  • the search entry can also be set in the option bar associated with the input character, where the input character refers to the input character input by the user in the message input box 10131 included in the message editing area 1013 ;
  • 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 character refers to the option bar output by triggering the input character displayed in the message input box.
  • the message editing area includes a message input box, and input characters are displayed in the message input box (the input characters are actively input by users with search requirements); when the input characters are selected, the option bar is triggered to display, and the search entry is set in the options column.
  • the manner in which the input character in the message input box is selected may include, but is not limited to: double-click (for example, the finger clicks the input character twice in a row, and the interval between two clicks is 1 second), long press (for example, the finger continues to press the input character for the duration of
  • the selected input characters may include some input characters displayed in the message input box or all input characters displayed in the message input box, which is not limited in this embodiment of the present application; and, in the search window
  • the included search box can display the selected input characters. Please refer to Fig. 2c, Fig. 2c shows a schematic diagram of another search entry provided by an exemplary embodiment of the present application; as shown in Fig.
  • input characters "XX, secret XX” 10138 are displayed in the message editing area 1013 ;
  • 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, copy option, multiple option, delete option, etc.), the search option 2021 is set as an option in the option bar 202; when the search option 2021 is clicked, the search window 1021 is displayed in the instant messaging session page, wherein the search box included in the search window
  • the input character "secret" 101381 selected in the message input box is displayed.
  • the search entry can also be set in the option bar associated with the conversation message.
  • a message edited and sent by any user of the communication session specifically, the instant communication session page includes a message display area, and the instant communication session message stream displayed in the message display area includes at least one session message;
  • an option bar is displayed in the instant messaging session page, and a search entry is set in the option bar.
  • FIG. 2d shows a schematic diagram of another search portal provided by an exemplary embodiment of the present application; as shown in FIG.
  • 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 multi-select option, a delete option, etc.), and the search option 2021 is set as an option in the option.
  • the search event is generated by entering search characters.
  • a search event can be generated in the message editing area.
  • the search characters may refer to some characters or strings carrying search entries, such as the character "#”, the character "!, the character string "XX&X”, etc. Click the search character in the keyboard), that is, enter the search character in the message input box, and a search event can be generated.
  • Fig. 2e shows another schematic diagram of generating a search event provided by an exemplary embodiment of the present application; as shown in Fig.
  • a keyboard area 10132 is included in the message editing area 1013, if the user is in the keyboard area Click the "#" key in 10132 to generate a search event and output the search window.
  • search characters can also be entered in an external hardware keyboard connected to a terminal device (such as a computer).
  • a terminal device such as a computer.
  • the embodiments of the present application do not limit how to input search characters.
  • the user can generate a search event in the message editing area included in the instant messaging session page through the above-mentioned simple operation on the instant messaging session page, which makes the operation of triggering the generating of the search event simple and improves the user's operation efficiency. Simplicity.
  • S103 Receive the search content input in the search window, and display N search results matching the search content in the search window, where N is an integer.
  • the search window includes a search content input area
  • the search content input area includes a search box and a history record display area
  • the history record display area is used to display the history search content; then, enter the search content in the search window.
  • the method may include: inputting the selected historical search content in the historical record display area in the search box.
  • FIG. 3a shows a schematic diagram of inputting search content in a search window provided by an exemplary embodiment of the present application; as shown in FIG.
  • the search window 1021 includes a search input area 1034, where the search The input area 1034 includes a search box 10341 and a historical record display area 10342; wherein, the historical record display area 10342 displays the historical search content searched at historical moments, so that the user can select the historical search content from the historical record display area 10342 to search.
  • the method of selecting historical search content from the historical record display area 10342 may include, but is not limited to: clicking on the historical search content, or dragging and dropping the historical search content into the search box, the embodiment of the present application does not make any changes to the method of selecting the historical search content. limited.
  • the outputted search window displays the history record.
  • the area displays the historical search content: "XXXX is good-looking", "XX like XX”; at this time, if the user selects the historical search content "XXXX is good-looking", the search content "XXXX is good-looking" will be displayed in the search box, and the display and search At least one search result that matches the content "XXXX looks good”.
  • the search window includes a historical record display area, and the historical record display area contains historical search content; when the search window is displayed, the historical search content in the history record display area can be selected to quickly realize the same search content. Search multiple times to improve the user's search experience.
  • the manner of inputting the search content in the search window may include: inputting new search content in the search box.
  • Fig. 3b shows another schematic diagram of inputting search content in the search window provided by an exemplary embodiment of the present application; as shown in Fig. 3b, the user may not select from the history record display area 10342
  • the historical search content is used as the search content entered in the search window, but the new search content is entered in the search box as the search content entered in the search window;
  • Multiple recommended contents about the search content can be displayed in real time, so that when there is the content that the user wants to search for in the multiple recommended contents, the user does not need to continue to input, just select the desired recommended content, and it can be implemented in the search box.
  • the recommended multiple recommended content may be recommended according to the popularity parameter of the recommended content in the Internet that matches the search content in the current time period.
  • the popularity parameter may be the recommended content in the current time period.
  • the number of clicks, pageviews, likes, etc; The embodiment does not limit this.
  • the recommended content containing the word "secret” is displayed in the search window (for example, Hidden corner, XX hidden XX, XXX hidden XX, etc.)
  • the user can directly select "hidden corner” from the recommended content, instead of continuing to enter the keywords "hidden corner” in the search box.
  • the search content may also include, but is not limited to, voice, picture, text, and the like.
  • voice or picture
  • Fig. 3c Fig.
  • FIG. 3c shows another method provided by an exemplary embodiment of the present application
  • the search window contains a voice identification 301, when the voice identification 301 is selected, the voice input is triggered, and the input voice can also be converted into a text form, etc.
  • the manner of selecting the voice identification 301 may include, but is not limited to, long-pressing the voice identification and the like.
  • the search window also includes more markers 302.
  • the hidden window 303 is displayed in the form of a floating layer in the search window, and the hidden window 303 includes some folded and displayed options, such as picture option 3031, music option 3032, etc., where, when picture option 3031 is selected, the user can input the picture locally cached on the terminal device or obtained from the Internet as the search content into the search box, so as to realize the search Image search; similarly, when the music option 3032 is selected, the user can input the audio cached locally on the terminal device or instantly obtained from the Internet as the search content into the search box to search for audio.
  • the options such as the picture option 3031 and the music option 3032 may also be similar to the voice identification 301 and directly displayed in the search window, which is not limited in this embodiment of the present application.
  • the result display area included 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 under each application category.
  • the search result where N is an integer; when N is 0, it means that there is no search result matching the search content.
  • a prompt message can be output to prompt the user to adjust the search content and search again to obtain a search result that matches the search content. search results.
  • the above application categories may include, but are not limited to, videos, articles, official accounts, small programs, and the like. For example, if the search content entered in the search box is "hidden corner", at least one search result matching "hidden corner" is displayed in the result display area of the search window.
  • the title or content of the article contains all or part of the keywords in “The Hidden Corner”, and for example, the title or comment of the video contains all or part of the keywords in the “Secret Corner” keywords, etc.
  • FIG. 4a shows a schematic diagram of displaying search results provided by an exemplary embodiment of the present application; as shown in FIG. 4a, the result display area 1023 includes N search results, where N is 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 be displayed on the display screen.
  • a sliding axis 401 is set in the search window, and by sliding the sliding axis 401, the result display area 1023 of the search window can slide and display the part of the search results that is folded and displayed.
  • the search window can also set "more options" at the bottom.
  • Figure 4b shows another schematic diagram of displaying search results provided by an exemplary embodiment of the present application; as shown in Figure 4b, a "more ⁇ " mark 402 is included at the bottom of the search window, when "more When the ⁇ " mark 402 is selected, part or all of the folded search results will be displayed.
  • the "More ⁇ " mark 402 is clicked again, multiple search results can be hidden, which can facilitate the browsing of search results. .
  • the 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, and M is an integer; the result display area is divided into M sub-areas; then the M sub-areas can display the identifiers of M application categories respectively, and the corresponding sub-areas of each application category Displays the ID of at least one search result under each app category.
  • the application categories of the search results may include, but are not limited to, official accounts, articles, videos, video accounts, small programs, and the like. Please refer to Fig. 4b again, N search results are clustered into application categories - film and television works 403, mini programs 404...
  • the identifiers of various videos (such as movies and videos) whose content matches, in the sub-area where the applet 404 is located includes the identifiers of the applet under the application category applet that match the searched content.
  • the identifier of the search result or the identifier of the application category may be the title, icon, etc. of the search result (or application category), which is not limited in this embodiment of the present application.
  • the sharing of the application category can be realized, thereby realizing the sharing of all search results under the application category, and improving the sharing efficiency of the search results.
  • the sharing of a single search result can be realized, and the efficiency of sharing the search result can be improved.
  • the N search results in the search window can be displayed in various ways.
  • the identifiers of the M application categories can be displayed in the result display area in at least one of the following ways:
  • the user's attention to the application category is obtained according to 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 retrieval behavior of the application category, and the download behavior of the application category.
  • the user here may refer to a large number of users widely existing in the Internet; in this case, the historical behavior of the user may include the use behavior of the application category by the massive user, the retrieval of the application category by the massive user Behavior and the download behavior of the corresponding category of massive users; for example, among the application category A, application category B, and application category C, the utilization rate of application category A is the highest for a large number of users, indicating that application category A has the highest attention, then application category A It can be arranged and displayed before application category B and application category C. Another example is the number of times a large number of users retrieve the same application category, etc. If the number of times the same application category is retrieved, it means that the application category has a higher degree of attention.
  • a user may refer to a user who holds the 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 usage behavior of the application category, the user's retrieval behavior of the application category, and the user's download behavior of the application category; The number of clicks on the official account during the time period is significantly higher than the number of clicks on other application categories, indicating that the official account has higher attention than other application categories, and the logo of the official account is displayed before (or above) the logo of other application categories. Another example is the number of times the user has retrieved an application category within a historical time period; another example, whether the user has downloaded a certain application category within a historical time period; and so on.
  • the respective search results in the sub-areas corresponding to each application category are also arranged and displayed in a certain order.
  • any one of the M application categories is identified as the ith application category, i. is an integer and i ⁇ M; the manner 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) The identifiers of at least one search result under each application category are displayed in the sub-area corresponding to the ith application category in random order.
  • each application category and the identification of each search result can also be mixed, and each search result here is the search result under each application category; specifically, it can be based on the category weight of each search result or application category , the timeliness of search results and other factors, combined with manual rules for mixed arrangement; for example, manual rules can be shown in Table 1, where:
  • the tool search result when arranging each search result, can be prioritized before other search results, wherein the tool search result can refer to the search result that can help users to query information, For example, a small program to check air tickets, etc.
  • the search results used by the user in the historical moment are arranged and displayed before other relevant search results, wherein the other relevant search results may refer to results such as texts with the same keywords as the search content.
  • the manual rules shown in Table 1 may also be changed, which is not limited in this embodiment of the present application.
  • a search window is output, wherein by triggering the search entry or inputting search characters, etc., the message editing area of the instant messaging session page can be generated in the message editing area.
  • Search event after entering the search content in the search window, N search results matching the search content can be displayed in the search window, where N is an integer.
  • any user participating in the instant messaging session has a search demand, it can actively trigger the generation of a search event in the message editing area included in the instant messaging session page, so as to quickly realize the search in the instant messaging application and obtain the search content corresponding at least one search result, which shortens the path for the user to reach the search result, and helps the user obtain the desired search result more quickly.
  • This embodiment of the present application also supports displaying the target search result in the result display area on the instant messaging session page in the form of a conversation message; for details, please refer to FIG. 5 , which shows another example provided by an exemplary embodiment of the present application.
  • FIG. 5 shows another example provided by an exemplary embodiment of the present application.
  • the message processing method includes but is not limited to the following steps S501-S505:
  • S501 Display an instant messaging session page, where a message editing area is provided on the instant messaging session page.
  • step S501-step S503 reference may be made to the relevant description of the specific implementation process of step 101-step S103 shown in FIG. 1, which is not repeated here.
  • the target search result refers to any one or more search results displayed in the result display area in the search window.
  • the target search result is selected, it means that the target search result is added to the IM session page that triggers the search event, and the target search result is displayed in the IM session page in the form of a message, which makes participants in the same IM session.
  • Multiple users of IM can view, use, and edit search results, which realizes the integration between instant messaging session scenarios and search scenarios, effectively improves the quality of instant messaging sessions, and effectively improves search efficiency.
  • the target search results displayed on the instant messaging session page can also be forwarded to other session pages other than the current instant messaging session page, so as to improve the sharing efficiency of the search results.
  • step S504-step S505 after N search results are obtained in the search window, part or all of the N search results are also supported to be displayed on the instant messaging session page in the form of messages, where the instant messaging session page is: The session page to which the message editing area that triggers the generation of 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, which makes multiple users participating in the same instant messaging session. Users can view search results.
  • the application category in the result display area, the search result under the application category, the application category and the search result under the application category can all be added to the instant messaging session page; in other words, the target search result may be the application category, or The search results under the application category or the search results under the application category and the application category; according to the different target search results in the instant messaging session page, the content displayed on the search result page is also different. in:
  • both the application category and the search results under the application category may be added to the instant messaging session page.
  • 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:
  • Aggregate identifiers are displayed in the result display area. When aggregate identifiers are selected, it means that all N search results (application categories and search results under application categories) are selected, and the target search result includes N search results.
  • Fig. 6a shows a schematic diagram of adding a search result provided by an exemplary embodiment of the present application; as shown in Fig. 6a, an aggregation identifier 601 is displayed in the result display area of the search window.
  • the identifier 601 it means that at least one search result (application category and search results under the application category) matching the search content is selected, then the first target session message is displayed on the instant messaging session page, and the first target session message Carry the aggregate ID.
  • all N search results can be shared, so as to realize the sharing of all application categories and all search results under each application category, and improve the efficiency of search result sharing.
  • the search window contains hidden options, 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 in the search window Entering the search content can be understood as entering the search content in the message input box, and the search content includes the search characters.
  • the search character here, please refer to the related description shown in step S102.
  • the search content actually includes “#secret corner", and "#secret corner” can be understood as the aggregation identifier in the above (1); when it contains the search character
  • the search content is sent to the instant messaging session page in the form of a message, it means that the application category and the search results under each application category are added to the instant messaging session page.
  • FIG. 6b shows another schematic diagram of adding search results provided by an exemplary embodiment of the present application; as shown in FIG. 6b, when the search character 6021 is entered in the message input box on the instant messaging session page , that is, a search event is generated in the message editing area; the search window is output, and the search window contains a hidden option 602.
  • the hidden option 602 When the hidden option 602 is selected, it means that the search window is collapsed downward to realize the hiding of the search window.
  • the message input box in the instant messaging session page is set as the 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 characters and part of the content input by the user, as shown in Figure 6b, this
  • the search content 603 includes the search character "#" 6021 and part of the content "secret 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.
  • Fig. 6c shows a schematic diagram of a search result page provided by an exemplary embodiment of the present application; as shown in Fig. 6c, when the first target session message (including When the search content of the search characters) is selected, the instant messaging application displays a search result page containing multiple application categories matching the "hidden corner" and multiple search results under each application category.
  • the “more ⁇ ” sign 604 can be clicked, so that the part of the folded and displayed search results is displayed in the visual interface;
  • the operation method of presenting the folded and displayed search results on the display screen is not limited to the above-described clicking on the “more ⁇ ” mark. produce limitation.
  • application categories can be individually added to instant messaging session pages.
  • any one of 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, the identifier under the i-th application category is identified. If all search results are selected, the target search results include all search results under the ith application category; the second target session message is displayed on the instant messaging session page, and the second target session message carries the identifier of the ith application category.
  • Fig. 7a shows another schematic diagram of adding search results provided by an exemplary embodiment of the present application; as shown in Fig.
  • the result display area includes an application category-identification 701 of a film and television work, an application category- The identification of the public account...; when the identification 701 of the film and television work is selected, the sending confirmation window is displayed in the form of a floating layer on the instant messaging session page, wherein, the presentation form of the sending confirmation window may include but not limited to that shown in Figure 7a
  • the sending confirmation window 702 or the sending identification 704 contained in the sending confirmation window 703 is selected, the second target session message is displayed in the instant messaging session page, and the second target session message It carries the logo 701 of the film and television work.
  • a search result page is displayed in the instant messaging application program, and the search result page includes each search result under the application category that matches the search content; for details, please refer to Fig. 7b, Fig. 7b shows a schematic diagram of another search result page provided by an exemplary embodiment of the present application; as shown in Fig. 7b, when the second target conversation message in the instant messaging conversation page is selected, the search result page is displayed A result page, which is used to display multiple search results under the application category-"XX-film and television works"; in addition, the search result page includes a return item 1024, when the return item 1024 is selected, the search can be closed Results page, showing the instant messaging session page again.
  • each search result displayed in the search result page 705 still supports being added to the instant messaging session page independently; or, any search result in the search result page supports being clicked to view, for example, when any search result in the search result page
  • a search result is selected, a detail page corresponding to the selected search result is triggered to be displayed, and the detail page includes specific information (or content) contained in the search result.
  • the search results under the application category can be individually added to the instant messaging session page.
  • 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 ;
  • the third target session message is displayed on the instant messaging session page, the third target session message carries the identifier of the jth search result.
  • the result display area includes search result A, search result B, and search result C; if search result C is selected, a 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 . Please refer to FIG.
  • FIG. 8a which shows another schematic diagram of adding a search result provided by an exemplary embodiment of the present application
  • the instant messaging application displays the sending confirmation window 702 (or the sending confirmation window 703 ); when the sending logo in the sending confirmation window 702 is clicked, the third target session message is displayed on the instant messaging session page.
  • a search result page is displayed in the instant messaging application, and the search result page displays the detailed information of the search result carried by the third target session message; for example, as shown in Figure 8a If the search result shown is a video, then when the video is clicked to play, the specific content of the video is played in the search result page.
  • Fig. 8b shows another kind of video provided by an exemplary embodiment of the present application.
  • the identifier of the application category is displayed in the third target session message.
  • the search result page includes a plurality of search results matching the search results under the application category, wherein the search result selected as the target search result can be preferentially displayed before or above other search results.
  • the target conversation messages (the first target conversation message, the second target conversation message and the third conversation message) added to the IM conversation page can also be shared (or forwarded) to other IM applications or the same IM application.
  • the essence of the process of target session message sharing is that the target search results are shared or forwarded.
  • the target search results displayed on the QQ session page between user B and user A can be shared on the QQ session page between user B and user C, or on the QQ group chat session page in which user B participates
  • the target search results displayed in can be shared to the WeChat group chat session page in which user B participates, which is not described in detail in this embodiment of the present application.
  • FIG. 9 shows a schematic diagram of a shared object list provided by an exemplary embodiment of the present application; as shown in FIG.
  • the target displayed in the instant messaging session page between the sharer and user A When the session message 901 is triggered to be shared, a shared object list 902 is displayed, and the shared object list includes at least one shared object; assuming that the selected target sharing object is user C, then the instant messaging session page between the sharer and user C is displayed.
  • the target conversation message 901 is displayed in . It should be noted that, in addition to selecting the target sharing object from the sharing object list as shown in FIG. 9 to share (or forwarding) the target session message, the target session message can also be dragged from a session page by dragging and dropping. Drag to another session page to share the target session message.
  • the embodiment of the present application does not limit the specific sharing operation of the target session message.
  • one or more users who belong to the current instant messaging session page with the sharer can quickly and promptly obtain the search results shared by the sharer by selecting the target session message in the instant messaging session page, thereby improving The efficiency of the instant messaging session improves the experience of each user participating in the session.
  • a search window is output when there is a search event in the instant messaging session page, wherein a search event can be present in the instant messaging session page by triggering a search entry or inputting search characters, etc.; enter the search content in the search window Then, N search results matching the search content can be displayed in the search window, where N is an integer; when the target search result in the N search results is selected, the target search result is displayed in the form of a message in the instant messaging session page search results.
  • the instant messaging application program can quickly implement a search and obtain at least one search result corresponding to the search content, which shortens the path for the user to reach the search result, and improves the efficiency of the search.
  • the search results can be displayed in the instant messaging session page in the form of messages, which enables the search results triggered in the instant messaging session page to be quickly given to the participants participating in the instant messaging session. For other users, this provides a new type of conversational search interaction, improving search efficiency and sharing efficiency of search results.
  • the target conversation message in the instant messaging conversation page can also be shared or forwarded to other conversation pages of the instant messaging application, or shared to other instant messaging applications, which fully improves data sharing efficiency and user experience.
  • FIG. 10A shows a system structure diagram to which the message processing method provided by the embodiment of the present application is applicable.
  • the message processing solution described in the above embodiments can be completed by the terminal device 11, the server 12 or the interaction between the terminal device 11 and the server 12, wherein the terminal device 11 can include but is not limited to: a smart phone (such as Android mobile phones, iOS mobile phones, etc.), tablet computers, portable personal computers, mobile Internet Devices (Mobile Internet Devices, MID for short), smart TVs and other devices, the embodiments of this application do not limit the types of terminal devices.
  • Terminal devices 11 include The display screen, which can be a physical screen, a touch screen, and so on.
  • Various instant messaging applications can be installed and run in the terminal device 11.
  • Instant messaging applications refer to Internet-based instant messaging and social interaction applications.
  • Instant messaging applications may include but are not limited to: QQ, WeChat, and corporate WeChat. , map apps with social interaction, gaming apps, and more.
  • the server 12 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, Cloud servers for basic cloud computing services such as middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
  • the terminal device 11 and the server 12 may be directly or indirectly connected through wired or wireless communication, which is not limited in this application.
  • each application category that matches the search content and multiple search results under each application category can be displayed in the result display area according to the user's attention.
  • the popularity of the application category is obtained according to the user's historical behavior statistics.
  • the workflow of the application category and the background (ie, server background, server) in which the search results under the application category are arranged and displayed in the result display area will be described in detail below with reference to FIG. 10B .
  • FIG. 10B shows a schematic diagram of a method for arranging and displaying search results provided by an exemplary embodiment of the present application; in the schematic flowchart of arranging and displaying search results shown in FIG.
  • the process includes: 1. Input search content in a search box, wherein the search box may include a search box displayed in a search window, or a message input box set as a search box.
  • the terminal device performs intent analysis on the search content, and obtains multiple application categories (or categories) matching the search content and the category weights corresponding to each category; among them, the so-called intent analysis can be understood as Analyze the user's purpose or the information the user wants to retrieve according to the search content, and the category weight is used to indicate the importance of the category.
  • intent analysis can be understood as Analyze the user's purpose or the information the user wants to retrieve according to the search content
  • the category weight is used to indicate the importance of the category.
  • the classification database can refer to the database 1001 shown in FIG.
  • the database 1001 contains the word table of articles 1002, the word table of public accounts 1003, the word table of small programs 1004, the word table of videos 1005, etc.; one or more target
  • the methods may include, but are not limited to: using manual rules to classify and label the categories (application categories) corresponding to the search content; Category behavior records) to classify and label each category; or, combine pattern string matching and classification model algorithms such as FastText (fast text classifier), XGBoost (distributed gradient boosting library) to classify and label each category, etc. .
  • FastText fast text classifier
  • XGBoost distributed gradient boosting library
  • the so-called recall of category results may refer to acquiring multiple search results under the category (application category). For example, it is known that the weight of the article is 0.1%, the weight of the official account is 43%, the weight of the applet is 34%, the weight of the video is 12%, and the weight threshold is 20%, then the weight of the official account is 43% > the weight of the applet is 34% > the weight threshold is 20% > Video weight 12% > Article weight 0.1%, get multiple search results that match the search content under the official account and the applet. It should be noted that, according to different categories, the recall methods of category results are different. The main recall methods may include but are not limited to: vocabulary recall, vector recall, inverted recall, etc.; The specific recall method of the target results can be seen in Table 2:
  • each category and the category results under each category can be sorted mainly according to the historical behavior of the user, then each category and the categories under each category can be sorted according to the historical behavior of the user
  • the specific implementation process of sorting the item results can follow the following two rules: 1 Sort the recalled category results (ie search results) under each category. 2 Sort each category.
  • the user here may be a user who holds the terminal device for executing the message processing method described in the embodiments of the present application, or the user here may be a user widely existing in the Internet; according to the definition of the user
  • the above two rules are based on different historical behaviors of users, and the definition of attention intensity indicated by the historical behaviors of users is also different.
  • Sorting the recalled category results under each category can be understood as : In the results of multiple categories under the same category, the category results that the user has browsed at historical times can be preferentially displayed; for example, if the category is an article, the category results under the same category of articles include: Article A, Article B and Article C, where Article A has been browsed by the user at a historical moment, Article A can be displayed in priority order and displayed before Article B and Article C.
  • the sorting of each category can be understood as: statistics on the user's historical behavior data can be used to obtain the user's preferred category type.
  • the official account can be displayed in priority order before the article and applet. More specifically, the category results under the official account can be displayed before the category results under the article and the category results under the applet.
  • the historical behavior of the user when the user is a widespread user on the Internet, includes the historical behavior of a large number of users on the Internet, the popularity of a certain category or category results under a category, and the massive amount of attention. It is related to the user’s historical behavior; among them, 1 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; according to the results of each category at the current moment , the results of each category are arranged and displayed in order from high to low. 2The sorting of each category can be understood as: according to the attention of each category at the current moment, the order of each category is sorted from high to low.
  • the degree of attention to categories 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 favorited, etc.
  • the degree of attention to the category results may be related to the user clicks on the category results. It is related to factors such as the number of times, the number of times of collecting category results and so on.
  • the identifiers of each application category displayed in the result display area and each search result under each application category can be displayed in descending order according to the application category or the degree of interest of the search results, which enables users to first Browse to popular search results to improve user experience.
  • the teacher and the students participate in the same instant messaging session. If the teacher wants to explain a certain knowledge point to the students, the teacher can trigger the keyword "XXXX" for the knowledge point in the instant messaging session page with the students. For example, click the search icon in the instant messaging session page, or enter search characters, etc. to bring up the search window, and enter the keyword "XXXX" in the search window, then you can get the search matching the keyword "XXXX" As a result, the search results may be in the form of video, text, book reviews, and the like.
  • the teacher can filter the target search results from these search results, and add the target search results in the form of messages and send them to the instant communication session page with the students, which not only facilitates the teacher to better convey the content he wants to express, but also enables the teacher to express himself. Students can obtain the knowledge points explained by the teacher more quickly. In addition, students can click on the conversation message sent by the teacher including the target search results, and can quickly access the details of the target search results. The quality of online teaching.
  • one or more participants may have a search requirement, for example, a participant needs to use the search results to persuade other participants, etc.; in this case, The participant can open the IM session page with other participants, and generate a search event in the message editing area included in the IM session page by clicking the search icon or entering search characters in the message input box, etc.; Then, search the content in the output search window, and obtain at least one search result matching the search content; and select the target search result from the at least one search result and add it to the instant messaging session page, which makes the participant who initiates the search. Personnel can quickly transmit the content they want to express to other participants, enriching the form of the input content of the instant messaging session.
  • the target search result on the instant messaging session page can view the detailed information of the target search result in the output search result page (for example, when the target search result carries the identifier of the application category, search
  • the detailed information displayed on the result page is at least one search result under the application category; for example, when the target search result carries the search result identifier, the search result page carries the detailed information of the search result, etc.), which helps participants in the conference Personnel can quickly obtain target search results, improve conference quality, and enhance user experience.
  • FIG. 11 shows a schematic structural diagram of a message processing apparatus provided by an exemplary embodiment of the present application; the message processing apparatus can be used to be a computer program (including program code) running in a terminal device,
  • the message processing apparatus may be an instant messaging application (such as QQ, WeChat, etc.) in the terminal device; the message processing apparatus may be used to execute some or all of the steps in the method embodiments shown in FIG. 1 and FIG. 5 .
  • the message processing apparatus includes the following units:
  • the display unit 1101 is used to display the instant messaging session page, and the instant messaging session page is provided with a message editing area;
  • the processing unit 1102 is configured to output a search window if there is a search event in the message editing area; and receive the search content input in the search window, and display N search results matching the search content in the search window, where N is an integer .
  • the presence of a search event in the message editing area includes at least one of the following:
  • the message editing area includes a search entry; when the search entry is triggered, it is determined that there is a search event in the message editing area;
  • the message editing area includes a message input box; when a search character is detected in the message input box, it is determined that a search event exists in the message editing area.
  • the search entry includes a search icon and/or a search option; the setting manner of the search entry includes at least one of the following:
  • the search entry is set in the message input box
  • the search entry is set in the operation menu
  • the message editing area includes a message input box, and input characters are displayed in the message input box; when the input character is selected, the option bar is triggered to be displayed, and the search entry is set in the option bar.
  • the search window contains hidden options; the processing unit 1102 is further configured to:
  • the processing unit 1102 is specifically used for:
  • the search content contains the search characters.
  • processing unit 1102 is further configured to:
  • search content containing the search characters is sent to the instant messaging session page in the form of a message
  • search content in the form of a message is triggered, a search result page is displayed, and the search result page includes the identifiers of N search results matching the search content.
  • the search window includes a result display area; the processing unit 1102 is specifically configured to:
  • the N search results are clustered into M application categories according to the source, and 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 processing unit 1102 is specifically used for:
  • the identifiers of the M application categories are respectively displayed in the M sub-areas, and the identifier of at least one search result under each application category is displayed in the sub-areas corresponding to each application category.
  • the identifiers of M application categories are respectively displayed in the M sub-areas, including at least one of the following:
  • any one of the M application categories is represented as the ith application category, where i is an integer and i ⁇ M;
  • Display the identifier of at least one search result under the ith application category in the sub-area corresponding to the ith application category including at least one of the following:
  • the identification of at least one search result under the i-th application category is arranged and displayed in the sub-area corresponding to the i-th application category;
  • the user's attention to the application category is obtained according to 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 retrieval behavior of the application category, and the download behavior of the application category.
  • returned items are displayed in the search window; the processing unit 1102 is further configured to:
  • Selecting the return item closes the search window and displays the instant messaging session page again.
  • processing unit 1102 is further configured to:
  • the target search result among the N search results is selected, the target search result is displayed in the form of a message in the instant messaging session page.
  • the search window includes a result display area; the result display area displays an aggregate identifier, and when the aggregate identifier is selected, it means that all N search results are selected, and the target search result includes N search results;
  • the processing unit 1102 is specifically used for:
  • the first target session message is displayed on the instant messaging session page, and the first target session message carries the aggregate identifier.
  • N search results are clustered into M application categories according to sources, each application category includes at least one search result, and M is an integer; any one of the M application categories is represented as The ith application category, i is an integer and i ⁇ M; when the identifier of the ith application category is selected, it means that all search results under the ith application category are selected, and the target search result includes the ith application category. All search results under;
  • the processing unit 1102 is specifically used for:
  • the second target session message is displayed on the instant messaging session page, and the second target session message carries the identifier of the ith application category.
  • the target search result is the jth search result among the N search results, j is an integer and j ⁇ N, and the jth search result refers to any one of the N search results;
  • the processing unit 1102 is specifically used for:
  • the 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.
  • processing unit 1102 is further configured to:
  • search result page is displayed, and the search result page includes identifiers of N search results;
  • search result page is displayed, and the search result page includes the identifiers of N search results under the ith application category; or,
  • search result page is displayed, and the search result page includes detailed information of the jth search result.
  • the target search result is displayed on the IM conversation page in the form of a target conversation message, and the target conversation message is any message in the IM message flow in the IM conversation page; the processing unit 1102, Also used for:
  • the target session message When the target session message is triggered to be shared, output a list of shared objects, and the list of shared objects includes at least one shared object;
  • Target sharing object is any selected sharing object in the sharing object list.
  • each unit in the message processing apparatus shown in FIG. 11 may be separately or all merged into one or several other units to form, or some of the unit(s) may be further split. It is composed of multiple units that are functionally smaller, which can achieve the same operation without affecting the achievement of the technical effects of the embodiments of the present application.
  • the above-mentioned units are divided based on logical functions. In practical applications, the function of one unit may also be implemented by multiple units, or the functions of multiple units may be implemented by one unit. In other embodiments of the present application, the message processing apparatus may also include other units, and in practical applications, these functions may also be implemented with the assistance of other units, and may be implemented by cooperation of multiple units.
  • a general-purpose computing device such as a computer
  • a general-purpose computing device may be implemented on a general-purpose computing device including a central processing unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and other processing elements and storage elements.
  • CPU central processing unit
  • RAM random access storage medium
  • ROM read-only storage medium
  • Run a computer program (including program code) that can be used to execute some or all of the steps in the method embodiments shown in FIG. 1 and FIG. 5 to construct a message processing apparatus as shown in FIG. 11 , and to implement the embodiments of the present application message processing device.
  • the computer program can be recorded on, for example, a computer-readable recording medium, and loaded in the above-mentioned computing device through the computer-readable recording medium, and executed therein.
  • the display unit 1101 is configured to display the instant messaging session page in the instant messaging application.
  • the processing unit 1102 detects a search event in the instant messaging session page (for example, triggering a search entry or input in the message editing area) When searching for characters, etc.), the search window is output, and the search window can be displayed on the instant messaging session page in the form of a floating layer or the search window can be displayed in the form of an independent page; the user can enter the search content in the search window, and the search content can be is the search content newly input by the user, or the search content is the historical search content selected in the history record display area; at least one search result matching the search content may be displayed in the search window, and the search result may include the identifier of the application category, or , the identification 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 the identification of a certain application category,
  • the target search result is the identifier of the application category
  • the identifier of at least one search result under the application category is displayed on the search result page.
  • the identifiers of these search results can still be added to the instant messaging session page, for another example, when the target search result is a search result under a certain application category, the search result page displays the detailed information of the search result, etc.;
  • the target session message displayed in the instant messaging session page can also be shared (or forwarded) to another instant messaging session page or another application program.
  • the instant messaging application can quickly realize the search and obtain the corresponding search results, which shortens the path for the user to reach the search results, and helps the user to obtain the search results more quickly.
  • the desired search results in addition, the search results are supported to be displayed in the instant messaging session page in the form of a message, which enables the search results obtained by triggering in the instant messaging session page to be quickly distributed to other users participating in the instant messaging session, which provides A new type of conversational search interaction method is developed to improve the efficiency of search and the sharing of search results.
  • FIG. 12 shows a schematic structural diagram of a message processing device provided by an exemplary embodiment of the present application.
  • the 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 may be connected by a bus or other means.
  • the communication interface 1202 is used for receiving and sending 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 for storing a computer program, the computer program includes program instructions, and the processor 1201 is used for executing the program instructions stored in the computer-readable storage medium 1203 .
  • the processor 1201 (or called CPU (Central Processing Unit, central processing unit)) is the computing core and the control core of the message processing device, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions so as to Implement the corresponding method process or corresponding function.
  • CPU Central Processing Unit
  • Embodiments of the present application further provide a computer-readable storage medium (Memory), where the computer-readable storage medium is a memory device in a message processing device, used to store programs and data.
  • the computer-readable storage medium here may include both a built-in storage medium in the message processing device, and certainly also an extended storage medium supported by the message processing device.
  • the computer-readable storage medium provides storage space in which the processing system of the message processing device is stored.
  • one or more instructions suitable for being loaded and executed by the processor 1201 are also stored in the storage space, and these instructions may be one or more computer programs (including program codes).
  • 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 memory; in some embodiments, it can also be at least one A computer readable storage medium located remotely from the aforementioned processor.
  • the message processing device may be the terminal device mentioned in the foregoing embodiment; one or more instructions are stored in the computer-readable storage medium; loaded and executed by the processor 1201 and stored in the computer-readable storage medium One or more instructions to implement the corresponding steps in the above message processing method embodiments; in specific implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and execute the steps described in the embodiments of the present application. message handling method.
  • the processor 1201 is configured to display an instant messaging session page in an instant messaging application, and a search event can be generated in the message editing area, for example, triggering a search entry or inputting search characters in the message editing area, etc.;
  • a search event can be generated in the message editing area, for example, triggering a search entry or inputting search characters in the message editing area, etc.;
  • the search window is output, and the search window can be displayed on the IM session page in the form of a floating layer, or the search window can be displayed in the form of an independent page;
  • the user can enter the search content in the search window,
  • the search content may be the search content newly input by the user, or the search content may be the historical search content selected in the history record display area; at least one search result matching the search content may be displayed in the search window, and the search result may include application
  • the target search result is the identifier of the application category
  • at least the An identifier of a search result can still be added to the instant messaging session page.
  • the search result page displays the details of the search result information, etc.; in addition, the target session message displayed in the instant messaging session page can also be shared (or forwarded) to another instant messaging session page, or another application.
  • search results are supported to be displayed in the instant messaging session page in the form of a message, which enables the search results obtained by triggering in the instant messaging session page to be quickly distributed to other users participating in the instant messaging session, which provides A new type of conversational search interaction method is developed to improve the efficiency of search and the sharing of search results.
  • a computer program product or computer program comprising computer instructions stored in a computer readable storage medium.
  • the processor of the computer device 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 methods provided in the embodiments described in FIG. 1 and FIG. 5 .
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • a computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored in or transmitted over a computer-readable storage medium.
  • Computer instructions may be sent from one website site, computer, server, or data center to another website site by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) , computer, server or data center.
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
  • Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.

Abstract

一种消息处理方法、装置、设备及介质,其中,该方法可包括:显示即时通信会话页面,即时通信会话页面中设有消息编辑区(1013);若消息编辑区(1013)中存在搜索事件,则输出搜索窗口(1021);接收搜索窗口(1021)中输入的搜索内容,并在搜索窗口(1021)中显示与搜索内容相匹配的N个搜索结果,N为整数。

Description

一种消息处理方法、装置、设备及存储介质
本申请要求于2020年09月09日提交中国专利局、申请号为202010942933.8、名称为“一种消息处理方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,具体涉及消息处理领域,尤其涉及一种消息处理方法、一种消息处理装置、一种消息处理设备及一种计算机可读存储介质。
背景
在即时通信会话场景中常常会产生搜索的需求。相关技术中,通过搜索引擎(例如,百度搜索、搜狗搜索、头条搜索等等)来搜索内容,可以帮助用户在海量的数据中更快的找到满足需求的内容。
技术内容
本申请实施例提供一种消息处理方法,包括:
显示即时通信会话页面,即时通信会话页面中设有消息编辑区;
若消息编辑区中存在搜索事件,则输出搜索窗口;
接收搜索窗口中输入的搜索内容,并在搜索窗口中显示与搜索内容相匹配的N个搜索结果,N为整数。
本申请实施例提供一种消息处理装置,包括:
显示单元,用于显示即时通信会话页面,即时通信会话页面中设有消息编辑区;
处理单元,用于若消息编辑区中存在搜索事件,则输出搜索窗口;
接收搜索窗口中输入的搜索内容,并在搜索窗口中显示与搜索内容相匹配的N个搜索结果,N为整数。
本申请实施例提供一种消息处理设备,该消息处理设备包括:
处理器,适于执行计算机程序;
计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时,实现如上述的消息处理方法。
本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机指令,该计算机指令被计算机设备的处理器读取并执行时,使得计算机设备执行上述的消息处理方法。
本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述的消息处理方法。
附图说明
图1示出了本申请一个示例性实施例提供的一种消息处理方法的流程图示意图;
图2a示出了本申请一个示例性实施例提供的一种搜索入口的示意图;
图2b示出了本申请一个示例性实施例提供的另一种搜索入口的示意图;
图2c示出了本申请一个示例性实施例提供的另一种搜索入口的示意图;
图2d示出了本申请一个示例性实施例提供的另一种搜索入口的示意图;
图2e示出了本申请一个示例性实施例提供的一种产生搜索事件的示意图;
图3a示出了本申请一个示例性实施例提供的一种在搜索窗口中输入搜索内容的示意图;
图3b示出了本申请一个示例性实施例提供的另一种在搜索窗口中输入搜索内容的示意图;
图3c示出了本申请一个示例性实施例提供的另一种在搜索窗口中输入搜索内容的示意图;
图4a示出了本申请一个示例性实施例提供的一种显示搜索结果的示意图;
图4b示出了本申请一个示例性实施例提供的另一种显示搜索结果的示意图;
图5示出了本申请一个示例性实施例提供的另一种消息处理方法的流程示意图;
图6a示出了本申请一个示例性实施例提供的一种添加搜索结果的示意图;
图6b示出了本申请一个示例性实施例提供的另一种添加搜索结果的示意图;
图6c示出了本申请一个示例性实施例提供的一种搜索结果页面的示意图;
图7a示出了本申请一个示例性实施例提供的另一种添加搜索结果的示意图;
图7b示出了本申请一个示例性实施例提供的另一种搜索结果页面的示意图;
图8a示出了本申请一个示例性实施例提供的另一种添加搜索结果的示意图;
图8b示出了本申请一个示例性实施例提供的另一种搜索结果页面的示意图;
图9示出了本申请一个示例性实施例提供的一种分享对象列表的示意图;
图10A示出了本申请实施例提供的消息处理方法所适用的系统结构图;
图10B示出了本申请一个示例性实施例提供的一种搜索结果排列显示的方法示意图;
图11示出了本申请一个示例性实施例提供的一种消息处理装置的结构示意图;
图12示出了本申请一个示例性实施例提供的一种消息处理设备的结构示意图。
实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例涉及即时通信(Instant Message,IM)。即时通信是指能够即时发送和接收互联网消息的相关业务。随着计算机通信技术的飞速发展,即时通信的功能日益丰富,逐渐集成了电子邮件、博客、音乐、电视和游戏等多种功能。即时通信不再是一个单纯的聊天工具,它已经发展成集交流、资讯、娱乐、电子商务、办公协作和企业客户服务等为一体的综合化信息平台。即时通信会话是指两个或两个以上的用户借助即时通信应用程序(例如,QQ、微信、企业微信、包含社交交互功能的地图应用程序、游戏应用程序等等)所发起的会话。即时通信会话可分为单独会话和群聊会话,所谓单独会话是指两个用户之间的即时通信会话。所谓群聊会话是指两个以上的用户之间的即时通信会话。参与同一即时通信会话的各个用户之间产生的会话消息以消息流的方式显示于即时通信会话页面中。
本申请实施例还涉及搜索,所谓搜索也称检索,是指通过输入搜索内容(如:检索关键词、检索query)并通过运行搜索引擎来获得与搜索内容相匹配的搜索结果的过程。例如,为了检索得到某部电影的播放资源,可输入与该电影相关的一些搜索内容(如电影的名称、电影中出演的演员的名称、电影中出现的角色的名称等等),搜索引擎基于该搜索内容在互联网中执行搜索操作,从而得到该电影的播放资源(或风评、简介等等信息)。
实践发现,通过搜索引擎来搜索内容的过程是作为一个独立的搜索流程,来实现对内容的搜索;例如,当用户在即时通信会话场景中产生搜索的诉求时,需要用户中断当前即时通信(如聊天、视频、语音等等)的行为,从即时通信会话页面中切换到搜索引擎的搜索页面,再在搜索引擎的搜索页面中进行内容的搜索以满足搜索需求,这使得即时通信会话场景中的搜索过程需要频繁进行应用程序的切换,搜索路径较长,搜索效率较低,用户体验不顺畅。
基于此发现,本申请实施例提出一种消息处理方案,该方案提出:当即时通信会话页面中存在搜索事件(例如触发搜索入口或输入搜索字符等)时输出搜索窗口,在该搜索窗口输入搜索内容就可在该搜索窗口中显示与搜索内容相匹配的N(N为整数)个搜索结果。另外,当该N个搜索结果中的目标搜索结果被选择时,在即时通信会话页面中以消息形式显示该目标搜索结果。在本申请实施例提出的方案中,参与即时通信会话的任一用户在编辑即时通信会话消息的过程中,如果产生搜索需求,可在即时通信应用程序中快速实现搜索并获得相应搜索结果,这缩短了用户触达搜索结果的路径,更快捷的帮助用户获取想要的搜索结果;另外,搜索结果支持以消息形式显示在即时通信会话页面中,这使得在即时通信会话页面中触发获得的搜索结果能够被快速给参与该即时通信会 话的其他用户,这提供了一种新型的会话搜索交互方式,提升搜索效率和搜索结果的分享效率。
下面将结合附图,对本申请实施例提出的消息处理方案进行详细介绍。
图1示出了本申请一个示例性实施例提供的一种消息处理方法的流程图示意图;本申请实施例的消息处理方法的流程可以由参与即时通信会话的任一用户所使用的终端设备来执行。如图1所示,该消息处理方法可包括如下步骤S101-步骤S103:
S101、显示即时通信会话页面,即时通信会话页面中设有消息编辑区。
即时通信会话页面显示于参与即时通信会话的任一用户所使用的终端设备中。即时通信会话页面中显示有参与同一即时通信会话的各个用户之间产生的即时通信会话消息流,该即时通信会话消息流中包含至少一条会话消息。以用户A与用户B之间的单独会话为例,如图1所示,用户B所使用的终端设备上显示用户B与用户A之间的即时通信会话页面1011,如图所示,即时通信会话页面1011中显示有与用户B进行即时通信会话的对象标识(即用户A的标识“XXX好友”)。该即时通信会话页面1011中包含消息展示区1012和消息编辑区1013;其中:
消息展示区1012用于显示参与即时通信会话的各个用户之间产生的即时通信会话消息流10121,该即时通信会话消息流10121中包含至少一条会话消息;比如,图1所示,即时通信会话消息流10121中包含由用户A编辑并发送的会话消息101211,以及由用户B编辑并发送的会话消息101212;
消息编辑区1013用于编辑以及显示编辑的会话消息,消息编辑区1013可包含消息输入框10131和键盘区域10132;其中,消息输入框10131用于接收会话消息的输入,而键盘区域10132用于实现会话消息的编辑以输入至消息输入框10131中。需要说明的是,键盘区域10132并非一定存在于消息编辑区1013中,比如,键盘区域10132可被折叠显示于消息编辑区1013中,当消息输入框10131被触发而表示出输入意图时,键盘区域10132才被展开显示于消息编辑区1013中。或者,终端设备连接硬件键盘,此时消息编辑区1013中不包含键盘区域10132,消息输入框10131中的内容由硬件键盘输入。
继续参见图1,在搜索窗口1021还显示有返回项1024;当返回项1024被选择时,将搜索窗口1021关闭,并再次显示即时通信会话页面。
S102、若消息编辑区中存在搜索事件,则输出搜索窗口。
在一些实施例中,所述消息编辑区存在搜索事件包括以下至少一种:所述消息编辑区包括搜索入口;当所述搜索入口被触发时,确定所述消息编辑区中存在搜索事件;所述消息编辑区包括消息输入框;当在所述消息输入框中检测到搜索字符时,确定所述消息编辑区中存在搜索事件。
即时通信会话场景中往往会存在搜索需求,此时,参与即时通信会话的任一用户可以在即时通信会话页面上发起搜索事件以触发搜索流程,具体地,用户可以在即时通信会话页面中的消息编辑区中发起搜索事件以触发搜索流程。当消息编辑区中存在搜索事件时,终端设备输出搜索窗口。搜索窗口是一种用于进行搜索操作以及显示搜索结果的窗口。在一种实施方式中,搜索窗口可以是即时通信会话页面中的一个窗口,即终端设备可以在即时通信会话页面中输出搜索窗口,此时搜索窗口可以以浮层的形式全部或部分显示于即时通信会话页面中。在另一种实施方式中,搜索窗口可以是与即时通信会话页面相互独立的一个窗口,即终端设备可以采用一个独立于即时通信会话页面的搜索页面来显示搜索窗口;本申请实施例对搜索窗口的具体展现形式不做限定。如图1所示,当消息编辑区中产生搜索事件后,在即时通信会话页面中以浮层形式显示搜索窗口1021,其中,搜索窗口1021中包括搜索内容输入区域1022和结果展示区1023;其中,搜索内容输入区域1022用于输入搜索内容,如,输入“XX电影”、“XXX”等等;结果展示区1023用来展示对搜索内容检索得到的N个搜索结果,N为整数。
在消息编辑区中可以通过选择搜索入口和/或输入搜索字符的方式产生搜索事件,下面结合图2a、图2b、图2c、图2d以及图2e来详细说明,在消息编辑区中产生搜索事件的一些具体实施过程。
在一个实施例中,通过选择搜索入口来产生搜索事件。具体地,消息编辑区1013中包括搜索入口;当搜索入口被选择时,表示参与即时通信会话的用户存在搜索需求,那么在消息编辑区中产生搜索事件。其中,搜索入口可以包括搜索图标和/或搜索选项,搜索入口的设置方式包括以下至少一种:若消息编辑区包括消息输入框,则搜索入口设置于消息输入框中;若消息编辑区包括操作菜单,则搜索入口设置于操作菜单中;若消息编辑区包括消息输入框,且消息输入框中显示有输入字符,当选择输入字符被选择时,触发显示选项栏,搜索入口设置于选项栏中。
在一些实施例中,所述搜索窗口中包含隐藏选项;当所述隐藏选项被触发时,隐藏所述搜索窗 口;其中,所述消息输入框被设为所述隐藏的搜索窗口中的搜索框;所述在所述搜索窗口中输入搜索内容,包括:在所述消息输入框中输入搜索内容,所述搜索内容包含所述搜索字符。
下面详细说明搜索入口的各种设置方式:
在一种实现方式中,搜索入口以搜索图标的形式设置于即时通信会话页面的消息编辑区1013中;具体地,搜索图标设置于消息编辑区1013的消息输入框10131中;当用户选择消息输入框10131中的搜索图标时,即在消息编辑区1013中产生搜索事件。参见图2a,图2a示出了本申请一个示例性实施例提供的一种搜索入口的示意图;如图2a所示,消息输入框10131中包含搜索图标101311;如果用户选中搜索图标101311,表示在消息编辑区1013中产生搜索事件。
在另一种实现方式中,搜索入口以搜索选项的形式设置于即时通信会话页面的消息编辑区域1013中;当用户选择消息编辑区域1013中的搜索选项时,就在消息编辑区1013中产生搜索事件。具体地,即时通信会话页面的消息编辑区1013中包括操作菜单,搜索入口以搜索选项的形式设置于操作菜单中,可以理解的是,操作菜单内除包含搜索选项外,还可以包含其他选项(如拍摄选项、红包选项等等)。需要说明的是,操作菜单可能直接显示于即时通信会话页面中,也可能间接显示于即时通信会话页面中,下面结合图2b对操作菜单的位置进行介绍。请参见图2b,图2b示出了本申请一个示例性实施例提供的另一种搜索入口的示意图;如图2b所示,在即时通信会话页面1011包含的消息编辑区1013中的消息输入框10131的右侧,显示有更多标识10133,更多标识10133用于折叠显示一些其它选项;当更多标识10133被选中时,在消息编辑区1013中以浮层形式显示操作菜单1014,操作菜单1014中显示折叠显示于更多标识10133中的那部分选项(例如,转账选项、语音通话选项、相机选项、搜索选项10141等等);另外,操作菜单1014还可直接显示于即时通信会话页面中,具体地,操作菜单1014可直接显示于消息输入框10131下方;操作菜单1014中包含至少一个选项,搜索选项10141以一个选项的方式直接显示于操作菜单中;或者,操作菜单中包括更多标识10133,当更多标识10133被选中时,触发显示选项窗口1015,选项窗口1015中包含至少一个被隐藏的选项,其中,搜索选项10141作为一个被隐藏的选项设置于选项窗口1015中。综上述,操作菜单1014可直接或间接显示于即时通信会话页面中,同理,搜索入口包括的搜索选项可以直接或间接的显示于操作菜单1014中,也就是说,搜索入口包括的搜索选项10141可以直接或间接的方式显示于即时通信会话页面中,本申请实施例对操作菜单1014以及搜索选项10141的具体位置不作限定。
在另一种实现方式中,搜索入口还可以设置于与输入字符关联的选项栏中,此处的输入字符是指,由用户在消息编辑区1013所包含的消息输入框10131中输入的输入字符;当用户选择选项栏中的搜索选项时,表示选中搜索入口,即在消息编辑区1013中产生搜索事件。所谓的与输入字符关联的选项栏是指通过触发消息输入框中显示的输入字符输出的选项栏。具体地,消息编辑区包括消息输入框,消息输入框中显示有输入字符(该输入字符为具有搜索需求的用户主动输入的);当选择输入字符时触发显示选项栏,搜索入口便设置于选项栏中。其中,消息输入框中的输入字符被选择的方式可包括但不限于:双击(如手指连续两次点击输入字符,两次点击间隔1秒)、长按(如手指持续按压输入字符,持续时间为2秒)等等;另外,被选中的输入字符可包括消息输入框中显示的部分输入字符或者消息输入框中显示的全部输入字符,本申请实施例对此不作限定;并且,在搜索窗口所包含的搜索框内可以显示被选中的输入字符。请参见图2c,图2c示出了本申请一个示例性实施例提供的另一种搜索入口的示意图;如图2c所示,在消息编辑区1013中显示有输入字符“XX,隐秘XX”10138;当输入字符“XX,隐秘XX”10138中的部分输入字符“隐秘”101381被选择时,在消息输入框所在区域显示选项栏202,选项栏202中包括至少一个选项(例如,复制选项、多选选项、删除选项等等),搜索选项2021作为一个选项设置于选项栏202中;当搜索选项2021被点击时,在即时通信会话页面中显示搜索窗口1021,其中,搜索窗口所包含的搜索框中显示有在消息输入框中被选中的输入字符“隐秘”101381。需要说明的是,除上述描述的搜索入口可设置于与输入字符关联的选项栏中以外,搜索入口还可设置于与会话消息相关联的选项栏中,此处的会话消息可以是参与同一即时通信会话的任一用户编辑并发送的消息;具体地,即时通信会话页面中包括消息展示区,消息展示区显示的即时通信会话消息流中包括至少一条会话消息;当任一条会话消息中的消息内容被选择时,在即时通信会话页面中显示选项栏,搜索入口便设置于选项栏中。请参见图2d,图2d示出了本申请一个示例性实施例提供的另一种搜索入口的示意图;如图2d所示,当即时通信会话页面中的任一会话消息(如会话消息201)被选择时,在被选择的会话消息所在区域显示选项栏202,选项栏202中包括至少一个选项(例如,复制选项、多选选项、删除选项等等),搜索选项2021作为一个选项设置于选项栏202中;当搜索选项2021被点击时,在即时通 信会话页面中显示搜索窗口1021。
在另一个实施例中,通过输入搜索字符来产生搜索事件。具体地,通过在即时通讯会话页面中的消息输入框中输入搜索字符,可实现在消息编辑区中产生搜索事件。其中,搜索字符可以是指一些携带搜索入口的字符或字符串,比如,字符“#”、字符“!”、字符串“XX&X”等等,通过在键盘区域10132(或与终端设备连接的硬件键盘)中点击搜索字符,即在消息输入框中输入搜索字符,就可产生搜索事件。请参见图2e,图2e示出了本申请一个示例性实施例提供的又一种产生搜索事件的示意图;如图2e所示,在消息编辑区1013中包含键盘区域10132,如果用户在键盘区域10132中点击“#”键,即产生搜索事件,则输出搜索窗口。当然,除了可以在键盘区域中输入搜索字符外,还可以在与终端设备(如电脑)连接的外接硬件键盘中输入搜索字符,本申请实施例对具体如何输入搜索字符的方式不作限定。
综上描述可知,用户在即时通信会话页面中通过上述的简单操作,即可在即时通信会话页面所包含的消息编辑区中产生搜索事件,这使得触发产生搜索事件的操作简单,提高用户操作的简便性。
S103、接收搜索窗口中输入的搜索内容,并在搜索窗口中显示与搜索内容相匹配的N个搜索结果,N为整数。
在一种实现方式中,搜索窗口中包含搜索内容输入区域,搜索内容输入区域包含搜索框和历史记录显示区域,历史记录显示区域用于显示历史搜索内容;那么,在搜索窗口中输入搜索内容的方式可以包括:在搜索框中输入历史记录显示区域中被选中的历史搜索内容。请参见图3a,图3a示出了本申请一个示例性实施例提供的一种在搜索窗口中输入搜索内容的示意图;如图3a所示,搜索窗口1021中包括搜索输入区域1034,其中,搜索输入区域1034包括搜索框10341和历史记录显示区域10342;其中,历史记录显示区域10342中显示历史时刻搜索过的历史搜索内容,这样用户可以从历史记录显示区域10342中选择历史搜索内容进行搜索。其中,从历史记录显示区域10342中选择历史搜索内容的方式可包括但不限于:点击历史搜索内容,或者将历史搜索内容拖拽至搜索框内,本申请实施例对选择历史搜索内容的方式不作限定。例如,在历史时刻,用户曾搜索“XXXX好看的”、“XX这样XX”等搜索内容,则当即时通信会话页面所包含的消息编辑区中产生搜索事件之后,输出的搜索窗口中历史记录显示区域显示历史搜索内容:“XXXX好看的”、“XX这样XX”;此时,如果用户选择历史搜索内容“XXXX好看的”,那么搜索框中显示搜索内容“XXXX好看的”,并显示与搜索内容“XXXX好看的”相匹配的至少一个搜索结果。
在该技术方案中,搜索窗口包含历史记录显示区域,历史记录显示区域包含历史搜索内容;当显示搜索窗口时,可通过选中历史记录显示区域中的历史搜索内容,快捷地实现对同一搜索内容的多次搜索,提升用户的搜索体验。
在另一种实现方式中,在搜索窗口中输入搜索内容的方式可以包括:在搜索框中输入新的搜索内容。请参见图3b,图3b示出了本申请一个示例性实施例提供的另一种在搜索窗口中输入搜索内容的示意图;如图3b所示,用户还可以不从历史记录显示区域10342中选择历史搜索内容作为在搜索窗口中输入的搜索内容,而是在搜索框中输入新的搜索内容作为搜索窗口中输入的搜索内容;需要说明的是,在持续输入搜索内容的过程中,搜索窗口内可以实时显示关于搜索内容的多个推荐内容,这样当多个推荐内容中存在用户想要搜索的内容时,用户不需要继续输入,只需选择想要的推荐内容,就可实现在搜索框中输入搜索内容,其中,被推荐的多个推荐内容可能是按照当前时间段内互联网中与搜索内容相匹配的推荐内容的热度参数进行推荐的,比如,热度参数可以是当前时间段内推荐内容的点击量、浏览量、点赞数等等;或者,被推荐的多个推荐内容是根据用户在历史时刻的历史记录来推荐度,历史记录可能包括历史搜索内容、历史浏览内容等等,本申请实施例对此不作限定。例如,在搜索框内输入“隐秘的角落”(搜索内容)的过程中,当用户输入“隐秘”两个字时,在搜索窗口内显示包含“隐秘”这两个字的推荐内容(比如,隐秘的角落、XX隐秘XX、XXX隐秘XX等等),这时用户可直接从推荐内容中选择“隐秘的角落”,而不必继续在搜索框中输入“的角落”这几个关键字。
需要说明的是,搜索内容除了可以是上述描述的文字内容以外,搜索内容还可以包括但不限于:语音、图片、文本等等形式。以搜索内容为语音(或图片)为例来对在搜索窗口中输入语音(或图片)的过程进行说明:请参见图3c,图3c示出了本申请一个示例性实施例提供的另一种在搜索窗口中输入搜索内容的示意图;如图3c所示,搜索窗口中包含语音标识301,当语音标识301被选择时,触发语音输入,输入的语音还可转换为文字形式等等,其中,选择语音标识301的方式可包括但不限于长按语音标识等等。另外,如图3c所示,搜索窗口中还包括更多标识302,当更多标识302被选择时,在搜索窗口中以浮层形式展现隐藏窗口303,隐藏窗口303中包括一些被折叠显 示的选项,如图片选项3031、音乐选项3032等等,其中,当图片选项3031被选择时,用户可将终端设备本地缓存的或即时从互联网中获取的图片当做搜索内容输入搜索框中,以实现对图片的搜索;同理,当音乐选项3032被选择时,用户可将终端设备本地缓存的或即时从互联网中获取的音频当做搜索内容输入搜索框中,以实现对音频的搜索。当然,图片选项3031、音乐选项3032这些选项也可以类似于语音标识301,直接显示于搜索窗口中,本申请实施例对此不作限定。
搜索窗口的搜索框中被输入搜索内容之后,搜索窗口包含的结果展示区可显示与搜索内容相匹配的N个搜索结果,N个搜索结果中包括多个应用类别以及各个应用类别下的至少一个搜索结果,其中,N为整数;当N为0时,表示不存在与搜索内容相匹配的搜索结果,此时可输出提示消息来提示用户调整搜索内容进行重新搜索,以得到与搜索内容相匹配的搜索结果。其中,上述应用类别可以包括但不限于:视频、文章、公众号、小程序等等。比如,搜索框中输入的搜索内容为“隐秘的角落”,则搜索窗口的结果展示区中展现与“隐秘的角落”相匹配的至少一个搜索结果,其中,搜索结果可以是包含“隐秘的角落”中全部或部分关键字的结果,比如,文章的标题或内容中包含“隐秘的角落”中全部或部分关键字,又比如,视频的标题或评论中包括“隐秘的角落”中全部或部分关键字等等。举例来说,请参见图4a,图4a示出了本申请一个示例性实施例提供的一种显示搜索结果的示意图;如图4a所示,结果展示区1023中包含N个搜索结果,N为整数,例如,搜索结果为文章“隐秘的XX”;需要说明的是,由于终端设备的显示屏的长度有限,搜索窗口的结果展示区包含的N个搜索结果可能不能全部显示于显示屏中,此时,搜索窗口中设置有滑动轴401,通过滑动滑动轴401,搜索窗口的结果展示区1023可滑动显示被折叠显示的那部分搜索结果。可以理解的是,除滑动显示的方式,搜索窗口也可在最底端设置“更多选项”,当点击“更多选项”时,将折叠显示的搜索结果全部或部分进行显示,参见图4b,图4b示出了本申请一个示例性实施例提供的另一种显示搜索结果的示意图;如图4b所示,在搜索窗口的最底端包括“更多∨”标识402,当“更多∨”标识402被选中时,将被折叠显示的搜索结果部分或全部进行显示,当再次点击“更多∨”标识402时,可将多个搜索结果进行隐藏,这样可以方便实现搜索结果的浏览。
具体地,N个搜索结果按照来源被聚类至M个应用类别,所谓按照来源进行聚类是指:如果第一搜索结果(该第一搜索结果是指M个搜索结果中的任一个)是从第一应用类别(该第一应用类别是指M个应用类别中的任一个)中检索获得的,那么第一搜索结果就被聚类至第一应用类别。每个应用类别下包括至少一个搜索结果,M为整数;结果展示区被划分为M个子区域;那么M个子区域中可分别显示M个应用类别的标识,并在每个应用类别对应的子区域中显示每个应用类别下的至少一个搜索结果的标识。其中,搜索结果的应用类别可以包括但不限于:公众号、文章、视频、视频号、小程序等等。请再参见图4b,N个搜索结果按照来源被聚类至应用类别-影视作品403、小程序404……中,其中,在影视作品403所在的子区域中包括应用类别影视作品下的与搜索内容相匹配的各种视频(如电影、视频)的标识,在小程序404所在的子区域中包括应用类别小程序下的与搜索内容相匹配的小程序的标识。需要说明的是,搜索结果的标识或者应用类别的标识可以是搜索结果(或应用类别)的标题、图标等等,本申请实施例对此不作限定。
在一些实施例中,通过选择结果展示区中的应用类别的标识,可实现对应用类别的分享,进而实现对该应用类别下的所有搜索结果的分享,提升搜索结果分享效率。并且,通过选择结果展示区中的搜索结果的标识,可实现对单条搜索结果的分享,提升搜索结果分享效率。
另外,搜索窗口中的N个搜索结果可按照多种方式进行显示。具体地,M个应用类别的标识在结果展示区中可以按照如下至少一种方式进行显示:
(1)将M个应用类别的标识按照随机顺序显示在M个子区域中。
(2)按照用户对应用类别的关注热度由高至低的顺序,将M个应用类别排列显示在M个子区域中。其中,用户对应用类别的关注热度是根据用户的历史行为统计得到的;用户的历史行为包括以下至少一项:对应用类别的使用行为、对应用类别的检索行为及对应用类别的下载行为。在一种实施方式中,此处的用户可以是指互联网中广泛存在的海量用户;在这种情况下,用户的历史行为可以包括海量用户对应用类别的使用行为、海量用户对应用类别的检索行为以及海量用户对应类别的下载行为;比如,海量用户在应用类别A、应用类别B、应用类别C中,对应用类别A的使用率最高,表示应用类别A的关注热度最高,则应用类别A可排列显示于应用类别B、应用类别C之前。再如,海量用户检索同一应用类别的次数等等,如果检索同一应用类别的次数越多,表示该应用类别的关注热度更高,反之,检索同一应用类别的次数越少,表示该应用类别的关注热度更低。再如,海量用户对某一应用类别下的搜索结果下载次数较多,表示该应用类别的关注热度较高;关注热度高的应用类别的标识显示于关注热度低的应用类别的标识之前(或之上)。另一种实施方 式中,用户可以是指持有本申请实施例中的终端设备的用户,即参与即时通信会话的任一用户;在这种情况下,用户的历史行为可以包括:该用户对应用类别的使用行为、该用户对应用类别的检索行为及该用户对应用类别的下载行为;比如,在历史时间段内该用户使用(如打开、浏览)应用类别的次数,如该用户在历史时间段内点击公众号的次数明显高于点击其他应用类别的次数,表示公众号的关注热度高于其他应用类别,则公众号的标识被显示于其他应用类别的标识之前(或之上)。再如,在历史时间段内该用户检索应用类别的次数;再如,在历史时间段内该用户是否下载过某应用类别;等等。
可以理解的是,每个应用类别对应的子区域中的各个搜索结果也按照一定的顺序进行排列显示,具体地,假设M个应用类别中的任一个应用类别标识为第i个应用类别,i为整数且i≤M;在第i个应用类别对应的子区域中显示第i个应用类别下的至少一个搜索结果的标识的方式可以包括但不限于以下至少一种:(1)将第i个应用类别下的至少一个搜索结果的标识按照随机顺序显示在第i个应用类别对应的子区域中。(2)按照各搜索结果与用户的历史行为之间的匹配度由高至低的顺序,将第i个应用类别下的至少一个搜索结果的标识排列显示在第i个应用类别对应的子区域中。具体地,各个搜索结果在应用类别下的子区域显示的方式与上述应用类别的标识显示方式一样,在同一应用类别下的子区域中,将关注热度较高的搜索结果的标识显示于关注热度较低的搜索结果的标识之前(或之上),同一应用类别下各个搜索结果的显示方式的具体实施过程可参见上述应用类别的标识的显示方式的相关描述,在此不赘述。另外,各个应用类别的标识和各个搜索结果的标识之间还可以进行混合排列,此处的各个搜索结果为各个应用类别下的搜索结果;具体地,可基于各个搜索结果或应用类别的类别权重、搜索结果的时效性等因素,结合人工规则进行混合排列;比如,人工规则可如表1所示,其中:
表1 人工规则
Figure PCTCN2021112901-appb-000001
根据表1所示的人工规则,在对各个搜索结果进行排列时,可将工具类搜索结果优先排列于其他搜索结果之前,其中,工具类搜索结果可以是指可帮助用户查询信息的搜索结果,比如,查询机票的小程序等等。将用户历史时刻使用过的搜索结果排列显示于其他相关搜索结果之前,其中,其他相关搜索结果可以是指与搜索内容具有相同关键字的文本等结果。当然,表1所示的人工规则还可以发生变化,本申请实施例对此不做限定。
本申请实施例中,当即时通信会话页面中的消息编辑区中存在搜索事件时输出搜索窗口,其中,通过触发搜索入口或输入搜索字符等方式可使即时通信会话页面中的消息编辑区中产生搜索事件;在搜索窗口中输入搜索内容后,可在该搜索窗口中显示与搜索内容相匹配的N个搜索结果,N为整数。通过上述过程,参与即时通信会话的任一用户存在搜索需求时,可在即时通信会话页面所包含的消息编辑区中主动触发产生搜索事件,进而在即时通信应用程序中快速实现搜索并获得搜索内容对应的至少一个搜索结果,这缩短了用户触达搜索结果的路径,更快捷的帮助用户获取想要的搜索结果。
本申请实施例还支持将结果展示区中的目标搜索结果,以会话消息的形式显示于即时通信会话页面中;具体可参见图5,图5示出了本申请一个示例性实施例提供的另一种消息处理方法的流程示意图;本申请实施例的消息处理方法的流程可以由参与即时通信会话的任一用户所使用的终端设备来执行。如图5所示,该消息处理方法包括但不限于如下步骤S501-步骤S505:
S501、显示即时通信会话页面,即时通信会话页面中设有消息编辑区。
S502、若消息编辑区中存在搜索事件,则输出搜索窗口。
S503、在搜索窗口中输入搜索内容,并在搜索窗口中显示与搜索内容相匹配的N个搜索结果, N为整数。
需要说明的是,步骤S501-步骤S503的具体实施过程可参见图1所示的步骤101-步骤S103的具体实施过程的相关描述,在此不做赘述。
S504、当N个搜索结果中的目标搜索结果被选择时,在即时通信会话页面中以消息形式显示目标搜索结果。
其中,目标搜索结果是指搜索窗口中结果展示区显示的任一个或多个搜索结果。当目标搜索结果被选择时,表示将该目标搜索结果添加至触发搜索事件的即时通信会话页面中,该目标搜索结果则以消息形式被显示于即时通信会话页面中,这使得参与同一即时通信会话的多个用户可以查看、使用、编辑搜索结果,实现了即时通信会话场景与搜索场景之间的融合,有效提升即时通信会话质量,也有效提升了搜索效率。并且,显示在即时通信会话页面中的目标搜索结果,还可以被转发到除当前即时通信会话页面以外的其他会话页面中,提升搜索结果的分享效率。
S505、在即时通信应用程序中显示目标搜索结果对应的搜索结果页面。
步骤S504-步骤S505中,在搜索窗口中得到N个搜索结果之后,还支持将N个搜索结果的部分或全部搜索结果以消息形式显示在即时通信会话页面中,此处的即时通信会话页面为触发产生搜索事件的消息编辑区所属的会话页面;并且,显示在即时通信会话页面中的目标搜索结果被选择时,可展现目标搜索结果对应的搜索结果页面,这使得参与同一即时通信会话的多个用户能够对搜索结果进行查看。其中,结果展示区中的应用类别、应用类别下的搜索结果、应用类别和应用类别下的搜索结果均可被添加至即时通信会话页面中;换句话说,目标搜索结果可能是应用类别,或应用类别下的搜索结果或应用类别和应用类别下的搜索结果;根据即时通信会话页面中目标搜索结果的不同,搜索结果页面所展现的内容也有所不同。其中:
在一种实现方式中,应用类别以及应用类别下的搜索结果可以都被添加至即时通信会话页面中。具体地,将应用类别以及应用类别下的搜索结果均添加至即时通信会话页面中的方式可包括但不限于如下至少一种:
(1)在结果展示区显示有聚合标识,当聚合标识被选择时,表示N个搜索结果(应用类别以及应用类别下的搜索结果)全部被选择,则目标搜索结果包括N个搜索结果。结合图6a来说,图6a示出了本申请一个示例性实施例提供的一种添加搜索结果的示意图;如图6a所示,在搜索窗口的结果展示区中显示有聚合标识601,当聚合标识601被选择时,表示与搜索内容相匹配的至少一个搜索结果(应用类别以及应用类别下的搜索结果)被选中,则在即时通信会话页面中显示第一目标会话消息,第一目标会话消息携带聚合标识。
在一些实施例中,通过选择结果展示区的聚合标识,可实现对N个搜索结果的全部分享,从而实现对所有应用类别和各个应用类别下的所有搜索结果的分享,提升搜索结果分享效率。
(2)搜索窗口中包含隐藏选项,当隐藏选项被触发时,隐藏搜索窗口,其中,即时通信会话页面中的消息输入框被设置为隐藏的搜索窗口中的搜索框;则前述在搜索窗口中输入搜索内容可以理解为,在消息输入框中输入搜索内容,搜索内容包含搜索字符。此处的搜索字符的相关描述可参见步骤S102所示的相关描述。比如,当在消息输入框中输入“隐秘的角落”时,搜索内容实际包括“#隐秘的角落”,可将“#隐秘的角落”理解为上述(1)中的聚合标识;当包含搜索字符的搜索内容以消息形式发送至即时通信会话页面中后,表示应用类别及各个应用类别下的搜索结果被添加至即时通信会话页面中。请参见图6b,图6b示出了本申请一个示例性实施例提供的另一种添加搜索结果的示意图;如图6b所示,在即时通信会话页面中的消息输入框中输入搜索字符6021时,即在消息编辑区中产生搜索事件;输出搜索窗口,搜索窗口中包含隐藏选项602,当隐藏选项602被选择时,表示向下收折搜索窗口,以实现对搜索窗口的隐藏,此时,即时通信会话页面中的消息输入框被设置为隐藏的搜索窗口的搜索框;在消息输入框中输入搜索内容后,搜索内容实际包括搜索字符以及用户输入的部分内容,如图6b所示,此时搜索内容603包括搜索字符“#”6021和用户输入的部分内容“隐秘的角落”6022;当搜索内容被发送时,搜索内容以消息形式展现在即时通信会话页面中。
另外,当即时通信会话页面中的第一目标会话消息(或包含搜索字符的搜索内容)被点击时,显示搜索结果页面;搜索结果页面包含与搜索内容相匹配的N个搜索结果的标识,也就是说,搜索结果页面包含应用类别的标识以及应用类别下各个搜索结果的标识。举例来说,参见图6c,图6c示出了本申请一个示例性实施例提供的一种搜索结果页面的示意图;如图6c所示,当即时通信会话页面中的第一目标会话消息(包含搜索字符的搜索内容)被选择时,即时通信应用程序显示搜索结果页面,该搜索结果页面中包含与“隐秘的角落”相匹配的多个应用类别以及各个应用类别下 的多个搜索结果。可以理解的是,部分搜索结果被折叠显示于搜索结果页面中,则可点击“更多∨”标识604,以使被折叠显示的那部分搜索结果被显示在可视的界面中;当然,触使被折叠显示的搜索结果呈现在显示屏中的操作方式不仅限于上述描述的点击“更多∨”标识,本申请实施例以上述点击“更多∨”标识为例,并不对本申请实施例产生限定。
在另一种实现方式中,应用类别可被单独添加至即时通信会话页面中。具体地,将M个应用类别中的任一个应用类别表示为第i个应用类别,i为整数且i≤M;当第i个应用类别的标识被选择时,标识第i个应用类别下的所有搜索结果被选择,则目标搜索结果包括第i个应用类别下的所有搜索结果;在即时通信会话页面中显示第二目标会话消息,第二目标会话消息中携带第i个应用类别的标识。例如,在应用类别-小程序下包括与搜索内容相匹配的小程序A、小程序B以及小程序C,那么,当应用类别-小程序被选择时,表示小程序A、小程序B以及小程序C被选择。参见图7a,图7a示出了本申请一个示例性实施例提供的另一种添加搜索结果的示意图;如图7a所示,结果展示区中包含应用类别-影视作品的标识701、应用类别-公众号的标识……;当影视作品的标识701被选中时,在即时通信会话页面之上以浮层形式显示发送确认窗口,其中,发送确认窗口的展现形式可包括但不限于图7a所示的发送确认窗口702、发送确认窗口703;当发送确认窗口702或发送确认窗口703中包含的发送标识704被选中时,在即时通信会话页面中显示第二目标会话消息,第二目标会话消息中携带影视作品的标识701。另外,选择即时通信会话页面中的第二目标会话消息时,在即时通信应用程序中显示搜索结果页面,该搜索结果页面中包含应用类别下的与搜索内容相匹配的各个搜索结果;具体可参见图7b,图7b示出了本申请一个示例性实施例提供的另一种搜索结果页面的示意图;如图7b所示,当即时通信会话页面中的第二目标会话消息被选择时,显示搜索结果页面,该搜索结果页面用于展示应用类别-“XX-影视作品”下的多个搜索结果;另外,在该搜索结果页面中包含返回项1024,当返回项1024被选择时,可关闭搜索结果页面,再次显示即时通信会话页面。需要说明的是,搜索结果页面705中显示的各个搜索结果仍然支持被单独添加至即时通信会话页面中;或者,搜索结果页面中的任意搜索结果支持被点击查看,比如,当搜索结果页面中任意搜索结果被选中时,触发显示被选中的搜索结果对应的详情页面,详情页面中包含该搜索结果包含的具体信息(或内容)。
在又一种实现方式中,应用类别下的搜索结果能够被单独添加至即时通信会话页面中。具体地,将结果展示区中N个搜索结果中的第j个搜索结果添加至即时通信会话页面中,j为整数且j≤N,第j个搜索结果是指N个搜索结果中的任一个;即时通信会话页面中显示第三目标会话消息,则第三目标会话消息携带第j个搜索结果的标识。例如,结果展示区中包含搜索结果A、搜索结果B及搜索结果C;若搜索结果C被选择,则即时通信会话页面中展示第三目标会话消息,第三目标会话消息携带搜索结果C的标识。请参见图8a,图8a示出了本申请一个示例性实施例提供的另一种添加搜索结果的示意图;如图8a所示,当结果展示区中影视作品下的搜索结果801被选择时,即时通信应用程序显示发送确认窗口702(或发送确认窗口703);当发送确认窗口702中的发送标识被点击时,在即时通信会话页面中显示第三目标会话消息。需要说明的是,当第三目标会话消息被选中时,在即时通信应用程序中显示搜索结果页面,该搜索结果页面中显示第三目标会话消息携带的搜索结果的详情信息;比如,图8a所示的搜索结果为视频,则该视频被点击播放时,在搜索结果页面中播放该视频的具体内容,具体可参加图8b,图8b示出了本申请一个示例性实施例提供的另一种搜索结果页面的示意图。另外,在第三目标会话消息中显示有应用类别的标识,当第三目标会话消息被选择时,表示第三目标会话消息所携带的应用类别的标识被选择,此时即时通信应用程序显示搜索结果页面,该搜索结果页面中包括该应用类别下与搜索结果相匹配的多个搜索结果,其中,被选作目标搜索结果的搜索结果可被优先显示于其他搜索结果之前或之上。继续参见图8b,当第三目标会话消息中XX-影视作品的标识802被点击时,在搜索结果页面中显示多个搜索结果,其中,关于“外交部回应:XXX”的搜索结果排列显示于最顶端位置。
另外,添加至即时通信会话页面中的目标会话消息(第一目标会话消息、第二目标会话消息以及第三会话消息)还支持被分享(或转发)至其他即时通信应用程序或同一即时通信应用程序中,目标会话消息分享的过程其实质是目标搜索结果被分享或转发。例如,在用户B与用户A之间的QQ会话页面中显示的目标搜索结果可被分享至用户B与用户C之间的QQ会话页面中,或者,在用户B所参与的QQ群聊会话页面中显示的目标搜索结果可被分享至用户B所参与的微信群聊会话页面中,本申请实施例对此不作详细阐述。具体地,当显示于即时通信会话页面中的目标会话消息被触发分享时,输出分享对象列表,分享对象列表中包含至少一个分享对象;向目标分享对象发送目标会话消息,目标分享对象是分享对象列表中被选中的任意分享对象。其中,目标会话页面在 即时通信会话页面中被触发分享的操作可包括但不限于:长按目标会话消息、双击目标会话消息等等。可参见图9,图9示出了本申请一个示例性实施例提供的一种分享对象列表的示意图;如图9所示,显示于分享者与用户A之间的即时通信会话页面中的目标会话消息901被触发分享时,显示分享对象列表902,在分享对象列表中包含至少一个分享对象;假设被选中的目标分享对象为用户C,则在分享者与用户C之间的即时通信会话页面中显示目标会话消息901。需要说明的是,除采用图9所示的,从分享对象列表中选取目标分享对象进行目标会话消息的分享(或转发)以外,还可以采用拖拽的方式将目标会话消息从一个会话页面拖拽至另一会话页面,实现目标会话消息的分享,本申请实施例对目标会话消息的具体分享操作不进行限定。
在一些实施例中,与分享者属于当前即时通信会话页面中的一个或多个用户,可通过选择即时通信会话页面中的目标会话消息,快捷地、及时地获取分享者分享的搜索结果,提高即时通信会话的效率,提升参与会话的各个用户的体验感。
本申请实施例中,当即时通信会话页面中存在搜索事件时输出搜索窗口,其中,通过触发搜索入口或输入搜索字符等方式可使即时通信会话页面中存在搜索事件;在搜索窗口中输入搜索内容后,可在该搜索窗口中显示与搜索内容相匹配的N个搜索结果,N为整数;当N个搜索结果中的目标搜索结果被选择时,在即时通信会话页面中以消息形式显示该目标搜索结果。通过上述过程,参与即时通信会话的任一用户存在搜索需求时,可在即时通信应用程序中快速实现搜索并获得搜索内容对应的至少一个搜索结果,这缩短了用户触达搜索结果的路径,更快捷的帮助用户获取想要的搜索结果;另外,搜索结果支持以消息形式显示在即时通信会话页面中,这使得在即时通信会话页面中触发获得的搜索结果能够被快速给参与该即时通信会话的其他用户,这提供了一种新型的会话搜索交互方式,提升搜索效率和搜索结果的分享效率。另外,即时通信会话页面中的目标会话消息还可以分享或转发至即时通信应用程序的其他会话页面中,或分享至其他即时通信应用程序中,这充分地提高了数据分享效率,提升用户体验。
图10A示出了本申请实施例提供的消息处理方法所适用的系统结构图。如图10A所示,上述实施例所描述的消息处理方案可以由终端设备11、服务器12或终端设备11和服务器12之间交互来完成,其中,终端设备11可包括但不限于:智能手机(如Android手机、iOS手机等)、平板电脑、便携式个人计算机、移动互联网设备(Mobile Internet Devices,简称MID)、智能电视等设备,本申请实施例并不对终端设备的类型进行限定,终端设备11包括显示屏,该显示屏可以是物理屏、触摸屏等等。终端设备11中可安装并运行各种即时通信应用程序,即时通信应用程序是指基于互联网的即时交流消息和社交交互的应用程序,即时通信应用程序可以包括但不限于:QQ、微信、企业微信、包含社交交互功能的地图应用程序、游戏应用程序等等。服务器12可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。终端设备11以及服务器12可以通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。
另外,前述图1所示的实施例中提到与搜索内容相匹配的各个应用类别以及各个应用类别下的多个搜索结果可按照用户的关注热度在结果展示区中进行排列显示,其中,用户对应用类别的关注热度是根据用户的历史行为统计得到的。下面结合附图10B详细说明应用类别以及应用类别下的搜索结果在结果展示区中排列显示的后台(即服务器后台、服务器)的工作流程。
请参见图10B,图10B示出了本申请一个示例性实施例提供的一种搜索结果排列显示的方法示意图;在图10B所示的搜索结果排列显示的流程示意图中,排列显示搜索结果的主要流程包括:①在搜索框中输入搜索内容,其中,搜索框可以包括搜索窗口中显示的搜索框,或者,被设置为搜索框的消息输入框。②终端设备(或服务器)对搜索内容进行意图分析,得到与搜索内容相匹配的多个应用类别(或称为类目)以及各个类目对应的类目权重;其中,所谓意图分析可理解为根据搜索内容分析用户的目的或用户想要检索的信息,类目权重用于表示类目的重要程度。具体地,将分类数据库和词表作为类目意图目标,采用一种或多种目标方法从类目意图目标中识别出意图类目,以及各个意图类目的类目权重。其中,分类数据库可参见图10B所示的数据库1001,数据库1001中包含文章词表1002、公众号词表1003、小程序词表1004、视频词表1005等等词表;一种或多种目标方式可以包括但不限于:采用人工规则对搜索内容对应的类目(应用类别)进行分类标注;或者,基于用户实际搜索行为日志(如用户点击行为类目,比如,在历史时间内用户点击应用类别的行为记录)对各个类目进行分类标注;又或者,结合模式串匹配与FastText(快速文本分类器)、 XGBoost(分布式梯度增强库)等分类模型算法对各个类目进行分类标注等等。比如,对搜索内容进行意图类目识别,得到各个类目权重为:文章权重0.1%、公众号权重43%、小程序权重34%、视频权重12%......等等。③根据设定的权重阈值对各个类目进行划分,选取类目权重大于或等于权重阈值的部分或全部的类目进行类目结果的召回。所谓类目结果的召回可以是指,获取该类目(应用类别)下的多个搜索结果。比如,已知文章权重0.1%、公众号权重43%、小程序权重34%、视频权重12%,权重阈值为20%,那么公众号权重43%>小程序权重34%>权重阈值为20%>视频权重12%>文章权重0.1%,则获取公众号以及小程序下的与搜索内容相匹配的多个搜索结果。需要说明的是,根据类目的不同,类目结果的召回方式不同,主要的召回方式可以包括但不限于:词表召回、向量召回、倒排召回等等;具体地,各个类目下类目结果的具体召回方式可参见表2:
表2 类目召回方式
Figure PCTCN2021112901-appb-000002
根据表2所示的召回规则对各个类目(应用类别)下的类目结果(应用类别下的搜索结果)进行召回后,本申请实施例还涉及对各个类目的排序,以及对各个类目下的类目结果的排序。正如前述实施例所描述的,主要可依据用户的历史行为来对各个类目以及各个类目下的类目结果进行排序,那么依据用户的历史行为来对各个类目以及各个类目下的类目结果进行排序的具体实施过程可遵循如下两条规则:①对每个类目下的召回的类目结果(即搜索结果)进行排序。②对各个类目进行排序。需要说明的是,此处的用户可以为持有本申请实施例所描述的、用于执行消息处理方法的终端设备的用户,或者,此处的用户为互联网中广泛存在用户;根据用户的定义的不同,上述两条规则所依据的用户的历史行为并不相同,用户的历史行为所指示的关注热度的定义亦不相同。
在一种实现方式中,用户为持有本申请实施例所描述的、用于执行消息处理方法的终端设备的用户时;①对每个类目下的召回的类目结果进行排序可理解为:在同一类目下的多个类目结果中可优先显示用户在历史时刻浏览过的类目结果;比如,类目为文章,在同属于文章类目下的类目结果包括:文章A、文章B以及文章C,其中,文章A为用户在历史时刻浏览过的,则文章A可优先排列显示与文章B、文章C之前。②对各个类目进行排序可理解为:对用户的历史行为数据进行统计,可得到用户偏好的类目类型,比如,在公众号、文章、小程序这三种类目下,用户偏好公众号,则可将公众号优先排列显示于文章、小程序之前,更详细地,将公众号下的类目结果展现于文章下的类目结果、小程序下的类目结果之前。
在另一种实现方式中,用户为互联网中广泛存在用户时,此时,用户的历史行为包括互联网中海量用户的历史行为,某一类目或类目下的类目结果的关注热度与海量用户的历史行为有关;其中,①对每个类目下的召回的类目结果进行排序可理解为:确定同一类目下与搜索内容相匹配的类目结果;按照各个类目结果在当前时刻的关注热度,从高至低的顺序对各个类目结果进行排列显示。②对各个类目进行排序可理解为:按照各个类目在当前时刻的关注热度,从高至低的顺序对各个类目进行排序。需要说明的是,上述描述的对类目的关注热度可能与用户点击类目的次数、收藏类目的次数等等因素有关,同理,对类目结果的关注热度可能与用户点击类目结果的次数、收藏类目结果的次数等等因素有关。
本申请实施例中,结果展示区中显示的各个应用类别的标识和各个应用类别下的各个搜索结果,可按照应用类别或搜索结果的关注热度从高至低进行排列显示,这使得用户首先能够浏览到热度较高的搜索结果,提升用户体验。
本申请实施例所提供的消息处理方案,可以应用于多种互联网场景中,包括但不限于:
一、网络教学场景。
在网络教学场景中,教师与学生参与同一即时通信会话,如果教师想要向学生阐述某一知识点,那么教师可在与学生的即时通信会话页面中触发对该知识点的关键词“XXXX”的搜索,例如:点击即时通信会话页面中的搜索图标,或输入搜索字符等调出搜索窗口,并在搜索窗口中输入关键词“XXXX”,那么可获得与关键词“XXXX”相匹配的搜索结果,该搜索结果可能为视频、文本、书评等等形式。老师可将从这些搜索结果筛选目标搜索结果,并将目标搜索结果以消息形式添加发送至与学生的即时通信会话页面中,这样既方便老师更好地传达自己想要表达的内容,又能够使学生更快获得老师阐述的知识点,另外,学生可点击老师发送的包括目标搜索结果的会话消息,可快速触达目标搜索结果的详情,更全面的了解知识点,提升即时通信会话体验,提高网络教学质量。
二、会议场景。
在多人参与的小组或部门会议场景中,一个或多个参会人员可能存在搜索需求,比如,参会人员存在利用搜索结果来说服其他参会人员的需求等等;在这种情况下,该参会人员可开启与其他参会人员的即时通信会话页面,通过点击搜索图标或在消息输入框中输入搜索字符等等方式,在即时通信会话页面所包含的消息编辑区中产生搜索事件;然后在输出的搜索窗口中进行内容的搜索,得到与搜索内容相匹配的至少一个搜索结果;并从至少一个搜索结果中选取目标搜索结果添加至即时通信会话页面中,这使得发起搜索的参会人员能够快速的向其他参会人员传输自己想要表达的内容,丰富即时通信会话的输入内容的形式。相应的,其他参会人员只需在即时通信会话页面中点击目标搜索结果,并可在输出的搜索结果页面中查看目标搜索结果的详细信息(例如,目标搜索结果携带应用类别的标识时,搜索结果页面中展现的详细信息为该应用类别下的至少一个搜索结果;又如,目标搜索结果携带搜索结果的标识时,搜索结果页面中携带该搜索结果的详情信息等等),这帮助参会人员快速获取获取目标搜索结果,提高会议质量,提升用户体验。
可以理解的是,除上述描述的互联网场景(即群聊会话场景)适应于本申请实施例提供的消息处理方案以外,还有很多其他互联网场景(如单独会话场景)均可采用本申请实施例提供的消息处理方案,以实现在即时通信会话场景中进行内容的搜索和搜索结果的分享;本申请实施例对其他互联网场景下的消息处理方案不作详细描述,互联网场景的变化也不会对本申请实施例起到限定作用。
上述详细阐述了本申请实施例的方法,为了便于更好地实施本申请实施例的上述方案,相应地,下面提供了本申请实施例的装置。
请参见图11,图11示出了本申请一个示例性实施例提供的一种消息处理装置的结构示意图;该消息处理装置可以用于是运行于终端设备中的一个计算机程序(包括程序代码),例如该消息处理装置可以是终端设备中的即时通信应用程序(如QQ、微信等等);该消息处理装置可以用于执行图1、图5所示的方法实施例中的部分或全部步骤。请参见图11,该消息处理装置包括如下单元:
显示单元1101,用于显示即时通信会话页面,即时通信会话页面中设有消息编辑区;
处理单元1102,用于若消息编辑区中存在搜索事件,则输出搜索窗口;以及接收搜索窗口中输入的搜索内容,并在搜索窗口中显示与搜索内容相匹配的N个搜索结果,N为整数。
在一种实现方式中,消息编辑区存在搜索事件包括以下至少一种:
消息编辑区包括搜索入口;当搜索入口被触发时,确定消息编辑区中存在搜索事件;
消息编辑区包括消息输入框;当在消息输入框中检测到搜索字符时,确定消息编辑区中存在搜索事件。
在另一种实现方式中,搜索入口包括搜索图标和/或搜索选项;搜索入口的设置方式包括以下至少一种:
若消息编辑区包括消息输入框,则搜索入口设置于消息输入框中;
若消息编辑区包括操作菜单,则搜索入口设置于操作菜单中;
若消息编辑区包括消息输入框,且消息输入框中显示有输入字符;当输入字符被选择时,触发显示选项栏,搜索入口设置于选项栏中。
在另一种实现方式中,搜索窗口中包含隐藏选项;处理单元1102还用于:
当隐藏选项被触发时,隐藏搜索窗口;其中,消息输入框被设为隐藏的搜索窗口中的搜索框;
处理单元1102,具体用于:
在消息输入框中输入搜索内容,搜索内容包含搜索字符。
在另一种实现方式中,处理单元1102,还用于:
当将包含搜索字符的搜索内容以消息形式发送至即时通信会话页面中后,若消息形式的搜索内容被触发,显示搜索结果页面,搜索结果页面包括与搜索内容相匹配的N个搜索结果的标识。
在另一种实现方式中,搜索窗口包括结果展示区;处理单元1102,具体用于:
在结果展示区中显示N个搜索结果;
N个搜索结果按照来源被聚类至M个应用类别,每个应用类别下包括至少一个搜索结果,M为整数;结果展示区被划分为M个子区域;
处理单元1102,具体用于:
分别在M个子区域中显示M个应用类别的标识,并在每个应用类别对应的子区域中显示每个应用类别下的至少一个搜索结果的标识。
在另一种实现方式中,分别在M个子区域中显示M个应用类别的标识,包括以下至少一种:
将M个应用类别的标识按照随机顺序显示在M个子区域中;
按照用户对应用类别的关注热度由高至低的顺序,将M个应用类别排列显示在M个子区域中;
M个应用类别中的任一个应用类别表示为第i个应用类别,i为整数且i≤M;
在第i个应用类别对应的子区域中显示第i个应用类别下的至少一个搜索结果的标识,包括以下至少一种:
将第i个应用类别下的至少一个搜索结果的标识按照随机顺序显示在第i个应用类别对应的子区域中;
按照各搜索结果与用户的历史行为之间的匹配度由高至低的顺序,将第i个应用类别下的至少一个搜索结果的标识排列显示在第i个应用类别对应的子区域中;
其中,用户对应用类别的关注热度是根据用户的历史行为统计得到的;用户的历史行为包括以下至少一项:对应用类别的使用行为、对应用类别的检索行为及对应用类别的下载行为。
在另一种实现方式中,搜索窗口中显示有返回项;处理单元1102,还用于:
选择返回项,则关闭搜索窗口,并再次显示即时通信会话页面。
在另一种实现方式中,处理单元1102,还用于:
当N个搜索结果中的目标搜索结果被选择时,在即时通信会话页面中以消息形式显示目标搜索结果。
在另一种实现方式中,搜索窗口包括结果展示区;结果展示区显示有聚合标识,当聚合标识被选择时,表示N个搜索结果全部被选择,则目标搜索结果包括N个搜索结果;
处理单元1102,具体用于:
在即时通信会话页面中显示第一目标会话消息,第一目标会话消息中携带聚合标识。
在另一种实现方式中,N个搜索结果按照来源被聚类至M个应用类别,每个应用类别下包括至少一个搜索结果,M为整数;M个应用类别中的任一个应用类别表示为第i个应用类别,i为整数且i≤M;当第i个应用类别的标识被选择时,表示第i个应用类别下的所有搜索结果被选择,则目标搜索结果包括第i个应用类别下的所有搜索结果;
处理单元1102,具体用于:
在即时通信会话页面中显示第二目标会话消息,第二目标会话消息中携带第i个应用类别的标识。
在另一种实现方式中,目标搜索结果是N个搜索结果中的第j个搜索结果,j为整数且j≤N,第j个搜索结果是指N个搜索结果中的任一个;
处理单元1102,具体用于:
在即时通信会话页面中显示第三目标会话消息,第三目标会话消息中携带第j个搜索结果的标识。
在该技术方案中,通过选择结果展示区中的搜索结果的标识,可实现对单条搜索结果的分享,提升搜索结果分享效率。
在另一种实现方式中,处理单元1102,还用于:
若即时通信会话页面中的第一目标会话消息被选中,则显示搜索结果页面,搜索结果页面包括N个搜索结果的标识;或者,
若即时通信会话页面中的第二目标会话消息被选中,则显示搜索结果页面,搜索结果页面包括第i个应用类别下的N个搜索结果的标识;或者,
若即时通信会话页面中的第三目标会话消息被选中,则显示搜索结果页面,搜索结果页面包括第j个搜索结果的详情信息。
在另一种实现方式中,目标搜索结果以目标会话消息的形式被显示于即时通信会话页面中,目标会话消息是即时通信会话页面中的即时通信消息流中的任一条消息;处理单元1102,还用于:
当目标会话消息被触发分享时,输出分享对象列表,分享对象列表中包含至少一个分享对象;
向目标分享对象发送目标会话消息,目标分享对象是分享对象列表中被选中的任意分享对象。
根据本申请的一个实施例,图11所示的消息处理装置中的各个单元可以分别或全部合并为一个或若干个另外的单元来构成,或者其中的某个(些)单元还可以再拆分为功能上更小的多个单元来构成,这可以实现同样的操作,而不影响本申请的实施例的技术效果的实现。上述单元是基于逻辑功能划分的,在实际应用中,一个单元的功能也可以由多个单元来实现,或者多个单元的功能由一个单元实现。在本申请的其它实施例中,该消息处理装置也可以包括其它单元,在实际应用中,这些功能也可以由其它单元协助实现,并且可以由多个单元协作实现。根据本申请的另一个实施例,可以通过在包括中央处理单元(CPU)、随机存取存储介质(RAM)、只读存储介质(ROM)等处理元件和存储元件的例如计算机的通用计算设备上运行能够用于执行图1、图5所示的方法实施例中部分或全部步骤的计算机程序(包括程序代码),来构造如图11中所示的消息处理装置,以及来实现本申请实施例的消息处理装置。计算机程序可以记载于例如计算机可读记录介质上,并通过计算机可读记录介质装载于上述计算设备中,并在其中运行。
本申请实施例中,显示单元1101用于显示即时通信应用程序中的即时通信会话页面,当处理单元1102在即时通信会话页面中检测到搜索事件(比如,在消息编辑区中触发搜索入口或输入搜索字符等等)时输出搜索窗口,搜索窗口可以浮层形式显示于即时通信会话页面之上或搜索窗口以独立页面的形式进行显示;用户可在搜索窗口中输入搜索内容,其中,搜索内容可以是用户新输入的搜索内容,或者搜索内容为历史记录显示区域中被选择的历史搜索内容;搜索窗口中可显示与搜索内容相匹配的至少一个搜索结果,搜索结果可以包括应用类别的标识,或者,各个应用类别下的至少一个搜索结果的标识;显示于搜索窗口中的目标搜索结果支持以目标会话消息形式显示于即时通信会话页面中,其中,目标搜索结果可以为某一应用类别的标识、应用类别下的某一搜索结果的标识、聚合标识(聚合标识包括应用类别和应用类别下的搜索结果);相应的,显示于即时通信会话页面中的目标会话消息被选择时,可显示搜索结果页面,搜索结果页面用于显示目标会话消息所携带的目标搜索结果的详细信息,比如,目标搜索结果为应用类别的标识时,在搜索结果页面中显示该应用类别下的至少一个搜索结果的标识,当然,这些搜索结果的标识仍然可以被添加至即时通信会话页面中,又如,目标搜索结果为某一应用类别下的搜索结果时,搜索结果页面显示该搜索结果的详情信息,等等;另外,显示于即时通信会话页面中的目标会话消息还可以被分享(或转发)至另一即时通信会话页面,或另一应用程序中。通过上述过程,参与即时通信会话的任一用户存在搜索需求时,可在即时通信应用程序中快速实现搜索并获得相应搜索结果,这缩短了用户触达搜索结果的路径,更快捷的帮助用户获取想要的搜索结果;另外,搜索结果支持以消息形式显示在即时通信会话页面中,这使得在即时通信会话页面中触发获得的搜索结果能够被快速给参与该即时通信会话的其他用户,这提供了一种新型的会话搜索交互方式,提升搜索效率和搜索结果的分享效率。
图12示出了本申请一个示例性实施例提供的一种消息处理设备的结构示意图。请参见图12,该消息处理设备,包括处理器1201、通信接口1202以及计算机可读存储介质1203。其中,处理器1201、通信接口1202以及计算机可读存储介质1203可通过总线或者其它方式连接。其中,通信接口1202用于接收和发送数据。计算机可读存储介质1203可以存储在消息处理设备的存储器中,计算机可读存储介质1203用于存储计算机程序,计算机程序包括程序指令,处理器1201用于执行计算机可读存储介质1203存储的程序指令。处理器1201(或称CPU(Central Processing Unit,中央处理器))是消息处理设备的计算核心以及控制核心,其适于实现一条或多条指令,具体适于加载并执行一条或多条指令从而实现相应方法流程或相应功能。
本申请实施例还提供了一种计算机可读存储介质(Memory),计算机可读存储介质是消息处理设备中的记忆设备,用于存放程序和数据。可以理解的是,此处的计算机可读存储介质既可以包括消息处理设备中的内置存储介质,当然也可以包括消息处理设备所支持的扩展存储介质。计算机可读存储介质提供存储空间,该存储空间存储了消息处理设备的处理系统。并且,在该存储空间中还存放了适于被处理器1201加载并执行的一条或多条的指令,这些指令可以是一个或多个的计算机程序(包括程序代码)。需要说明的是,此处的计算机可读存储介质可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器;在一些实施例中,还可以是至少一个位于远离前述处理器的计算机可读存储介质。
在一个实施例中,该消息处理设备可以是上述实施例提及的终端设备;该计算机可读存储介质中存储有一条或多条指令;由处理器1201加载并执行计算机可读存储介质中存放的一条或多条指令,以实现上述消息处理方法实施例中的相应步骤;具体实现中,计算机可读存储介质中的一条或多条指令由处理器1201加载并执行本申请实施例所述的消息处理方法。
本申请实施例中,处理器1201用于显示即时通信应用程序中的即时通信会话页面,在消息编辑区中可产生搜索事件,比如,在消息编辑区中触发搜索入口或输入搜索字符等等;当在消息编辑区中存在搜索事件时,输出搜索窗口,搜索窗口可以浮层形式显示于即时通信会话页面之上或搜索窗口以独立页面的形式进行显示;用户可在搜索窗口中输入搜索内容,其中,搜索内容可以是用户新输入的搜索内容,或者搜索内容为历史记录显示区域中被选择的历史搜索内容;搜索窗口中可显示与搜索内容相匹配的至少一个搜索结果,搜索结果可以包括应用类别的标识,或者,各个应用类别下的至少一个搜索结果的标识;显示于搜索窗口中的目标搜索结果支持以目标会话消息形式显示于即时通信会话页面中,其中,目标搜索结果可以为某一应用类别的标识、应用类别下的某一搜索结果的标识、聚合标识(聚合标识包括应用类别和应用类别下的搜索结果);相应的,显示于即时通信会话页面中的目标会话消息被选择时,可显示搜索结果页面,搜索结果页面用于显示目标会话消息所携带的目标搜索结果的详细信息,比如,目标搜索结果为应用类别的标识时,在搜索结果页面中显示该应用类别下的至少一个搜索结果的标识,当然,这些搜索结果的标识仍然可以被添加至即时通信会话页面中,又如,目标搜索结果为某一应用类别下的搜索结果时,搜索结果页面显示该搜索结果的详情信息,等等;另外,显示于即时通信会话页面中的目标会话消息还可以被分享(或转发)至另一即时通信会话页面,或另一应用程序中。通过上述过程,参与即时通信会话的任一用户存在搜索需求时,可在即时通信应用程序中快速实现搜索并获得相应搜索结果,这缩短了用户触达搜索结果的路径,更快捷的帮助用户获取想要的搜索结果;另外,搜索结果支持以消息形式显示在即时通信会话页面中,这使得在即时通信会话页面中触发获得的搜索结果能够被快速给参与该即时通信会话的其他用户,这提供了一种新型的会话搜索交互方式,提升搜索效率和搜索结果的分享效率。
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述图1、图5所描述的实施例中提供的消息处理方法。
本领域普通技术人员可以意识到,结合本申请中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用,使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程设备。计算机指令可以存储在计算机可读存储介质中,或者通过计算机可读存储介质进行传输。计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如,同轴电缆、光纤、数字用户线(DSL))或无线(例如,红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(Solid State Disk,SSD))等。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (16)

  1. 一种消息处理方法,由终端设备执行,包括:
    显示即时通信会话页面,所述即时通信会话页面中设有消息编辑区;
    若所述消息编辑区中存在搜索事件,则输出搜索窗口;
    接收所述搜索窗口中输入的搜索内容,并在所述搜索窗口中显示与所述搜索内容相匹配的N个搜索结果,N为整数。
  2. 如权利要求1所述的方法,其中,所述消息编辑区存在搜索事件包括以下至少一种:
    所述消息编辑区包括搜索入口;当所述搜索入口被触发时,确定所述消息编辑区中存在搜索事件;
    所述消息编辑区包括消息输入框;当在所述消息输入框中检测到搜索字符时,确定所述消息编辑区中存在搜索事件。
  3. 如权利要求2所述的方法,其中,所述搜索入口包括搜索图标和/或搜索选项;所述搜索入口的设置方式包括以下至少一种:
    若所述消息编辑区包括消息输入框,则所述搜索入口设置于所述消息输入框中;
    若所述消息编辑区包括操作菜单,则所述搜索入口设置于所述操作菜单中;
    若所述消息编辑区包括消息输入框,且所述消息输入框中显示有输入字符;当所述输入字符被选择时,触发显示选项栏,所述搜索入口设置于所述选项栏中。
  4. 如权利要求2所述的方法,其中,所述搜索窗口中包含隐藏选项;所述方法还包括:
    当所述隐藏选项被触发时,隐藏所述搜索窗口;其中,所述消息输入框被设为所述隐藏的搜索窗口中的搜索框;
    所述在所述搜索窗口中输入搜索内容,包括:在所述消息输入框中输入搜索内容,所述搜索内容包含所述搜索字符。
  5. 如权利要求4所述的方法,其中,所述方法还包括:
    当将包含所述搜索字符的搜索内容以消息形式发送至所述即时通信会话页面中后,若所述消息形式的搜索内容被触发,显示搜索结果页面,所述搜索结果页面包括与所述搜索内容相匹配的N个搜索结果的标识。
  6. 如权利要求1所述的方法,其中,所述搜索窗口包括结果展示区;所述在所述搜索窗口中显示与所述搜索内容相匹配的N个搜索结果,包括:在所述结果展示区中显示所述N个搜索结果;
    所述N个搜索结果按照来源被聚类至M个应用类别,每个应用类别下包括至少一个搜索结果,M为整数;所述结果展示区被划分为M个子区域;
    所述在所述结果展示区中显示所述N个搜索结果,包括:
    分别在所述M个子区域中显示所述M个应用类别的标识,并在所述每个应用类别对应的子区域中显示每个应用类别下的至少一个搜索结果的标识。
  7. 如权利要求6所述的方法,其中,所述分别在所述M个子区域中显示所述M个应用类别的标识,包括以下至少一种:
    将所述M个应用类别的标识按照随机顺序显示在所述M个子区域中;
    按照用户对应用类别的关注热度由高至低的顺序,将所述M个应用类别排列显示在所述M个子区域中;
    所述M个应用类别中的任一个应用类别表示为第i个应用类别,i为整数且i≤M;在第i个应用类别对应的子区域中显示第i个应用类别下的至少一个搜索结果的标识,包括以下至少一种:
    将所述第i个应用类别下的至少一个搜索结果的标识按照随机顺序显示在第i个应用类别对应的子区域中;
    按照各搜索结果与所述用户的历史行为之间的匹配度由高至低的顺序,将所述第i个应用类别下的至少一个搜索结果的标识排列显示在第i个应用类别对应的子区域中;
    其中,所述用户对应用类别的关注热度是根据用户的历史行为统计得到的;所述用户的历史行为包括以下至少一项:对应用类别的使用行为、对应用类别的检索行为及对应用类别的下载行为。
  8. 如权利要求1所述的方法,其中,所述搜索窗口中显示有返回项;所述方法还包括:
    选择所述返回项,则关闭所述搜索窗口,并再次显示所述即时通信会话页面。
  9. 如权利要求1所述的方法,其中,所述方法还包括:
    当所述N个搜索结果中的目标搜索结果被选择时,在所述即时通信会话页面中以消息形式显示所述目标搜索结果。
  10. 如权利要求9所述的方法,其中,所述搜索窗口包括结果展示区;所述结果展示区显示有聚合标识,当所述聚合标识被选择时,表示所述N个搜索结果全部被选择,则所述N个搜索结果包括应用类别以及应用类别下的搜索到的结果;所述目标搜索结果包括所述N个搜索结果;
    所述在所述即时通信会话页面中以消息形式显示所述目标搜索结果,包括:
    在所述即时通信会话页面中显示第一目标会话消息,所述第一目标会话消息中携带所述聚合标识;
    其中,所述方法还包括:
    若所述即时通信会话页面中的所述第一目标会话消息被选中,则显示搜索结果页面,所述搜索结果页面包括所述N个搜索结果的标识。
  11. 如权利要求9所述的方法,其中,所述N个搜索结果按照来源被聚类至M个应用类别,每个应用类别下包括至少一个搜索结果,M为整数;所述M个应用类别中的任一个应用类别表示为第i个应用类别,i为整数且i≤M;当所述第i个应用类别的标识被选择时,表示所述第i个应用类别下的所有搜索结果被选择,则所述目标搜索结果包括所述第i个应用类别下的所有搜索结果;
    所述在所述即时通信会话页面中以消息形式显示所述目标搜索结果,包括:
    在所述即时通信会话页面中显示第二目标会话消息,所述第二目标会话消息中携带所述第i个应用类别的标识;
    其中,所述方法还包括:
    若所述即时通信会话页面中的所述第二目标会话消息被选中,则显示搜索结果页面,所述搜索结果页面包括所述第i个应用类别下的所有搜索结果的标识。
  12. 如权利要求9所述的方法,其中,所述目标搜索结果是所述N个搜索结果中的第j个搜索结果,j为整数且j≤N,所述第j个搜索结果是指所述N个搜索结果中的任一个;
    所述在所述即时通信会话页面中以消息形式显示所述目标搜索结果,包括:
    在所述即时通信会话页面中显示第三目标会话消息,所述第三目标会话消息中携带所述第j个搜索结果的标识;
    其中,所述方法还包括:
    若所述即时通信会话页面中的所述第三目标会话消息被选中,则显示搜索结果页面,所述搜索结果页面包括所述第j个搜索结果的详情信息。
  13. 如权利要求9所述的方法,其中,所述目标搜索结果以目标会话消息的形式被显示于所述即时通信会话页面中,所述目标会话消息是所述即时通信会话页面中的即时通信会话消息流中的任一条会话消息;所述方法还包括:
    当所述目标会话消息被触发分享时,输出分享对象列表,所述分享对象列表中包含至少一个分享对象;
    向目标分享对象发送所述目标会话消息,所述目标分享对象是所述分享对象列表中被选中的任意分享对象。
  14. 一种消息处理装置,包括:
    显示单元,用于显示即时通信会话页面,所述即时通信会话页面中设有消息编辑区;
    处理单元,用于若消息编辑区中存在搜索事件,则输出搜索窗口;以及接收所述搜索窗口中输入的搜索内容,并在所述搜索窗口中显示与所述搜索内容相匹配的N个搜索结果,N为整数。
  15. 一种消息处理设备,包括:
    处理器,适于执行计算机程序;
    计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被所述处理器执行时,实现如权利要求1-13任一项所述的消息处理方法。
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序适于由处理器加载并执行如权利要求1-13任一项所述的消息处理方法。
PCT/CN2021/112901 2020-09-09 2021-08-17 一种消息处理方法、装置、设备及存储介质 WO2022052749A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010942933.8A CN112069410A (zh) 2020-09-09 2020-09-09 一种消息处理方法、装置、设备及介质
CN202010942933.8 2020-09-09

Publications (1)

Publication Number Publication Date
WO2022052749A1 true WO2022052749A1 (zh) 2022-03-17

Family

ID=73663224

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/112901 WO2022052749A1 (zh) 2020-09-09 2021-08-17 一种消息处理方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN112069410A (zh)
WO (1) WO2022052749A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928583A (zh) * 2022-04-13 2022-08-19 广西宏廷智能科技有限公司 一种数据信息的通讯方法及系统
WO2023217015A1 (zh) * 2022-05-11 2023-11-16 北京字跳网络技术有限公司 一种基于会话的业务处理方法、装置、设备及介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112069410A (zh) * 2020-09-09 2020-12-11 腾讯科技(深圳)有限公司 一种消息处理方法、装置、设备及介质
CN112612391B (zh) * 2020-12-28 2022-06-10 维沃移动通信有限公司 消息处理方法、装置和电子设备
CN113158094B (zh) * 2021-03-31 2024-03-01 北京达佳互联信息技术有限公司 信息分享方法、装置及电子设备
CN113485594A (zh) * 2021-06-30 2021-10-08 上海掌门科技有限公司 消息记录搜索方法、设备及存储介质
CN114610981A (zh) * 2022-03-21 2022-06-10 北京明略昭辉科技有限公司 信息搜索方法、装置、系统、设备及计算机可读介质
CN115412517B (zh) * 2022-08-05 2023-10-31 北京达佳互联信息技术有限公司 会话显示方法、会话消息处理方法、设备和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783850A (zh) * 2004-12-03 2006-06-07 腾讯科技(深圳)有限公司 一种基于即时通讯平台的搜索方法和系统
CN1965314A (zh) * 2004-04-19 2007-05-16 雅虎公司 用于在即时消息环境中进行内嵌搜索的技术
US20090254618A1 (en) * 2008-04-02 2009-10-08 Arnold Jeremy A Method and system for real-time/dynamic retrieval of information related to an on-going instant message communication
CN102298627A (zh) * 2011-08-29 2011-12-28 上海量明科技发展有限公司 针对于即时通信工具提供搜索的方法及系统
CN102810103A (zh) * 2011-06-03 2012-12-05 腾讯科技(深圳)有限公司 搜索结果分享方法及系统
CN105095426A (zh) * 2015-07-17 2015-11-25 百度在线网络技术(北京)有限公司 搜索结果处理方法及装置
CN112069410A (zh) * 2020-09-09 2020-12-11 腾讯科技(深圳)有限公司 一种消息处理方法、装置、设备及介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1965314A (zh) * 2004-04-19 2007-05-16 雅虎公司 用于在即时消息环境中进行内嵌搜索的技术
CN1783850A (zh) * 2004-12-03 2006-06-07 腾讯科技(深圳)有限公司 一种基于即时通讯平台的搜索方法和系统
US20090254618A1 (en) * 2008-04-02 2009-10-08 Arnold Jeremy A Method and system for real-time/dynamic retrieval of information related to an on-going instant message communication
CN102810103A (zh) * 2011-06-03 2012-12-05 腾讯科技(深圳)有限公司 搜索结果分享方法及系统
CN102298627A (zh) * 2011-08-29 2011-12-28 上海量明科技发展有限公司 针对于即时通信工具提供搜索的方法及系统
CN105095426A (zh) * 2015-07-17 2015-11-25 百度在线网络技术(北京)有限公司 搜索结果处理方法及装置
CN112069410A (zh) * 2020-09-09 2020-12-11 腾讯科技(深圳)有限公司 一种消息处理方法、装置、设备及介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928583A (zh) * 2022-04-13 2022-08-19 广西宏廷智能科技有限公司 一种数据信息的通讯方法及系统
WO2023217015A1 (zh) * 2022-05-11 2023-11-16 北京字跳网络技术有限公司 一种基于会话的业务处理方法、装置、设备及介质

Also Published As

Publication number Publication date
CN112069410A (zh) 2020-12-11

Similar Documents

Publication Publication Date Title
WO2022052749A1 (zh) 一种消息处理方法、装置、设备及存储介质
US11588767B2 (en) System and interface that facilitate selecting videos to share in a messaging application
US10896191B2 (en) Creation of real-time conversations based on social location information
US20200363949A1 (en) Advanced keyboard based search
US9779157B2 (en) Bundled event memories
CN107851277B (zh) 隐私一致且个性化的社交媒体内容共享推荐
US8751577B2 (en) Methods and systems for ordering and voting on shared media playlists
US9130892B2 (en) Multimedia collaboration in live chat
JP6930041B1 (ja) 検索/作成されたデジタルメディアファイルに基づく潜在的関連のあるトピックの予測
WO2020187012A1 (zh) 通信方法、装置、设备以及群组创建方法、装置、设备
US8825668B2 (en) Method and apparatus for updating song playlists based on received user ratings
CN103052926A (zh) 利用社交联网进行媒体共享
US11928133B2 (en) Unit group generation and relationship establishment
WO2022052817A1 (zh) 搜索处理方法、装置、终端及存储介质
US20170109339A1 (en) Application program activation method, user terminal, and server
CN108475260A (zh) 基于评论的媒体内容项的语言识别的方法、系统和介质
WO2022042157A1 (zh) 视频数据的制作方法、装置、计算机设备和存储介质
US20150154302A1 (en) Information processing apparatus and recording medium
WO2023016536A1 (zh) 一种交互方法、装置、设备和存储介质
WO2023016349A1 (zh) 一种文本输入方法、装置、电子设备和存储介质
TW202046082A (zh) 聊天執行緒的顯示方法、電腦可讀取記錄媒體及電腦裝置
CN113746874B (zh) 一种语音包推荐方法、装置、设备及存储介质
US9578258B2 (en) Method and apparatus for dynamic presentation of composite media
US20150055936A1 (en) Method and apparatus for dynamic presentation of composite media
WO2022152156A1 (zh) 一种历史浏览内容处理方法、装置、电子设备和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21865805

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18.07.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21865805

Country of ref document: EP

Kind code of ref document: A1