CN109241409B - Method and device for sending and receiving information - Google Patents

Method and device for sending and receiving information Download PDF

Info

Publication number
CN109241409B
CN109241409B CN201810930009.0A CN201810930009A CN109241409B CN 109241409 B CN109241409 B CN 109241409B CN 201810930009 A CN201810930009 A CN 201810930009A CN 109241409 B CN109241409 B CN 109241409B
Authority
CN
China
Prior art keywords
user
information
search keyword
terminal device
search
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.)
Active
Application number
CN201810930009.0A
Other languages
Chinese (zh)
Other versions
CN109241409A (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.)
Shanghai Zhangmen Science and Technology Co Ltd
Original Assignee
Shanghai Zhangmen Science and 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 Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN201810930009.0A priority Critical patent/CN109241409B/en
Publication of CN109241409A publication Critical patent/CN109241409A/en
Application granted granted Critical
Publication of CN109241409B publication Critical patent/CN109241409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a method and equipment for sending and receiving information. One embodiment of a method for transmitting information comprises: receiving a first search keyword input by a first user from a first terminal device, wherein the first search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the first user; determining a matched second user based on the first search keyword, wherein the second search keyword input by the second user is matched with the first search keyword, and the second search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the second user; acquiring user information of a second user; and sending the user information to the first terminal equipment. The method enriches the information sending modes, and is beneficial to improving the timeliness and pertinence of recommending friends for the user.

Description

Method and device for sending and receiving information
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and equipment for sending and receiving information.
Background
In the prior art, information can be provided for a user through contents searched by the user in an application.
For example, a user searches for names and nicknames of other users on a terminal device, and the terminal device may present information of the other users searched by the user; when a user searches for content information (e.g., information for searching for social records, user post information, resource content information provided by an application in which the user logs in, rather than searching for information of the user), typically the terminal device may present the user with corresponding search results (e.g., social records, user post information, resource content information).
Disclosure of Invention
The embodiment of the application provides a method and equipment for sending and receiving information.
In a first aspect, some embodiments of the present application provide a method for sending information, which is applied to a network device, and includes: receiving a first search keyword input by a first user from a first terminal device, wherein the first search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the first user; determining a matched second user based on the first search keyword, wherein the second search keyword input by the second user is matched with the first search keyword, and the second search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the second user; acquiring user information of a second user; and sending the user information to the first terminal equipment.
In a second aspect, some embodiments of the present application provide a method for receiving information, applied to a first terminal device, including: acquiring a first search keyword input by a first user, wherein the first search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the first user; sending the first search keyword to target network equipment so that the target network equipment determines a matched second user based on the first search keyword, wherein a second search keyword input by the second user is matched with the first search keyword, and the second search keyword is used for searching at least one of social contact record information, user release information and resource content information provided by an application logged in by the second user; and receiving and displaying the user information of the second user from the target network equipment.
In a third aspect, some embodiments of the present application provide an apparatus for sending information, where the apparatus is disposed in a network device, and the apparatus includes: the terminal device comprises a receiving unit, a searching unit and a searching unit, wherein the receiving unit is configured to receive a first search keyword input by a first user from a first terminal device, and the first search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the first user; a determining unit configured to determine a matched second user based on the first search keyword, wherein a second search keyword input by the second user is matched with the first search keyword, and the second search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the second user; an acquisition unit configured to acquire user information of a second user; a transmitting unit configured to transmit the user information to the first terminal device.
In a fourth aspect, some embodiments of the present application provide an apparatus for receiving information, provided at a first terminal device, including: the device comprises an acquisition unit, a search unit and a processing unit, wherein the acquisition unit is configured to acquire a first search keyword input by a first user, and the first search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the first user; a sending unit configured to send the first search keyword to a target network device so as to enable the target network device to determine a matched second user based on the first search keyword, wherein a second search keyword input by the second user is matched with the first search keyword, and the second search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the second user; and the receiving unit is configured to receive the user information of the second user from the target network equipment and display the user information.
In a fifth aspect, some embodiments of the present application provide a network device, including: one or more processors; a storage device on which one or more programs are stored; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a sixth aspect, some embodiments of the present application provide a terminal device, including: one or more processors; a storage device on which one or more programs are stored; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the second aspect.
In a seventh aspect, some embodiments of the present application provide a computer-readable medium on which a computer program is stored, which computer program, when executed by a processor, implements the method as described in any of the implementations of the first aspect or implements the method as described in any of the implementations of the second aspect.
The method and the device for sending and receiving information provided by the above embodiments of the present application, first, the network device receives a first search keyword input by a first user from a first terminal device, where the first search keyword is used to search at least one of social record information, user release information, and resource content information provided by an application that the first user logs in, then, the network device determines a matching second user based on the first search keyword, where a second search keyword input by the second user matches the first search keyword, the second search keyword is used to search at least one of social record information, user release information, and resource content information provided by an application that the second user logs in, then, the network device obtains user information of the second user, and finally, the network device sends the user information to the first terminal device, therefore, the sending modes of the information are enriched, and the timeliness and pertinence of recommending friends for the user are improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for transmitting information according to the present application;
FIG. 3 is a schematic diagram of a network device sending user information;
FIG. 4 is a flow diagram of yet another embodiment of a method for transmitting information according to the present application;
FIG. 5 is a flow diagram for one embodiment of a method for receiving information, in accordance with the present application;
6A-6B are schematic diagrams of a first terminal device displaying user information;
fig. 6C is a diagram showing the first terminal device displaying the transmission reason information;
fig. 6D is a schematic diagram of a first terminal device sending a friend addition request;
FIG. 7 is a schematic diagram of a first terminal device interacting with a network device according to the present application;
FIG. 8 is a block diagram of a computer system suitable for use in implementing a network device of an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the method for transmitting information, receiving information of the present application may be applied.
As shown in fig. 1, system architecture 100 may include terminal devices 101, 102, a network 103, and a network device 104. Network 103 may be the medium used to provide communication links between terminal devices 101, 102 and network device 104. Network 103 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal device 101, 102 to interact with the network device 104 over the network 103 to receive or send a message (e.g., a first search keyword input by a first user), etc. The terminal devices 101, 102 may have various client applications installed thereon, such as social platform software, instant messenger, news client, web browsing-like application, search-like application, and so on.
The terminal apparatuses 101 and 102 may be hardware or software. When the terminal devices 101 and 102 are hardware, they may be various electronic devices supporting information receiving and transmitting, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101 and 102 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules, or as a single piece of software or software module. And is not particularly limited herein.
Network device 104 may be a hardware device or software that supports network connectivity to provide various network services. When the network device is hardware, it may be various electronic devices that support the reception and transmission of information, including but not limited to tablet computers, laptop portable computers, desktop computers, servers, and the like. In this case, the hardware device may be implemented as a distributed network device group including a plurality of network devices, or may be implemented as a single network device. When the network device is software, the network device may be installed in the electronic devices listed above. At this time, as software, it may be implemented as a plurality of software or software modules for providing a distributed service, for example, or as a single software or software module. And is not particularly limited herein.
In practice, the network device may provide the respective network service by installing the respective client application or server application. After the client application is installed, the network device may be embodied as a client in network communications. Accordingly, after the server application is installed, it may be embodied as a server in network communications.
As an example, in fig. 1, the network device 104 is embodied as a server, and the terminal devices 101, 102 are embodied as clients. Specifically, the terminal devices 101 and 102 may be clients installed with instant messaging applications, and the network device 104 may be a background server of the instant messaging applications. The background server of the instant messaging application may determine the user to be recommended based on the search keyword under the condition that the search keyword sent by the terminal device 101, 102 is received, and obtain the user information of the user to be recommended, thereby sending the user information to the terminal device 101, 102.
It should be noted that the method for sending information provided in the embodiment of the present application may be performed by the network device 104, and the method for receiving information may be performed by the terminal devices 101 and 102.
It should be understood that the number of terminal devices, networks, and network devices in fig. 1 is merely illustrative. There may be any number of networks and network devices, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method for transmitting information in accordance with the present application is shown. The method for sending information is applied to network equipment and comprises the following steps:
step 201, receiving a first search keyword input by a first user from a first terminal device.
In this embodiment, a network device (e.g., the network device shown in fig. 1) on which the method for transmitting information operates may receive a first search keyword input by a first user from a first terminal device (e.g., the terminal device shown in fig. 1). The first search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by a first user.
Here, the first terminal device may be a terminal device that is communicatively connected to the network device. The first terminal device can be in communication connection with the network device through a wired connection mode or a wireless connection mode. The first user may be a user of the first terminal device. The first search keyword may be a keyword for search input by the first user through the first terminal device. It should be noted that the first search keyword is not a keyword used by the first user to search for a user (for example, a user using a certain application), but is a keyword used to search for content that the first user needs to search for.
In some cases of use, the user enters a keyword in a search box of some application (e.g., some instant chat tools, etc.), and may search for a chat log of the user, content posted by the user through a social space of the application (e.g., a message posted in a circle of friends), a web page article from outside the application, etc., then in such cases of use, the keyword entered by the user may be the first search keyword in this step 201.
It is understood that when the a application can call information (e.g., a chat log, content published through a social space, a web page article, etc.) of the B application, a keyword entered by the user in a search box of the a application can search for the chat log of the B application, the content published through the social space, the web page article, etc. of the user. At this time, the first search keyword in this step 201 may be a keyword that the user inputs in the search box of the a application.
In some optional implementations of the embodiment, the first search keyword is used to search at least one of social record information, user posting information, and resource content information provided by an application in which the first user logs in.
Here, the social record information may include a chat record. The user posting information may include messages posted by the user in a social space of the application (e.g., messages posted in a circle of friends, a space, etc.). The resource content information may be information such as resources and content provided by the application registered by the first user. Such as expressions, music, articles, videos, and so forth.
Step 202, based on the first search keyword, a matching second user is determined.
In this embodiment, based on the first search keyword, the network device may determine the matching second user. And the second search keyword input by the second user is matched with the first search keyword. The second search keyword is used for searching at least one of social record information, user release information and resource content information provided by the application logged in by the second user.
Here, the second user may be a user who has used the same application as the first user. The second user may be a different user than the first user. The second search keyword is not a keyword used by the second user to search for a user (e.g., a user using an application), but a keyword used to search for content that the second user needs to search for. The second search keyword matched with the first search keyword may be the same as the first search keyword, may be a synonym, a related word, or the like of the first search keyword, may be a keyword including the first search keyword, or may be a keyword having a similarity greater than a preset similarity threshold (e.g., 80%, 85%, or the like) with the first search keyword. For example, when the first search keyword is "stock", the second search keyword may be "stock market", "stock market quotation", "stock software", and the like. It can be understood that a skilled person may set the matching rule of the first search keyword and the second search keyword according to actual requirements, and the embodiment of the present application is not specifically limited herein.
In some cases of use, the second user enters a keyword in a search box of some application (e.g., some instant messaging social application, etc.), a chat log of the second user, content posted by the user through a social space of the application (e.g., a message posted in a circle of friends), a web page article from outside the application, etc., may be found, and in such cases of use, the second search keyword may be content entered by the second user.
It is to be understood that when the a application can call information (e.g., a chat log, content published through a social space, a web page article, etc.) of the B application, the content entered by the second user in the search box of the a application can be searched for the chat log of the second user in the B application, the content published through the social space, the web page article, etc. At this time, the second search keyword may be a keyword input by the second user in the search box of the a application. The social contact record information, the user release information, and the resource content information are not described herein again.
In some optional implementations of this embodiment, the second search keyword is the same as the first search keyword.
In some optional implementation manners of this embodiment, the determining the matched second user based on the first search keyword may be performed according to the following steps:
first, the network device may acquire a first input time at which the first user inputs the first search keyword. The first input time may be a time when the first user inputs the first search keyword.
Then, the network device may query for a second search keyword based on the first search keyword and the first input time, and use a user who inputs the second search keyword as a matched second user, where a difference between the second input time and the first input time of the second search keyword is smaller than a preset time threshold. Here, the time threshold may be a time set by a technician or a user. For example, the time threshold may be 24 hours, 7 days, and so on.
As an example, the network device may first determine a keyword matching the first search keyword among all search keywords input by the user. Then, the network device may determine, as the second search keyword, a keyword in which a difference between an input time of the keyword and the first input time is smaller than a preset time threshold, from the matched keywords.
Optionally, the network device may also determine, among all search keywords input by the user, a search keyword for which a difference between the input time and the first input time is smaller than a preset time threshold, and then determine, among the determined search keywords, a keyword matched with the first search keyword as the second search keyword.
Step 203, obtaining user information of the second user.
In this embodiment, the network device may obtain the user information of the second user. Wherein, the user information may include, but is not limited to, at least one of the following: name, gender, age, native place, address, graduation institution, work unit, occupation, hobbies, marital status, contact, photograph, etc. In some embodiments, the obtained user information of the second user is information that the second user has authorized permission to be provided to other users.
Step 204, sending the user information to the first terminal device.
In this embodiment, the network device may send the user information acquired in step 203 to the first terminal device.
In some optional implementation manners of this embodiment, the network device may further: and sending a friend relationship establishing request to second terminal equipment under the condition of receiving a friend adding request of a first user for user information of a second user, wherein the second terminal equipment is associated with the second user. The friend relationship establishing request is used for indicating that the first user requests to add the second user as a friend.
It will be appreciated that the user may switch login devices or login multiple devices simultaneously. Therefore, the network device may send the friend relationship establishment request to the device that the second user currently logs in (or uses).
In some use cases, the friend relationship establishment request includes the second search keyword. Thus, the second user may be prompted with a reason why the first user requested to add it as a friend.
In some use cases, the first terminal device may be the same terminal device as the second terminal device. For example, when a first user logs in his account using a terminal device, the terminal device may be the first terminal device; when the first user logs out of the account of the first user and then the second user logs in the account of the first user (namely, the second user) by using the same terminal device, the terminal device can be the second terminal device.
In some optional implementation manners of this embodiment, the network device may further: and sending confirmation information for indicating that the friend is added successfully to the first terminal equipment under the condition of receiving a confirmation request fed back by the second terminal equipment for the friend adding request. For example, the confirmation information may be "add success", "add completion", "start chat bar", or the like.
With continued reference to fig. 3, fig. 3 is a schematic diagram of a network device sending user information. In fig. 3, the server 31 (i.e., the above-described network device) has received the first search keyword 301 input by the first user from the first terminal device 32. Then, the server 31 determines the second user 302 (i.e., Zhao-a) based on the first search keyword 301. Thereafter, the server 31 acquires the user information 303 (i.e., "name: Zhao, sex: woman") of the second user. Finally, the server 31 transmits the user information 303 to the first terminal device 32.
According to the method for sending the information, the network device receives a first search keyword input by a first user from the first terminal device, then determines a matched second user based on the first search keyword, then obtains user information of the second user, and finally sends the user information to the first terminal device. Therefore, the friend is matched with the search keyword of the user, so that the sending modes of the information are enriched, and the timeliness and pertinence of recommending the friend for the user are improved.
With further reference to fig. 4, a flow 400 of yet another embodiment of a method for transmitting information in accordance with the present application is shown. The method for processing the message is applied to the network equipment and comprises the following steps:
step 401, a first search keyword input by a first user is received from a first terminal device.
Step 402, based on the first search keyword, a matching second user is determined.
In step 403, user information of the second user is obtained.
Step 404, sending the user information to the first terminal device.
In the present embodiment, the specific operations of steps 401 and 404 are substantially the same as the operations of steps 201 and 204 in the embodiment shown in fig. 2, and are not repeated herein.
Step 405, in response to receiving a confirmation request fed back by the second terminal device for the friend addition request, sending confirmation information for indicating that the friend addition is successful to the first terminal device.
In this embodiment, the network device may send, to the first terminal device, confirmation information indicating that the friend addition is successful, when receiving a confirmation request fed back by the second terminal device for the friend addition request. The second terminal device is associated with the second user, and the friend relationship establishing request is used for indicating the first user to request to add the second user as a friend. Illustratively, the confirmation information may be "add success", "add completion", "start chat bar", or the like. It will be appreciated that the user may switch login devices or login multiple devices simultaneously. Therefore, the network device may send the friend relationship establishment request to the device that the second user currently logs in (or uses).
In some use cases, the friend relationship establishment request includes the second search keyword. Thus, the second user may be prompted with a reason why the first user requested to add it as a friend.
In some use cases, the first terminal device may be the same terminal device as the second terminal device. For example, when a first user logs in his account using a terminal device, the terminal device may be the first terminal device; when the first user logs out of the account of the first user and then the second user logs in the account of the first user (namely, the second user) by using the same terminal device, the terminal device can be the second terminal device.
Step 406, sending the sending reason information aiming at the user information to the first terminal equipment.
In this embodiment, the network device may transmit the transmission reason information for the user information to the first terminal device. The transmission reason information may be information for indicating a reason for transmitting the user information to the first user. For example, the sending reason information may be "the content has been searched by the following users in the last 2 days" and the following users also pay attention to the content ".
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the method for processing a message in this embodiment highlights a step of sending a buddy relationship establishment request to the second terminal device and a step of sending confirmation information indicating that the buddy addition is successful to the first terminal device. Therefore, the scheme described in this embodiment can send a friend relationship establishment request to the second terminal device when receiving a friend addition request of the first user for the user information of the second user, so as to guide the user to establish a friend relationship with other users who may have the same interest; in addition, according to the scheme described in this embodiment, the confirmation information for indicating that the friend is successfully added may be sent to the first terminal device when the confirmation request fed back by the second terminal device for the friend addition request is received, so as to prompt the user that the friend relationship is successfully established, thereby facilitating timely and effective communication between the user and the friend.
With continued reference to FIG. 5, a flow 500 of one embodiment of a method for receiving information in accordance with the present application is shown. The method for receiving information is applied to the first terminal equipment and comprises the following steps:
step 501, a first search keyword input by a first user is obtained.
In this embodiment, a first terminal device (e.g., the terminal device shown in fig. 1) on which the method for receiving information operates may acquire a first search keyword input by a first user. The first user may be a user of the first terminal device. The first search keyword may be a keyword for search input by the first user through the first terminal device. It should be noted that the first search keyword is not a keyword used by the first user to search for a user (for example, a user using a certain application), but is a keyword used to search for content that the first user needs to search for.
In some cases of use, the user enters a keyword in a search box of some application (e.g., some instant chat tools, etc.), and may search for a chat log of the user, content posted by the user through a social space of the application (e.g., a message posted in a circle of friends), a web page article from outside the application, etc., then in such cases of use, the keyword entered by the user may be the first search keyword in step 501.
It is understood that when the a application can call information (e.g., a chat log, content published through a social space, a web page article, etc.) of the B application, a keyword entered by the user in a search box of the a application can search for the chat log of the B application, the content published through the social space, the web page article, etc. of the user. At this time, the keyword input by the user in the search box of the a application may be the first search keyword in this step 501.
Here, the social record information may include a chat record. The user posting information may include messages posted by the user in the social space of the application (e.g., messages posted in a circle of friends). The resource content information may be information such as resources and content provided by the application registered by the first user. Such as expressions, music, articles, videos, and so forth.
As an example, please refer to fig. 6A. In fig. 6A, a first user (e.g., a user of a first terminal device) inputs a first search keyword "stock" to the first terminal device. Then, the first terminal device acquires the first search keyword "stock". The first search keyword "stock" may be used to search at least one of friend trends, service numbers, public numbers, novels, music, expressions, videos, articles, pictures, applets, and chat records, and may also be used to search other contents.
Turning now to fig. 5.
Step 502, sending the first search keyword to the target network device, so that the target network device determines a matched second user based on the first search keyword.
In this embodiment, the first terminal device may send the first search keyword to a target network device (e.g., the network device shown in fig. 1), so that the target network device determines the matching second user based on the first search keyword. And the second search keyword input by the second user is matched with the first search keyword. The target network device may be a network device (e.g., a server) communicatively connected to the first terminal device.
Here, the second user may be a user who has used the same application as the first user. The second user is a different user than the first user. The second search keyword is not a keyword used by the second user to search for a user (e.g., a user using an application), but a keyword used to search for content that the second user needs to search for. The second search keyword matched with the first search keyword may be the same as the first search keyword, may be a synonym, a related word, or the like of the first search keyword, may be a keyword including the first search keyword, or may be a keyword having a similarity greater than a preset similarity threshold (e.g., 80%, 85%, or the like) with the first search keyword. For example, when the first search keyword is "stock", the second search keyword may be "stock market", "stock market quotation", "stock software", and the like. It can be understood that a skilled person may set the matching rule of the first search keyword and the second search keyword according to actual requirements, and the embodiment of the present application is not specifically limited herein.
In some cases of use, the second user enters a keyword in a search box of some application (e.g., some instant chat tool, etc.), and may search for a chat record, a web page article, etc. of the second user, then in such cases of use, the second search keyword may be the keyword entered by the second user.
It is to be understood that when the a application can call information (e.g., a chat log, content published through a social space, a web page article, etc.) of the B application, a keyword entered by the second user in the search box of the a application can search for the chat log of the second user in the B application, the content published through the social space, the web page article, etc. At this time, the second search keyword may be a keyword input by the second user in the search box of the a application.
In some optional implementations of this embodiment, the second search keyword is the same as the first search keyword.
In some optional implementation manners of this embodiment, the determining the matched second user based on the first search keyword may be performed according to the following steps:
first, the network device may acquire a first input time at which the first user inputs the first search keyword. The first input time may be a time when the first user inputs the first search keyword.
Then, the network device may query for a second search keyword based on the first search keyword and the first input time, and use a user who inputs the second search keyword as a matched second user, where a difference between the second input time and the first input time of the second search keyword is smaller than a preset time threshold. Here, the time threshold may be a time set by a technician or a user. For example, the time threshold may be 24 hours, 7 days, and so on.
As an example, the network device may first determine a keyword matching the first search keyword among all search keywords input by the user. Then, the network device may determine, as the second search keyword, a keyword in which a difference between an input time of the keyword and the first input time is smaller than a preset time threshold, from the matched keywords.
Optionally, the network device may also determine, among all search keywords input by the user, a search keyword for which a difference between the input time and the first input time is smaller than a preset time threshold, and then determine, among the determined search keywords, a keyword matched with the first search keyword as the second search keyword.
As an example, please refer to fig. 6B. In fig. 6B, the first terminal device transmits the first search keyword "stock" to the target network device. Then, the target network device determines the second user "little B" based on the first search keyword "stock".
Turning now to fig. 5.
Step 503, receiving and displaying the user information of the second user from the target network device.
In this embodiment, the first terminal device may receive and display user information of the second user from the target network device. Wherein, the user information may include, but is not limited to, at least one of the following: name, gender, age, native place, address, graduation institution, work unit, occupation, hobbies, marital status, contact, photograph, etc. In some embodiments, the obtained user information of the second user is information that the second user has authorized permission to be provided to other users.
As an example, please refer to fig. 6B. In fig. 6B, the first terminal device has received the user information "gender" of the second user "small B": a woman; a residential area: a sea lake region; age 20 years "and show.
In some optional implementation manners of this embodiment, the network device may further: and receiving and displaying the sending reason information aiming at the user information sent by the target network equipment. The transmission reason information may be information for indicating a reason for transmitting the user information to the first user. For example, the sending reason information may be "the content has been searched by the following users in the last 2 days" and the following users also pay attention to the content ".
As an example, please refer to fig. 6C. In fig. 6C, the first terminal device receives and displays the transmission reason information "the same contents have been searched by the following users in the last 2 days" for the user information transmitted from the target network device.
In some optional implementation manners of this embodiment, the first terminal device may further: and in response to detecting that the first user triggers the user information, sending a friend adding request to the target network equipment so that the target network equipment sends a friend relationship establishing request to the second terminal equipment, wherein the second terminal equipment is associated with the second user, and the friend relationship establishing request is used for indicating that the first user requests to add the second user as a friend.
It will be appreciated that the user may switch login devices or login multiple devices simultaneously. Therefore, the network device may send the friend relationship establishment request to the device that the second user currently logs in (or uses).
In some use cases, the friend relationship establishment request includes the second search keyword. Thus, the second user may be prompted with a reason why the first user requested to add it as a friend.
In some use cases, the first terminal device may be the same terminal device as the second terminal device. For example, when a first user logs in his account using a terminal device, the terminal device may be the first terminal device; when the first user logs out of the account of the first user and then the second user logs in the account of the first user (namely, the second user) by using the same terminal device, the terminal device can be the second terminal device.
As an example, please refer to fig. 6C. In fig. 6C, when detecting a trigger operation of the first user for the user information (for example, in fig. 6C, the user clicks "add as a buddy"), a buddy adding request is sent to the target network device, so that the target network device sends a buddy relationship establishment request to the second terminal device.
It can be understood that, when the target network device sends a friend relationship establishment request to the second terminal device, and a confirmation request for friend addition request feedback is sent by the second terminal device (for example, in an application scenario shown in fig. 6D, a request sent after the second user clicks an "ok" button of the second terminal device), the first user and the second user establish a friend relationship.
According to the method for receiving the information, the first terminal device is used for obtaining the first search keyword input by the first user, then the first search keyword is sent to the target network device, so that the target network device can determine the matched second user based on the first search keyword, and finally the user information of the second user is received from the target network device and displayed. Therefore, receiving modes of information are enriched, and timeliness and pertinence of recommending friends for users are improved.
Referring now to fig. 7, a schematic diagram of an interaction process between a first terminal device and a network device in a method for receiving information according to the present application is shown.
The method for sending the information in the embodiment of the application can include the steps that the first terminal device obtains a first search keyword input by a first user, and then the first search keyword is sent to the network device. And then, the network equipment determines the matched second user based on the first search keyword, acquires the user information of the second user, and finally sends the user information to the first terminal equipment.
As shown in fig. 7, in step 701, a first terminal device acquires a first search keyword input by a first user.
In this embodiment, a first terminal device (e.g., the terminal device in fig. 1) may acquire a first search keyword input by a first user. The first user may be a user of the first terminal device. The first search keyword may be a keyword for search input by the first user through the first terminal device. It should be noted that the first search keyword is not a keyword used by the first user to search for a user (for example, a user using a certain application), but is a keyword used to search for content that the first user needs to search for.
In step 702, the first terminal device sends a first search keyword to the network device.
In this embodiment, the first terminal device may send the first search keyword acquired in step 701 to the network device through a wired connection or a wireless connection.
In step 703, the network device determines a matching second user based on the first search keyword.
In this embodiment, the network device may determine the matching second user based on the first search keyword.
And the second search keyword input by the second user is matched with the first search keyword.
Here, the second user may be a user who has used the same application as the first user. The second user may be a different user than the first user. The second search keyword is not a keyword used by the second user to search for a user (e.g., a user using an application), but a keyword used to search for content that the second user needs to search for. The second search keyword matched with the first search keyword may be the same as the first search keyword, may be a synonym, a related word, or the like of the first search keyword, may be a keyword including the first search keyword, or may be a keyword having a similarity greater than a preset similarity threshold (e.g., 80%, 85%, or the like) with the first search keyword. For example, when the first search keyword is "stock", the second search keyword may be "stock market", "stock market quotation", "stock software", and the like. It can be understood that a skilled person may set the matching rule of the first search keyword and the second search keyword according to actual requirements, and the embodiment of the present application is not specifically limited herein.
In some cases of use, the second user enters a keyword in a search box of some application (e.g., some instant chat tools, etc.), a chat record of the second user, content posted by the second user through a social space of the application (e.g., a message posted in a circle of friends), a web page article from outside the application, etc., may be found, and in such cases of use, the keyword entered by the second user may be the second search keyword.
It is to be understood that when the a application can call information (e.g., a chat log, content published through a social space, a web page article, etc.) of the B application, a keyword entered by the second user in the search box of the a application can search for the chat log of the second user in the B application, the content published through the social space, the web page article, etc. At this time, the keyword input by the second user in the search box of the a application may be the second search keyword.
Here, the social record information, the user release information, and the resource content information are not described in detail herein.
In some optional implementations of this embodiment, the second search keyword is the same as the first search keyword.
In some optional implementation manners of this embodiment, the determining the matched second user based on the first search keyword may be performed according to the following steps:
first, the network device may acquire a first input time at which the first user inputs the first search keyword. The first input time may be a time when the first user inputs the first search keyword.
Then, the network device may query for a second search keyword based on the first search keyword and the first input time, and use a user who inputs the second search keyword as a second user, where a difference between the second input time and the first input time of the second search keyword is smaller than a preset time threshold. Here, the time threshold may be a time set by a technician or a user. For example, the time threshold may be 24 hours, 7 days, and so on.
As an example, the network device may first determine a keyword matching the first search keyword among all search keywords input by the user. Then, the network device may determine, as the second search keyword, a keyword in which a difference between an input time of the keyword and the first input time is smaller than a preset time threshold, from the matched keywords.
Optionally, the network device may also determine, among all search keywords input by the user, a search keyword for which a difference between the input time and the first input time is smaller than a preset time threshold, and then determine, among the determined search keywords, a keyword matched with the first search keyword as the second search keyword.
In step 704, the network device obtains user information of the second user.
In this embodiment, the network device may obtain the user information of the second user. Wherein, the user information may include, but is not limited to, at least one of the following: name, gender, age, native place, address, graduation institution, work unit, occupation, hobbies, marital status, contact, photograph, etc. In some embodiments, the obtained user information of the second user is information that the second user has authorized permission to be provided to other users.
In step 705, the network device sends user information to the first terminal device.
In this embodiment, the network device may send the user information to the first terminal device.
In some optional implementation manners of this embodiment, the network device may further: and sending a friend relationship establishing request to second terminal equipment under the condition of receiving a friend adding request of a first user for user information of a second user, wherein the second terminal equipment is associated with the second user. The friend relationship establishing request is used for indicating that the first user requests to add the second user as a friend.
In some optional implementation manners of this embodiment, the network device may further: and sending confirmation information for indicating that the friend is added successfully to the first terminal equipment under the condition of receiving a confirmation request fed back by the second terminal equipment for the friend adding request. For example, the confirmation information may be "add success", "add completion", "start chat bar", or the like.
According to the method for sending the information, the first search keyword input by the first user is obtained through the first terminal device, and then the first search keyword is sent to the network device. And finally, the network equipment sends the user information to the first terminal equipment, so that the sending mode of the information is enriched, and the timeliness and pertinence of recommending friends for the user are improved.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use in implementing a network device (e.g., network device 101, network device 102, or network device 103 shown in FIG. 1) of an embodiment of the present application. The network device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program performs the above-described functions defined in the method of the present application when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, an obtaining unit, and a processing unit. Where the names of the units do not in some cases constitute a limitation on the units themselves, for example, the receiving unit may also be described as a "unit that receives a first search keyword input by a first user from a first terminal device". As another example, it can also be described as: a processor includes a receiving unit, a determining unit, an acquiring unit, and a transmitting unit. Where the names of the units do not in some cases constitute a limitation on the units themselves, for example, the receiving unit may also be described as a "unit that receives a first search keyword input by a first user from a first terminal device".
As another aspect, the present application also provides a computer-readable medium, which may be included in the network device described in the above embodiments; or may exist separately without being assembled into the network device. The computer readable medium carries one or more programs which, when executed by the network device, cause the network device to: receiving an acquisition request of unread messages in a chat session sent by second network equipment; obtaining an unread message set in a chat session; and if the unread messages meeting the preset conditions exist in the unread message set, processing the display of the unread messages meeting the preset conditions. Or cause the network device to: receiving a first search keyword input by a first user from a first terminal device, wherein the first search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the first user; determining a matched second user based on the first search keyword, wherein the second search keyword input by the second user is matched with the first search keyword, and the second search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the second user; acquiring user information of a second user; and sending the user information to the first terminal equipment.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A method for sending information is applied to a network device and comprises the following steps:
receiving a first search keyword input by a first user from a first terminal device, wherein the first search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the first user;
acquiring first input time for the first user to input the first search keyword;
based on the first search keyword and the first input time, querying to obtain a second search keyword, and taking a user who inputs the second search keyword as a matched second user, wherein the difference between the second input time of the second search keyword and the first input time is smaller than a preset time threshold, the second search keyword input by the second user is matched with the first search keyword, and the second search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the second user;
acquiring user information of the second user;
and sending the user information to the first terminal equipment.
2. The method of claim 1, wherein the method further comprises:
and sending a friend relationship establishing request to second terminal equipment in response to receiving a friend adding request of the first user for the user information, wherein the second terminal equipment is associated with the second user, and the friend relationship establishing request is used for indicating that the first user requests to add the second user as a friend.
3. The method of claim 2, wherein the method further comprises:
and sending confirmation information for indicating that the friend is successfully added to the first terminal equipment in response to receiving a confirmation request fed back by the second terminal equipment for the friend adding request.
4. The method according to one of claims 1-3, wherein the method further comprises:
and sending reason information aiming at the user information to the first terminal equipment.
5. A method for receiving information is applied to a first terminal device and comprises the following steps:
acquiring a first search keyword input by a first user, wherein the first search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the first user;
sending the first search keyword to target network equipment so that the target network equipment determines a matched second user based on the first search keyword, wherein a second search keyword input by the second user is matched with the first search keyword, the second search keyword is used for searching at least one of social record information, user release information and resource content information provided by an application logged in by the second user, and the difference between the second input time of the second search keyword and the first input time of the first search keyword is smaller than a preset time threshold;
and receiving and displaying the user information of the second user from the target network equipment.
6. The method of claim 5, wherein the method further comprises:
and receiving and displaying the sending reason information aiming at the user information sent by the target network equipment.
7. The method according to one of claims 5-6, wherein the method further comprises:
and in response to detecting that the first user triggers the user information, sending a friend adding request to the target network device, so that the target network device sends a friend relationship establishing request to a second terminal device, wherein the second terminal device is associated with the second user, and the friend relationship establishing request is used for indicating that the first user requests to add the second user as a friend.
8. A network device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
9. A terminal device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 5-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN201810930009.0A 2018-08-15 2018-08-15 Method and device for sending and receiving information Active CN109241409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810930009.0A CN109241409B (en) 2018-08-15 2018-08-15 Method and device for sending and receiving information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810930009.0A CN109241409B (en) 2018-08-15 2018-08-15 Method and device for sending and receiving information

Publications (2)

Publication Number Publication Date
CN109241409A CN109241409A (en) 2019-01-18
CN109241409B true CN109241409B (en) 2022-04-12

Family

ID=65071635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810930009.0A Active CN109241409B (en) 2018-08-15 2018-08-15 Method and device for sending and receiving information

Country Status (1)

Country Link
CN (1) CN109241409B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110263135B (en) * 2019-05-20 2022-12-16 北京字节跳动网络技术有限公司 Data exchange matching method, device, medium and electronic equipment
CN113536142B (en) * 2020-04-21 2023-11-28 北京达佳互联信息技术有限公司 Social account recommendation method and device, electronic equipment and storage medium
CN111680208B (en) * 2020-04-22 2023-05-30 平安直通咨询有限公司 Cross-platform communication keyword retrieval method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365917A (en) * 2012-04-09 2013-10-23 腾讯科技(深圳)有限公司 Method and device for searching information
CN104899315A (en) * 2015-06-17 2015-09-09 百度在线网络技术(北京)有限公司 Method and device for pushing user information
CN105468630A (en) * 2014-09-04 2016-04-06 口碑控股有限公司 Method and apparatus for providing user information
CN107196852A (en) * 2017-07-06 2017-09-22 深圳天珑无线科技有限公司 Instant communicating method and user terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365917A (en) * 2012-04-09 2013-10-23 腾讯科技(深圳)有限公司 Method and device for searching information
CN105468630A (en) * 2014-09-04 2016-04-06 口碑控股有限公司 Method and apparatus for providing user information
CN104899315A (en) * 2015-06-17 2015-09-09 百度在线网络技术(北京)有限公司 Method and device for pushing user information
CN107196852A (en) * 2017-07-06 2017-09-22 深圳天珑无线科技有限公司 Instant communicating method and user terminal

Also Published As

Publication number Publication date
CN109241409A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN107679211B (en) Method and device for pushing information
CN112311841B (en) Information pushing method and device, electronic equipment and computer readable medium
US20110167114A1 (en) Automatically synchronizing new contacts across multiple social networking sites
CN109241409B (en) Method and device for sending and receiving information
CN109743245B (en) Method and device for creating group
US11706172B2 (en) Method and device for sending information
CN111222960A (en) Room source recommendation method and system based on public traffic zone
CN108600329B (en) Method and equipment for pushing information and displaying information
CN111460049A (en) Content sharing method and device, electronic equipment and computer readable storage medium
CN108549586B (en) Information processing method and device
CN107885872B (en) Method and device for generating information
CN112311750B (en) Interaction method and device and electronic equipment
CN110889000B (en) Method and apparatus for outputting information
US20150156157A1 (en) Association method and device for communications modes
CN112822089B (en) Method and device for adding friends
CN110765445B (en) Method and device for processing request
CN113822745A (en) Article display method and device
CN113259619A (en) Information sending and displaying method, device, storage medium and conference system
CN112836201A (en) Method, device, equipment and computer readable medium for multi-platform information intercommunication
CN112306596A (en) Information interaction method and device and electronic equipment
CN108811036B (en) Method and apparatus for displaying wireless access point information
CN111897620A (en) Interaction method and device and electronic equipment
CN111815381A (en) Information generation method and device
CN110958277B (en) Method and device for sending prompt information
CN112307324A (en) Information processing method, apparatus, device and medium

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