CN113158094A - Information sharing method and device and electronic equipment - Google Patents

Information sharing method and device and electronic equipment Download PDF

Info

Publication number
CN113158094A
CN113158094A CN202110352255.4A CN202110352255A CN113158094A CN 113158094 A CN113158094 A CN 113158094A CN 202110352255 A CN202110352255 A CN 202110352255A CN 113158094 A CN113158094 A CN 113158094A
Authority
CN
China
Prior art keywords
retrieval
target content
interface
hyperlink
application
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202110352255.4A
Other languages
Chinese (zh)
Other versions
CN113158094B (en
Inventor
李玉娥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110352255.4A priority Critical patent/CN113158094B/en
Publication of CN113158094A publication Critical patent/CN113158094A/en
Application granted granted Critical
Publication of CN113158094B publication Critical patent/CN113158094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • 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

Abstract

The disclosure relates to an information sharing method and device and electronic equipment. The method comprises the following steps: identifying whether the characters input in an input box of a chat interface are preset characters or not; if yes, acquiring target content input at a position corresponding to the preset character; creating a hyperlink corresponding to the target content; responding to the sending action aiming at the input box, and sending the chat information containing the hyperlink to a chat interface for displaying; and the hyperlink is used for jumping to a retrieval interface and displaying a retrieval result related to the target content in the retrieval interface.

Description

Information sharing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to an information sharing method and apparatus, and an electronic device.
Background
With the continuous development of internet technology, social applications based on the internet are more and more. While the most common function in social applications is chat.
Generally, the chat content among users can share various information such as hot news, hot videos, microblog hot searches, money-exploded commodities, hot songs and the like besides input chat information such as characters, voice, expressions and the like.
In the related art, the information sharing method is generally as follows: when browsing the information related to the hot spot, a user clicks a sharing button in the page, and clicks and sends the shared friend selected in the skipped friend page; therefore, the hot spot information can be sent to a chat interface with the friend, and the friend skips to a corresponding hot spot information page for browsing by clicking an entry related to the hot spot information displayed in the chat interface.
However, in actual use, the user may suddenly think of the information to be shared during the chat process; at this time, the user needs to quit the chat interface, and can share the information in the aforementioned manner after finding the page where the information needs to be shared. In addition, the user cannot find the page where the information is located, so that the information cannot be shared. Therefore, the existing information sharing mode has the problems of complex operation, low sharing efficiency and even incapability of meeting the information sharing requirement of users.
Therefore, it is urgently needed to provide a more convenient and faster information sharing way for users.
Disclosure of Invention
The disclosure provides an information sharing method and device and electronic equipment, and aims to at least solve the problems that information sharing operation is complex, efficiency is low, and even information sharing requirements of users cannot be met in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an information sharing method, including:
identifying whether the characters input in an input box of a chat interface are preset characters or not;
if yes, acquiring target content input at a position corresponding to the preset character;
creating a hyperlink corresponding to the target content;
responding to the sending action aiming at the input box, and sending the chat information containing the hyperlink to a chat interface for displaying; and the hyperlink is used for jumping to a retrieval interface and displaying a retrieval result related to the target content in the retrieval interface.
Optionally, the obtaining of the target content input at the position corresponding to the preset character includes:
supplementing a second preset character which is the same as the preset character in the input box, and positioning an input cursor between the two preset characters;
and acquiring target content input between the two preset characters.
Optionally, when the target content includes an application name of a third-party application, the method further includes:
monitoring a trigger operation aiming at the hyperlink;
responding to the trigger operation, acquiring an application name of the third-party application contained in the target content, and jumping to the third-party application corresponding to the application name;
displaying a retrieval result returned by a server corresponding to the third-party application in a retrieval interface provided by the third-party application; wherein the retrieval result comprises data related to the target content stored on the server.
Optionally, the method further includes:
monitoring a trigger operation aiming at the hyperlink;
responding to the trigger operation, and jumping to a retrieval interface provided by an application where the chat interface is located;
displaying a retrieval result returned by a server corresponding to the application of the chat interface in the retrieval interface; wherein the retrieval result comprises data related to the target content stored on the server.
Optionally, the method further includes:
and if a message that the server side returns no retrieval result is received, displaying the retrieval result returned by the browser in the retrieval interface, wherein the retrieval result comprises data related to the target content.
Optionally, the method further includes:
if a message that the server returns no retrieval result is received, outputting at least one icon of a third-party application on the retrieval interface;
and after any icon is triggered, displaying a retrieval result returned by the third-party application corresponding to the triggered icon in the retrieval interface, wherein the retrieval result comprises data related to the target content.
Optionally, different preset characters correspond to different retrieval types;
and aiming at different preset characters, the retrieval result comprises data which is related to the target content and accords with the retrieval type corresponding to the preset characters.
Optionally, the application where the chat interface is located or the third-party application includes a short video application, the search interface includes a search interface provided by the short video application, and the search result includes a short video resource stored on a server corresponding to the short video application.
According to a second aspect of the embodiments of the present disclosure, there is provided an information sharing method, including:
receiving a retrieval request sent by a client; the retrieval request is a request generated by triggering a hyperlink displayed in a chat interface; the hyperlink is a hyperlink corresponding to target content input at a position corresponding to a preset character in the chat information, and the retrieval request comprises the target content;
searching by taking the target content as a keyword to obtain a searching result related to the target content;
and returning the retrieval result to the client.
Optionally, different preset characters correspond to different retrieval types;
aiming at different preset characters, the target content is used as a keyword for retrieval, and a result related to the keyword is obtained, wherein the method comprises the following steps:
and searching by taking the target content as a keyword to obtain a search result which is related to the keyword and accords with the search type corresponding to the characteristic character.
Optionally, the method is applied to a server corresponding to an application where the chat interface is located; the retrieval result comprises resources stored on the server.
Optionally, the application includes a short video application, and the chat interface includes a chat interface provided by the short video application; the retrieval interface comprises a retrieval interface provided by the short video application, and the retrieval result comprises short video resources stored on a server corresponding to the short video application.
Optionally, the method further includes:
and if the retrieval result comprises the short video, paying attention to the short video user who issues the short video for the user.
According to a third aspect of the embodiments of the present disclosure, there is provided an information sharing apparatus, including:
a recognition unit configured to perform recognition of whether a character input in an input box of a chat interface is a preset character;
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is configured to acquire target content input at a position corresponding to a preset character when the preset character is input;
a creating unit configured to perform creating a hyperlink corresponding to the target content;
the sharing unit is configured to execute sending action aiming at the input box and send the chat information containing the hyperlink to a chat interface for displaying; and the hyperlink is used for jumping to a retrieval interface and displaying a retrieval result related to the target content in the retrieval interface.
Optionally, the obtaining unit includes:
a supplement subunit configured to perform, when a preset character is input, supplementing a second preset character that is the same as the preset character in the input box, and positioning an input cursor between the two preset characters;
an acquisition subunit configured to perform acquisition of target content input between the two preset characters.
Optionally, when the target content includes an application name of a third-party application, the apparatus further includes:
the monitoring subunit monitors the triggering operation aiming at the hyperlink;
the response subunit is used for responding to the trigger operation, acquiring the application name of the third-party application contained in the target content, and skipping to the third-party application corresponding to the application name;
the display subunit displays a retrieval result returned by the server corresponding to the third-party application in a retrieval interface provided by the third-party application; wherein the retrieval result comprises data related to the target content stored on the server.
Optionally, the apparatus further comprises:
the monitoring subunit monitors the triggering operation aiming at the hyperlink;
the response subunit, in response to the trigger operation, skips to a retrieval interface provided by the application where the chat interface is located;
the display subunit displays a search result returned by the server corresponding to the application of the chat interface in the search interface; wherein the retrieval result comprises data related to the target content stored on the server.
Optionally, the presentation subunit is further configured to perform, if a message that the server returns no retrieval result is received, performing
And displaying a retrieval result returned by the browser in the retrieval interface, wherein the retrieval result comprises data related to the target content.
Optionally, the presentation subunit is further configured to output an icon of at least one third-party application on the retrieval interface if a message that the server returns no retrieval result is received; and after any icon is triggered, displaying a retrieval result returned by the third-party application corresponding to the triggered icon in the retrieval interface, wherein the retrieval result comprises data related to the target content.
Optionally, different preset characters correspond to different retrieval types;
and aiming at different preset characters, the retrieval result comprises data which is related to the target content and accords with the retrieval type corresponding to the preset characters.
Optionally, the application where the chat interface is located or the third-party application includes a short video application, the search interface includes a search interface provided by the short video application, and the search result includes a short video resource stored on a server corresponding to the short video application.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an information sharing apparatus, including:
a receiving unit configured to perform receiving a retrieval request sent by a client; the retrieval request is a request generated by triggering a hyperlink displayed in a chat interface; the hyperlink is a hyperlink corresponding to target content input at a position corresponding to a preset character in the chat information, and the retrieval request comprises the target content;
a retrieval unit configured to perform retrieval using the target content as a keyword to obtain a retrieval result related to the target content;
and the sharing unit is configured to return the retrieval result to the client.
Optionally, different preset characters correspond to different retrieval types;
and aiming at different preset characters, the retrieval unit is configured to perform retrieval by taking the target content as a keyword to obtain a retrieval result which is related to the keyword and accords with the retrieval type corresponding to the characteristic character.
Optionally, the device is applied to a server corresponding to an application where the chat interface is located; the retrieval result comprises resources stored on the server.
Optionally, the application includes a short video application, and the chat interface includes a chat interface provided by the short video application; the retrieval interface comprises a retrieval interface provided by the short video application, and the retrieval result comprises short video resources stored on a server corresponding to the short video application.
Optionally, the apparatus further comprises:
and the attention unit pays attention to the short video user who issues the short video for the user if the retrieval result comprises the short video.
According to a fifth aspect of the embodiments of the present disclosure, an information sharing electronic device includes:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information sharing method of any one of the preceding claims.
According to a sixth aspect of the embodiments of the present disclosure, a computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of an information sharing electronic device, enables the information sharing electronic device to execute any one of the information sharing methods described in the foregoing.
According to a seventh aspect of embodiments of the present disclosure, a computer program product includes a computer program or instructions, which when executed by a processor, implements the information sharing method of any one of the preceding claims.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
and in the chat process, a hyperlink corresponding to the information which the user wants to share is quickly generated, and the hyperlink is displayed in the chat interface, so that the user participating in the chat jumps to the retrieval interface after triggering the hyperlink, and the information which the user wants to share is displayed in the retrieval interface. The information that the user wants to share is a retrieval result related to the target content input at the position corresponding to the preset character sent by the user. Therefore, in the chat process, the user can share the information without quitting the chat interface.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flow chart illustrating an information sharing method according to an example embodiment.
FIG. 2 is a diagram illustrating a chat interface, according to an example embodiment.
FIG. 3 is a diagram illustrating a chat interface and a retrieval page, according to an example embodiment.
Fig. 4 is a flow chart illustrating an information sharing method according to an example embodiment.
Fig. 5 is a block diagram illustrating an information sharing apparatus according to an example embodiment.
Fig. 6 is a block diagram illustrating an information sharing apparatus according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating an information sharing method, which may be applied to a client, according to an exemplary embodiment, and includes the following steps:
step 110, identifying whether the characters input in an input box of the chat interface are preset characters;
step 120, if yes, acquiring target content input at a position corresponding to the preset character;
step 130, creating a hyperlink corresponding to the target content;
step 140, sending the chat information containing the hyperlink to a chat interface for displaying in response to the sending action aiming at the input box; and the hyperlink is used for jumping to a retrieval interface and displaying a retrieval result related to the target content in the retrieval interface.
Where the client may refer to a client device in hardware, such as a desktop computer, a laptop computer, a tablet computer, a smartphone, a handheld computer, a personal digital assistant ("PDA"), or any other wired or wireless processor-driven device.
The client may refer to an application client on software, such as an APP of an instant messaging class and an APP of a short video class.
The client may be a client combining software and hardware, such as a smart phone installed with an instant messaging APP and a smart phone installed with a short video APP.
Typically, a user may log into an existing user account on a client or use a service provided by an application in the identity of a guest. For example, chatting with friends or other users in an application. The chat can be a private chat or a group chat.
In general, during the chat process, a chat interface can be displayed on the client. The chat interface may include a to-be-sent area 20 and a sent area 30, as shown in fig. 2. An input box 21 may be included in the region 20 to be transmitted, and the user may input chat information to be transmitted into the input box 21. And then triggers a sending action (e.g., clicking a "send" button 22 in the area to be sent 20) to send the chat message entered in the input box 21.
After the user triggers the sending action, the chat message in the input box 21 is displayed in the sent area 30, and the chat message input in the input box 21 is cleared. At this time, the chat information in the sent area 30 can be seen by all users participating in the chat and cannot be modified.
In the embodiment of the present specification, an identification manner is provided for the content input into the input box by the user, so as to cooperate with the subsequent steps to generate the hyperlink, that is, step 110 and step 120. By identifying whether the characters input by the user in the input box of the chat interface are preset characters or not, the target content input by the user at the position corresponding to the preset characters is obtained when the preset characters are input. The position corresponding to the preset character may include various conditions, such as content after the preset character, or content before the preset character; can be flexibly set according to requirements in practical application. The present specification is not particularly limited thereto.
In an embodiment, in order to obtain the target content more accurately, the step 120 of obtaining the target content input at the position corresponding to the preset character specifically includes:
supplementing a second preset character which is the same as the preset character in the input box, and positioning an input cursor between the two preset characters;
and acquiring target content input between the two preset characters.
For example, when the user enters a "#" in the input box, the client may automatically supplement one "#", thereby forming a "#", and move the input cursor in the input box between the two "#". Since the input cursor is located at the last character by default, the target content in the embodiment is the content located between two "#"; thus requiring the user to manually adjust the input cursor between the two "#". For this reason, this embodiment does not require the user to manually adjust the input cursor; but is automatically adjusted by the client; so that the user can conveniently and quickly input the target content related to the hot spot. It should be noted that "#" is an example and is not a specific limitation on the preset character.
In one embodiment, different preset characters correspond to different retrieval types; and aiming at different preset characters, displaying a retrieval result which is related to the target content and accords with the retrieval type corresponding to the preset characters on the retrieval interface.
For example, the specific character includes a first specific character, a second characteristic character, or a third characteristic character;
when the specific character is the first specific character (such as "#"), the retrieval result is all types of retrieval results;
when the specific character is a second specific character (e.g., "!") the retrieval result is a retrieval result of a music genre;
when the specific character is a third specific character (e.g., "@"), the retrieval result is an expression type retrieval result.
In addition, specific characters of video types, specific characters of picture types, and the like can be set.
Different preset characters are set so as to configure different retrieval types, and different retrieval requirements of users are met.
After obtaining the target content, the client may create a hyperlink corresponding to the target content. When creating the hyperlink, the font style of the hyperlink, the font color before clicking, the font color after clicking and the clicking event can be set.
The client sends the chat information containing the hyperlink to the chat interface for presentation in response to a sending action for the input box (e.g., the user clicks a send button of the input box). In this way, any user participating in the chat (e.g., the user sending the chat information and other users chatting with the user) can trigger the hyperlink displayed in the sent area of the chat interface, thereby jumping to the retrieval interface and displaying the retrieval result related to the target content on the retrieval interface. To this end, the method may further include:
monitoring a trigger operation aiming at the hyperlink;
responding to the trigger operation, and jumping to a retrieval interface provided by an application where the chat interface is located;
displaying a retrieval result returned by a server corresponding to the application of the chat interface in the retrieval interface; wherein the retrieval result comprises data related to the target content stored on the server.
Generally, the search result needs to be provided by a server corresponding to the application where the chat interface is located. The server may refer to a server corresponding to the application, a server cluster, or a cloud platform constructed by the server cluster. For example, a server corresponding to an APP provided with a chat function, a server cluster, or a cloud platform constructed by a server cluster.
When the user or other users chatting with the user trigger the hyperlink displayed on the chatting interface, the client of the user or other users chatting with the user can not only jump to the retrieval interface, but also send the target content to the server as a retrieval keyword. The server side can then search based on the target content and return the search result to the client side; accordingly, the client can display the retrieval result which is returned by the server and is related to the target content in the retrieval interface.
According to the embodiment, the hyperlink corresponding to the information which the user wants to share is quickly generated in the chatting process, and the hyperlink is displayed in the chatting interface, so that the user participating in the chatting can jump to the retrieval interface after triggering the hyperlink, and the information which the user wants to share is displayed in the retrieval interface. The information that the user wants to share is a retrieval result related to the target content input at the position corresponding to the preset character sent by the user. Therefore, in the chat process, the user can share information without quitting the chat interface, and the operation is convenient and fast. In addition, the information sharing efficiency is improved, so that the transmission efficiency of the shared information is correspondingly improved; the win-win of the user and the transmitted information is realized.
The retrieval interface can be an interface provided by the application of the chat interface and used for displaying the retrieval result.
A schematic diagram of a chat interface and a retrieval interface as shown in figure 3.
During the chat, the user may input chat information including a preset character in an input box, such as "# target content #" shown in the left diagram of fig. 3. When the user clicks the "send" button, a hyperlink corresponding to "# target content #" is displayed in the chat interface, as shown in the middle diagram of fig. 3.
Further, when clicking the hyperlink "# target content #" in the chat interface, the user will jump to the search interface. The search results associated with the "# target contents #" are then presented in the search interface as "result 1" to "result 6" shown in the right-hand graph in fig. 3.
As shown in fig. 3, in addition to displaying the search result, the search interface may further include an advertisement space for displaying an advertisement. If "# target content #" relates to a content distributor (e.g., short video up master), the relevant information of the content distributor, such as account avatar, homepage image, etc. of the content distributor, the number of distributed works, the number of plays of all works, focus button, favorite button, etc., may also be presented in the search interface.
In one embodiment, the server typically has stored thereon various resources within the station. And the server side can preferentially search the resources in the station when searching the target content. And when the retrieval result is the resource stored on the server corresponding to the application of the chat interface, realizing the in-station closed information retrieval and information sharing mode. And because the chat server is a resource in the website, after the user participating in the chat triggers the hyperlink, the search result in the website can be displayed without jumping out of the current application.
In practical applications, the intra-site retrieval may not be available, and the server may return a message without a retrieval result for the case that the server does not retrieve a retrieval result related to the target content.
Correspondingly, if the client receives the message that the server returns no retrieval result, the client displays the retrieval result returned by the browser in the retrieval interface, wherein the retrieval result comprises the data which is retrieved by the browser and is related to the target content.
After receiving the message that the server returns no retrieval result, the client can send the target content to a browser installed on the client to start the browser to retrieve the retrieval result related to the target content. In this way, the client can display the search result related to the target content returned by the browser in the search interface.
In this embodiment, the browser may be started and retrieved in the background, and the interface of the client is still located in the retrieval interface; therefore, the off-site retrieval is not perceived by the user, and the influence of starting the browser on the chat is avoided.
Such off-site retrieval may be supplemented with on-site retrieval to avoid the problem of no results from on-site retrieval.
It is worth mentioning that the off-site search may be other third party applications in addition to the browser. Specifically, if the client receives a message that the server returns no retrieval result, the client can output at least one icon of the third-party application on the retrieval interface; and after any icon is triggered, displaying a retrieval result returned by the third-party application corresponding to the triggered icon in the retrieval interface, wherein the retrieval result comprises data which is retrieved by the third-party application and is related to the target content.
After receiving the message that the server returns no retrieval result, the client can send target content to the third-party application indicated by the icon; to retrieve, by the third-party application, a retrieval result related to the target content. In this way, the client can display the retrieval result related to the target content returned by the third-party application in the retrieval interface.
In this embodiment, when no result is retrieved from the website, icons of the third-party applications available for retrieval may pop up in the retrieval interface, and after a user clicks any icon, a retrieval result related to the target content may be retrieved through the third-party application indicated by the icon. And further displaying the retrieval result returned by the third-party application in the retrieval interface.
Similarly, after the user clicks the icon, the third-party application is started and the third-party application is searched in the background, and the interface of the client is still located in the search interface.
The embodiment of the present description may be applicable to a short video scene, where the application may include a short video application, and the chat interface may include a chat interface provided by the short video application; the search interface may include a search interface provided by the short video application, and the search result may include a short video resource stored on a server corresponding to the short video application.
In addition, when the retrieval result is the short video, the short video user with the short time can be paid attention to the user to distribute.
In an embodiment, the method further comprises:
monitoring a trigger operation aiming at the hyperlink when the target content contains an application name of a third-party application;
responding to the trigger operation, acquiring an application name of the third-party application contained in the target content, and jumping to the third-party application corresponding to the application name;
displaying a retrieval result returned by a server corresponding to the third-party application in a retrieval interface provided by the third-party application; wherein the retrieval result comprises data related to the target content stored on the server.
In this embodiment, when the information that the user needs to share is located in other applications, the user may specify a target application that needs to jump and information content that needs to be shared in the chat information. The client may automatically create hyperlinks for the target applications corresponding to the target content of the information content as a whole. Thus, a way to jump from the chat application to the designated target application to present the shared information is provided. The retrieval and display retrieval results of the target application are the same as those in other embodiments in this specification, and are not described herein again.
An embodiment applied to the server corresponding to the foregoing embodiment of fig. 1 is also provided below. Fig. 4 is a flowchart of an information sharing method, applied to the server, and includes the following steps:
step 210, receiving a retrieval request sent by a client; the retrieval request is a request generated by triggering a hyperlink displayed in a chat interface; the hyperlink is a hyperlink corresponding to target content input at a position corresponding to a preset character in the chat information, and the retrieval request comprises the target content;
step 220, searching by taking the target content as a keyword to obtain a search result related to the target content;
step 230, returning the retrieval result to the client.
The embodiment is the same as or similar to the embodiment shown in fig. 1, and related contents are the same as or similar to those in the embodiment shown in fig. 1, and specific details of steps performed by the client may be simply described with reference to the embodiment shown in fig. 1 and will not be described herein again, and steps performed by the server will be described in detail below.
As described in the previous embodiment, the client sends the chat information containing the hyperlink to the chat interface for presentation in response to the sending action for the input box. When any user (such as the user who sends the chat information or other users who chat with the user) who participates in the chat triggers the hyperlink displayed on the chat interface, the client used by the user who triggers the hyperlink can send the target content to the server.
The server side can perform retrieval based on the target content and return a retrieval result to the client side; accordingly, the client can display the retrieval result which is returned by the server and is related to the target content in the retrieval interface.
Specifically, after the retrieval results related to the target content are retrieved, the retrieved retrieval results can be sorted according to a preset rule, and the retrieval results with the preset number in the top of the sorting results are returned to the client.
The preset rules comprise sequencing according to at least one dimension of the number of praise times, the number of play times, the number of collection times, the number of comment times and the like, so that the number of search results with the maximum preset number of praise times, play times, collection times and comment times is determined.
Similar to the previous embodiment of fig. 1, different predetermined characters correspond to different search types;
for different preset characters, the step 220 may include:
and searching by taking the target content as a keyword to obtain a search result which is related to the keyword and accords with the search type corresponding to the characteristic character.
For example, the specific character includes a first specific character, a second characteristic character, or a third characteristic character;
when the specific character is the first specific character (such as "#"), obtaining a retrieval result which is related to the keyword and accords with all types;
when the specific character is a second specific character (such as "!"), obtaining a retrieval result which is related to the keyword and accords with the music type;
and when the specific character is a third specific character (such as '@'), obtaining a retrieval result which is related to the keyword and accords with the expression type.
In addition, specific characters of video types, specific characters of picture types, and the like can be set.
As similar to the embodiment in fig. 1, the server may be a server corresponding to an application where the chat interface is located, and various resources are stored on the server. In this way, the server can perform retrieval in the station, that is, retrieve the retrieval result related to the target content from the resource stored on the server. Because of the resources in the station, after the user participating in the chat triggers the hyperlink, the search result in the station can be displayed without jumping out of the current application.
In practical application, when the in-site retrieval does not retrieve the retrieval result related to the target content, the server side can return a message without the retrieval result to the client side. Accordingly, after receiving the message that the server returns no retrieval result, the client may send the target content to a browser installed on the client, so as to start the browser to retrieve the retrieval result related to the target content. In this way, the client can display the search result related to the target content returned by the browser in the search interface.
In this embodiment, the browser may be started and retrieved in the background, and the interface of the client is still located in the retrieval interface; therefore, the off-site retrieval is not perceived by the user, and the influence of starting the browser on the chat is avoided.
In this embodiment, the browser may be started and retrieved in the background, and the interface of the client is still located in the retrieval interface; therefore, the off-site retrieval is not perceived by the user, and the influence of starting the browser on the chat is avoided.
Such off-site retrieval may be supplemented with on-site retrieval to avoid the problem of no results from on-site retrieval.
It is worth mentioning that the off-site search may be other third party applications in addition to the browser. Specifically, if a message that no retrieval result is returned by the server is received, at least one icon of a third-party application is output on the retrieval interface; when any icon is triggered, sending target content to a third-party application indicated by the icon; to retrieve, by the third-party application, a retrieval result related to the target content;
and displaying a retrieval result which is returned by the third-party application and is related to the target content in the retrieval interface.
In this embodiment, when no result is retrieved from the website, icons of the third-party applications available for retrieval may pop up in the retrieval interface, and after a user clicks any icon, a retrieval result related to the target content may be retrieved through the third-party application indicated by the icon. And further displaying the retrieval result returned by the third-party application in the retrieval interface.
Similarly, after the user clicks the icon, the third-party application is started and the third-party application is searched in the background, and the interface of the client is still located in the search interface.
The embodiment of the present description may be applicable to a short video scene, where the application may include a short video application, and the chat interface may include a chat interface provided by the short video application; the search interface may include a search interface provided by the short video application, and the search result may include a short video resource stored on a server corresponding to the short video application.
In addition, when the retrieval result is the short video, the short video user with the short time can be paid attention to the user to distribute.
According to the embodiment, the hyperlink corresponding to the information which the user wants to share is quickly generated in the chatting process, and the hyperlink is displayed in the chatting interface, so that the user participating in the chatting can jump to the retrieval interface after triggering the hyperlink, and the information which the user wants to share is displayed in the retrieval interface. The information that the user wants to share is a retrieval result related to the target content input at the position corresponding to the preset character sent by the user. Therefore, in the chat process, the user can share information without quitting the chat interface, and the operation is convenient and fast. In addition, the information sharing efficiency is improved, so that the transmission efficiency of the shared information is correspondingly improved; the win-win of the user and the transmitted information is realized.
Corresponding to the foregoing embodiments of the information sharing method shown in fig. 1 and 4, the present specification also provides embodiments of the information sharing apparatus shown in fig. 5 and 6. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software.
Fig. 5 is a block diagram of an information sharing apparatus corresponding to fig. 1. Referring to fig. 5, the apparatus includes an identifying unit 310, an obtaining unit 320, a creating unit 330, and a sharing unit 340.
The recognition unit 310 is configured to perform recognition on whether the character input in the input box of the chat interface is a preset character;
an obtaining unit 320 configured to, when a preset character is input, obtain target content input at a position corresponding to the preset character;
a creating unit 330 configured to perform creating a hyperlink corresponding to the target content;
the sharing unit 340 is configured to execute sending of the chat information containing the hyperlink to a chat interface for presentation in response to the sending action for the input box; and the hyperlink is used for jumping to a retrieval interface and displaying a retrieval result related to the target content in the retrieval interface.
Optionally, the obtaining unit 320 includes:
a supplement subunit configured to perform, when a preset character is input, supplementing a second preset character that is the same as the preset character in the input box, and positioning an input cursor between the two preset characters;
an acquisition subunit configured to perform acquisition of target content input between the two preset characters.
Optionally, when the target content includes an application name of a third-party application, the apparatus further includes:
the monitoring subunit monitors the triggering operation aiming at the hyperlink;
the response subunit is used for responding to the trigger operation, acquiring the application name of the third-party application contained in the target content, and skipping to the third-party application corresponding to the application name;
the display subunit displays a retrieval result returned by the server corresponding to the third-party application in a retrieval interface provided by the third-party application; wherein the retrieval result comprises data related to the target content stored on the server.
Optionally, the apparatus further comprises:
the monitoring subunit monitors the triggering operation aiming at the hyperlink;
the response subunit, in response to the trigger operation, skips to a retrieval interface provided by the application where the chat interface is located;
the display subunit displays a search result returned by the server corresponding to the application of the chat interface in the search interface; wherein the retrieval result comprises data related to the target content stored on the server.
Optionally, the presentation subunit is further configured to perform, if a message that the server returns no retrieval result is received,
and displaying a retrieval result returned by the browser in the retrieval interface, wherein the retrieval result comprises data related to the target content.
Optionally, the displaying subunit is further configured to, if a message that the server returns no search result is received, after the search interface outputs at least one icon of the third-party application and any icon is triggered, display, in the search interface, a search result returned by the third-party application corresponding to the triggered icon, where the search result includes data related to the target content.
Optionally, different preset characters correspond to different retrieval types;
and aiming at different preset characters, the retrieval result comprises data which is related to the target content and accords with the retrieval type corresponding to the preset characters.
Optionally, the application where the chat interface is located or the third-party application includes a short video application, the search interface includes a search interface provided by the short video application, and the search result includes a short video resource stored on a server corresponding to the short video application.
Fig. 6 is a block diagram of an information sharing apparatus corresponding to fig. 4. Referring to fig. 6, the apparatus includes a receiving unit 410, a retrieving unit 420, and a sharing unit 430.
Wherein, the receiving unit 410 is configured to perform receiving a retrieval request sent by a client; the retrieval request is a request generated by triggering a hyperlink displayed in a chat interface, the hyperlink is a hyperlink corresponding to target content input at a position corresponding to a preset character in chat information, and the retrieval request comprises the target content;
a retrieval unit 420 configured to perform a retrieval using the target content as a keyword, and obtain a retrieval result related to the target content;
a sharing unit 430 configured to perform returning the retrieval result to the client.
Optionally, different preset characters correspond to different retrieval types;
for different preset characters, the retrieving unit 420 is configured to perform a retrieval using the target content as a keyword, and obtain a retrieval result related to the keyword and conforming to a retrieval type corresponding to the characteristic character.
Optionally, the method is applied to a server corresponding to an application where the chat interface is located; the retrieval result comprises resources stored on the server.
Optionally, the application includes a short video application, and the chat interface includes a chat interface provided by the short video application; the retrieval interface comprises a retrieval interface provided by the short video application, and the retrieval result comprises short video resources stored on a server corresponding to the short video application.
Optionally, the apparatus further comprises:
and the attention unit pays attention to the short video user who issues the short video for the user if the retrieval result comprises the short video.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In an exemplary embodiment, there is also provided an information sharing electronic device, comprising a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to perform the above method.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an apparatus to perform the above-described method is also provided. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product comprising computer programs/instructions which, when executed by a processor, perform the above method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An information sharing method, comprising:
identifying whether the characters input in an input box of a chat interface are preset characters or not;
if yes, acquiring target content input at a position corresponding to the preset character;
creating a hyperlink corresponding to the target content;
responding to the sending action aiming at the input box, and sending the chat information containing the hyperlink to a chat interface for displaying; and the hyperlink is used for jumping to a retrieval interface and displaying a retrieval result related to the target content in the retrieval interface.
2. The method of claim 1, wherein when the target content contains an application name of a third-party application, the method further comprises:
monitoring a trigger operation aiming at the hyperlink;
responding to the trigger operation, acquiring an application name of the third-party application contained in the target content, and jumping to the third-party application corresponding to the application name;
displaying a retrieval result returned by a server corresponding to the third-party application in a retrieval interface provided by the third-party application; wherein the retrieval result comprises data related to the target content stored on the server.
3. The method of claim 1, further comprising:
monitoring a trigger operation aiming at the hyperlink;
responding to the trigger operation, and jumping to a retrieval interface provided by an application where the chat interface is located;
displaying a retrieval result returned by a server corresponding to the application of the chat interface in the retrieval interface; wherein the retrieval result comprises data related to the target content stored on the server.
4. The method according to claim 2 or 3, wherein the application where the chat interface is located or the third-party application comprises a short video application, the search interface comprises a search interface provided by the short video application, and the search result comprises a short video resource stored on a server corresponding to the short video application.
5. An information sharing method, comprising:
receiving a retrieval request sent by a client; the retrieval request is a request generated by triggering a hyperlink displayed in a chat interface, the hyperlink is a hyperlink corresponding to target content input at a position corresponding to a preset character in chat information, and the retrieval request comprises the target content;
searching by taking the target content as a keyword to obtain a searching result related to the target content;
and returning the retrieval result to the client.
6. The method of claim 5, wherein the method is applied to a server corresponding to an application where the chat interface is located; the retrieval result comprises resources stored on the server.
7. The method of claim 6, wherein the application comprises a short video application, and wherein the chat interface comprises a chat interface provided by the short video application; the retrieval interface comprises a retrieval interface provided by the short video application, and the retrieval result comprises short video resources stored on a server corresponding to the short video application.
8. An information sharing apparatus, comprising:
a recognition unit configured to perform recognition of whether a character input in an input box of a chat interface is a preset character;
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is configured to acquire target content input at a position corresponding to a preset character when the preset character is input;
a creating unit configured to perform creating a hyperlink corresponding to the target content;
the sharing unit is configured to execute sending action aiming at the input box and send the chat information containing the hyperlink to a chat interface for displaying; and the hyperlink is used for jumping to a retrieval interface and displaying a retrieval result related to the target content in the retrieval interface.
9. An information sharing apparatus, comprising:
a receiving unit configured to perform receiving a retrieval request sent by a client; the retrieval request is a request generated by triggering a hyperlink displayed in a chat interface, the hyperlink is a hyperlink corresponding to target content input at a position corresponding to a preset character in chat information, and the retrieval request comprises the target content;
a retrieval unit configured to perform retrieval using the target content as a keyword to obtain a retrieval result related to the target content;
and the sharing unit is configured to return the retrieval result to the client.
10. An information sharing electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information sharing method of any one of claims 1-4 and/or 5-7.
CN202110352255.4A 2021-03-31 2021-03-31 Information sharing method and device and electronic equipment Active CN113158094B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110352255.4A CN113158094B (en) 2021-03-31 2021-03-31 Information sharing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110352255.4A CN113158094B (en) 2021-03-31 2021-03-31 Information sharing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113158094A true CN113158094A (en) 2021-07-23
CN113158094B CN113158094B (en) 2024-03-01

Family

ID=76886334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110352255.4A Active CN113158094B (en) 2021-03-31 2021-03-31 Information sharing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113158094B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024032763A1 (en) * 2022-08-12 2024-02-15 北京字跳网络技术有限公司 Information processing method and apparatus, device, and medium

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060119836A (en) * 2006-10-10 2006-11-24 엔에이치엔(주) System and method for sharing search result using messenger
CN1965314A (en) * 2004-04-19 2007-05-16 雅虎公司 Techniques for inline searching in an instant messenger environment
CN101141369A (en) * 2007-09-19 2008-03-12 魏新成 Instant online search to communication object in search frame of instant communication software
CN104063400A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Data search method and data search device
US20150235289A1 (en) * 2012-05-17 2015-08-20 Leo Jeremias Computer system and methods for chat enabled online search
US20160330150A1 (en) * 2015-05-06 2016-11-10 Kakao Corp. Message service providing method for message service linked to search service and message server and user terminal to perform the method
CN106605224A (en) * 2016-08-15 2017-04-26 北京小米移动软件有限公司 Information searching method, information searching device, electronic equipment and server
CN106934714A (en) * 2015-12-30 2017-07-07 苏宁云商集团股份有限公司 A kind of business data processing method and device
CN107301242A (en) * 2017-07-03 2017-10-27 北京小米移动软件有限公司 Method, device and the storage medium of page jump
CN107704327A (en) * 2017-08-16 2018-02-16 深圳天珑无线科技有限公司 Share method, mobile terminal and the storage device of urban information
CN107885825A (en) * 2017-11-07 2018-04-06 维沃移动通信有限公司 A kind of five application page sharing method and mobile terminal
CN108038165A (en) * 2017-12-06 2018-05-15 东软集团股份有限公司 A kind of information search method, searcher, terminal device and server apparatus
CN110598098A (en) * 2019-08-30 2019-12-20 北京搜狗科技发展有限公司 Information recommendation method and device and information recommendation device
CN110826002A (en) * 2019-10-30 2020-02-21 腾讯科技(深圳)有限公司 Information sharing method and device, terminal and storage medium
CN110914819A (en) * 2017-05-09 2020-03-24 微软技术许可有限责任公司 Chat robot search result integration
CN111084991A (en) * 2019-12-11 2020-05-01 米哈游科技(上海)有限公司 Game-based chatting method, device, terminal and storage medium
CN111695027A (en) * 2019-03-13 2020-09-22 阿里巴巴集团控股有限公司 Information processing method and device
CN112069410A (en) * 2020-09-09 2020-12-11 腾讯科技(深圳)有限公司 Message processing method, device, equipment and medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1965314A (en) * 2004-04-19 2007-05-16 雅虎公司 Techniques for inline searching in an instant messenger environment
KR20060119836A (en) * 2006-10-10 2006-11-24 엔에이치엔(주) System and method for sharing search result using messenger
CN101141369A (en) * 2007-09-19 2008-03-12 魏新成 Instant online search to communication object in search frame of instant communication software
US20150235289A1 (en) * 2012-05-17 2015-08-20 Leo Jeremias Computer system and methods for chat enabled online search
CN104063400A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Data search method and data search device
US20160330150A1 (en) * 2015-05-06 2016-11-10 Kakao Corp. Message service providing method for message service linked to search service and message server and user terminal to perform the method
CN106934714A (en) * 2015-12-30 2017-07-07 苏宁云商集团股份有限公司 A kind of business data processing method and device
CN106605224A (en) * 2016-08-15 2017-04-26 北京小米移动软件有限公司 Information searching method, information searching device, electronic equipment and server
CN110914819A (en) * 2017-05-09 2020-03-24 微软技术许可有限责任公司 Chat robot search result integration
CN107301242A (en) * 2017-07-03 2017-10-27 北京小米移动软件有限公司 Method, device and the storage medium of page jump
CN107704327A (en) * 2017-08-16 2018-02-16 深圳天珑无线科技有限公司 Share method, mobile terminal and the storage device of urban information
CN107885825A (en) * 2017-11-07 2018-04-06 维沃移动通信有限公司 A kind of five application page sharing method and mobile terminal
CN108038165A (en) * 2017-12-06 2018-05-15 东软集团股份有限公司 A kind of information search method, searcher, terminal device and server apparatus
CN111695027A (en) * 2019-03-13 2020-09-22 阿里巴巴集团控股有限公司 Information processing method and device
CN110598098A (en) * 2019-08-30 2019-12-20 北京搜狗科技发展有限公司 Information recommendation method and device and information recommendation device
CN110826002A (en) * 2019-10-30 2020-02-21 腾讯科技(深圳)有限公司 Information sharing method and device, terminal and storage medium
CN111084991A (en) * 2019-12-11 2020-05-01 米哈游科技(上海)有限公司 Game-based chatting method, device, terminal and storage medium
CN112069410A (en) * 2020-09-09 2020-12-11 腾讯科技(深圳)有限公司 Message processing method, device, equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024032763A1 (en) * 2022-08-12 2024-02-15 北京字跳网络技术有限公司 Information processing method and apparatus, device, and medium

Also Published As

Publication number Publication date
CN113158094B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
US11061966B2 (en) Method for processing fusion data and information recommendation system
US11288303B2 (en) Information search method and apparatus
US8707184B2 (en) Content sharing interface for sharing content in social networks
US10845949B2 (en) Continuity of experience card for index
US20160330150A1 (en) Message service providing method for message service linked to search service and message server and user terminal to perform the method
CN112286608B (en) Message forwarding method and device, computer equipment and storage medium
TWI519979B (en) Information recommendation method and device thereof and information resource recommendation system
CN110399562B (en) Information display device and method for social application, display terminal and medium
KR102277300B1 (en) Message service providing method for message service linking search service and message server and user device for performing the method
CN108733666B (en) Server information pushing method, terminal information sending method, device and system
WO2019072113A1 (en) Video recommendation method, terminal, and storage medium
CN106487655B (en) Message interaction method and device and processing server
CN112269917A (en) Media resource display method, device, equipment, system and storage medium
CN108401005B (en) Expression recommendation method and device
CN113158094B (en) Information sharing method and device and electronic equipment
CN113297474A (en) Information providing method and device and electronic equipment
CN113841140A (en) Determining and utilizing actual goals of a user-merged collection of electronic content items
US9578258B2 (en) Method and apparatus for dynamic presentation of composite media
US11269940B1 (en) Related content searching
JP2013131154A (en) Information processing unit, information processing method, information process system, and program
US20230071779A1 (en) Method and apparatus for processing historical browsing content electronic device and storage medium
KR20240052066A (en) Multimedia processing methods and apparatus, devices, media, and computer program products
CN114791838A (en) Application display method and device, computer equipment and storage medium
CN116662279A (en) Search content sharing method and device and computer equipment
CN113177137A (en) Method, apparatus, and storage medium for recommending comment information of songs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant