WO2013007084A1 - Contact path search method, system, and search server - Google Patents

Contact path search method, system, and search server Download PDF

Info

Publication number
WO2013007084A1
WO2013007084A1 PCT/CN2011/083798 CN2011083798W WO2013007084A1 WO 2013007084 A1 WO2013007084 A1 WO 2013007084A1 CN 2011083798 W CN2011083798 W CN 2011083798W WO 2013007084 A1 WO2013007084 A1 WO 2013007084A1
Authority
WO
WIPO (PCT)
Prior art keywords
contact
user
path
search server
information
Prior art date
Application number
PCT/CN2011/083798
Other languages
French (fr)
Chinese (zh)
Inventor
卢艳
陈军
丁欣
杨振华
郦志新
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013007084A1 publication Critical patent/WO2013007084A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/2753Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content
    • H04M1/2757Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content by data transmission, e.g. downloading

Definitions

  • the present invention relates to the field of communications, and in particular, to a contact path finding method, a system, and a search server for use on a social network.
  • the Internet is not only an important tool for people to obtain information, but also provides a platform for people to communicate and communicate.
  • the development of Internet technology has made it possible to create a network address book. With the convenience of network storage, the address books of different social networks can also be integrated.
  • the Internet age the world will become smaller and smaller. Imagine if everyone put their contact information on the network, then in theory there must be a certain connection path between every two people in the world.
  • AO can contact Al through some kind of contact.
  • A1 is then connected to A2..., ⁇ -1 contacts An, then AO contacts An through n steps.
  • A1 is then connected to A2..., ⁇ -1 contacts An, then AO contacts An through n steps.
  • the technical problem to be solved by the present invention is to provide a contact path searching method, system and search server for solving the problem that any contact cannot be contacted.
  • the present invention provides a contact path searching method, including: a search server receiving a contact path query request sent by a terminal, the contact path query request carrying first user information, and the first user is to search Information of the second user;
  • the search server searches for a contact path between the first user and the second user in the contact address book according to the first user information and the information of the second user;
  • the search server determines whether a contact path meeting the preset condition is found, and if the contact path meeting the preset condition is found, the contact path or the intermediate node contact information is returned to the terminal.
  • the step of the search server searching for a contact path between the first user and the second user includes:
  • step (a) determining whether the first user and the second user have the same nth level contact, and if so, the first user to the nth level contact of the first user to the The second user is the contact path, the process ends, and if not, step (b) is performed;
  • n has an initial value of 1.
  • the step of the search server searching for a contact path between the first user and the second user includes:
  • the contact path includes the root node contact, each intermediate node contact, and a last node contact.
  • the above method can also have the following characteristics:
  • the search server is a search server serving one or more social networks
  • the contact address book is a contact address book of the corresponding one or more social networks.
  • the preset condition includes one or more of the following: return contact path or middleman information setting, step size of the contact path, number of contact paths, preferred conditions of the contact path, and the number of social networks involved.
  • the invention also provides a search server, comprising:
  • a query request receiving unit configured to: receive a contact path query request sent by the terminal, where the contact path query request carries the first user information and the information of the second user that the first user is to find;
  • a contact path searching unit configured to: search, in the database, between the first user and the second user according to the first user information in the contact path query request and the information of the second user Contact path;
  • the search request feedback unit is configured to: determine whether a contact path meeting the preset condition is found, and when the contact path meeting the preset condition is found, return the contact path or the intermediate node contact information to the terminal.
  • the contact path searching unit includes:
  • Contact address book which is set to: save contact information of each user
  • the contact address book search module is configured to: according to the second user information, search for the second user in the contact address book layer by layer from the first level contact of the first user, until the second user is found a last node contact or an end condition, the last node contact being a contact of the second user in the contact address book thereof;
  • a contact path determining module configured to: if the contact address book search module finds the last node contact, determine the previous level intermediate node contact layer by layer according to the last node contact, until the root node contact, The root node contact refers to the contact of the first user;
  • the contact path includes the root node contact, each intermediate node contact, and a last node contact.
  • the above search server can also have the following characteristics:
  • the search server is a contact search server serving one or more social networks
  • the contact address book is a contact address book of the corresponding one or more social networks.
  • the preset condition includes one or more of the following: a step size of the contact path, a number of contact paths, a preferred condition of the contact path, and a number of social networks involved.
  • the present invention further provides a contact path finding system, comprising: a terminal and the search server according to any one of claims 6 to 9, wherein the terminal comprises:
  • a query request sending module configured to: send the contact path query request to the search server;
  • the query result receiving module is configured to: receive the contact path or intermediate node contact information sent by the search server.
  • the above solution is used by the search server of the social network to find a middleman contact path between the two users in the contact address book according to the contact path query request sent by the terminal, thereby providing a practical social path for the social network user.
  • FIG. 1 is a schematic diagram of a contact address book according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a contact path searching method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a contact path searching method according to an application example 1 of the present invention.
  • FIG. 4 is a schematic diagram of a process of searching for a search server according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a module of a search server according to an embodiment of the present invention.
  • the contact path searching method, the system and the search server of the embodiment of the present invention can implement the contact path query request sent by the terminal by the search server of the social network, and find the intermediary path between the two users in the contact address book, thereby Provide a practical for social network users Social approach.
  • a fused network address book can be established in the network, and the user records his own contact information in the network address book, and the manner in which the address book saves the user information can be as shown in the figure.
  • each user has a "personal contact card" of his own, on which the contact information of all contacts of the user is indicated.
  • the invention is also referred to as a contact address book.
  • Each social network can establish its own contact address book, that is, a proprietary network address book. It is also possible to share a contact address book with multiple social networks, that is, in multiple social networks.
  • a converged network address book is created in the network, in which information of each social network user is recorded. In the address book, under the name of each user, all the contact information of the user is recorded.
  • the solution proposed by the present invention is applicable to the above two cases.
  • the contact path searching method of the embodiment of the present invention includes:
  • Step 201 The search server receives a contact path query request sent by the terminal, where the first user information and the information of the second user to be searched by the first user are carried.
  • the search server may be a search server serving a certain social network, or may be a search search server serving a plurality of social networks.
  • Step 202 The search server searches for a contact path between the first user and the second user in the contact address book according to the first user information and the second user information.
  • the search server needs to use the proprietary network address book information before performing the search operation.
  • the merged address book information is merged.
  • Step 203 The search server determines whether a contact path that meets the preset condition is found. If a contact path that meets the preset condition is found, the contact path or the intermediate node contact information is returned to the terminal.
  • the return information can take many forms, one is to give the middleman information in a fuzzy way, and does not return the specific path information of the middleman.
  • the other is to return specific path information.
  • user A searches for user ⁇ , and obtains the following contact path, A->B->C->D->A.
  • the search server can also set the way to return information, that is, return fuzzy information, return only the intermediary information, and do not return the specific path. Or return to the specific path.
  • it is also possible to determine more detailed return information by a preset condition, including the step size of the contact path (eg, the step size is set to 3), the return contact path or the intermediary information setting, and the contact path.
  • the number of bars, the preferred condition of the contact path (the shortest contact path among the multiple contact paths to be found is the final contact path) or the number of social networks involved (limited to 3 social networks)
  • the method for the search server to find the contact path between the first user and the second user may have the following two solutions:
  • the step of the search server searching for a contact path between the first user and the second user includes:
  • the level of the search can be determined according to the preset step size or degree. For example, the step size is set to 3, which means that it needs to go through three layers of traversal. If it can be found, it will return. If it is not found, it will fail. Specifically, if the second user (the first layer traversal) is not found in the contact of the first user, and then the second user (the second layer traversal) is searched for in the contact of each contact of the first user, to This class pushes to the third layer traversal.
  • the step size is set to 3, which means that it needs to go through three layers of traversal. If it can be found, it will return. If it is not found, it will fail. Specifically, if the second user (the first layer traversal) is not found in the contact of the first user, and then the second user (the second layer traversal) is searched for in the contact of each contact of the first user, to This class pushes to the third layer traversal.
  • the contact path includes the root node contact, each intermediate node contact, and a last node contact.
  • each contact in the contact path can be listed in order.
  • the root node contact, the last node contact, and the intermediate node contact may be considered to coincide, when the first user and the second user pass When two users establish contact, the intermediate node contact may be considered to be in conjunction with the root node contact or with the last node contact.
  • the step of the search server searching the network address book for the connection path between the first user and the second user includes:
  • step (a2) determining whether the first user and the second user have the same nth level contact, and if so, the first user to the first user's nth level contact to the second The user is the contact path, the process ends, otherwise step (b) is performed;
  • n is 1 in the initial step in the second scheme.
  • the method further includes: determining whether the second user is a contact of the first user, and if yes, the contact path is the second user, and the process ends. Otherwise, perform the steps (al) of scenario one or the initial steps of scenario two.
  • the first level user of the first user refers to all the contacts in the contact address book of the first user
  • the second level contact of the first user refers to the contact address book of all the first level contacts of the first user. All contacts, and so on.
  • This application example describes the situation within a single network. You can use a social network (such as facebook) as an example. This applies to situations where all users belong to the same social network.
  • the user is queried by the terminal to query the contact path of the user and another designated designated user. Includes the following steps:
  • Step 301 The search server receives a contact path query request of the user A sent by the terminal and another designated contact.
  • the user terminal sends a query request through the HTTP protocol, and the specified contact information is carried in the HTTP.
  • the request message In the request message.
  • the search server searches for a shortest path in the contact address book.
  • each user has a fixed username, which can be represented numerically as 1,2, ..,, «.
  • the problem to be solved by the relevant search server is that the user i contacts the user j, and several people are passed in the middle.
  • the search server has stored the contact address book of k, that is, k can directly Contact other users, or give a name: Friends set.
  • Step 401 Determine whether it is directly possible to contact the ''; find if the friend is in the set, and if yes, go to step 407.
  • Step 402 Determine whether i can contact j through one person
  • step 407 is performed.
  • the step size is 2.
  • Step 403 Determine if it can be contacted by 2 people / / ';
  • the friend of the pair collects each user to search, and judges whether the user has a step size of 2, and if yes, step 407 is performed.
  • the step size is 3.
  • Step 404 Determine whether i can contact j through 3 people) ;
  • the friend of the pair concentrates each user and the friends of ⁇ ' to search for each user, and judges whether there is a step size of the user in the group of friends that the user is concentrated in, that is, whether k1 of the friend group of i is j or not
  • the k2 of the friend set has the same contact, and if yes, step 407 is performed.
  • the step size is 4.
  • Step 405 Determine whether it can be contacted by 4 people.
  • the friend of the pair collects each user to search, and determines whether there is a step size of 4 for the user, and if yes, step 407 is performed.
  • the step size is 5.
  • Step 406 Determine whether i can contact j through 5 people;
  • the pair of friends concentrates each user and the friends of ⁇ ' to search for each user, and determines whether there is a step size of the user in the group of friends that the user is concentrated in, and if so, step 407 is executed. Is 6, otherwise the search failed.
  • Step 407 It is considered that the qualified contact path is searched, and each intermediate contact is confirmed, and the process of step 302 ends.
  • j is the special case of the contact of i; if the process jumps from step 402, 404 or 406 to step 407, it indicates that i and j have the same first, second or 3 level contacts, the corresponding contact path is i to its first, second or third level contact and then to j;
  • step 407 If the process jumps from step 403 or 405 to step 407, it indicates that i and j respectively have the first or second level contact of each other as the contact; the corresponding contact path is i to its corresponding first or second level contact respectively. Then go to the 1st or 2nd level contact corresponding to j, then go to j.
  • Step 303 If the search server searches for the specified contact contact path, the intermediate contacts are returned to the terminal.
  • the search server returns the search result to the terminal through the HTTP protocol, and the terminal will return the contact.
  • the human path information is parsed and displayed to the user. Application example two
  • This application example describes the case of multiple networks. Take multiple social networks (such as Facebook, Twitter, Linkedln) as an example. This applies to some users belonging to a certain social network, but all users use the converged network address book to register their own contact information. In the address book (of course, the social network may also register the contact information of this community).
  • the algorithm is consistent with the case of a single network. As long as the user's "friend set” can be given, the calculation process is the same. In just step two, the related service merges the "friend sets" of all users before the search begins. The process is as follows: For a specific user, for each network, give their friends set, and then replace the user names in the friends in each network with a unified user logo, and finally merge to get the total "Friends set".
  • an embodiment of the present invention further provides a search server.
  • the search server includes:
  • the query request receiving unit is configured to receive a contact path query request sent by the terminal, where the first user information and the information of the second user to be searched by the first user are carried;
  • the contact path searching unit is configured to search the database for the contact path between the first user and the second user according to the first user information and the second user information in the contact path query request;
  • the search request feedback unit is configured to determine whether the contact path that meets the preset condition is found, and when the contact path that meets the preset condition is found, the contact path or the intermediate node contact information is also returned to the terminal.
  • the contact path searching unit may include:
  • the contact address book search module is configured to, according to the second user information, search for the second user in the contact address book layer by layer from the first level contact of the first user, until the last node contact is found. Or reaching the end condition, the last node contact refers to its contact address book The contact of the second user; the contact path determining module is configured to: if the last node contact is found, determine the previous level intermediate node contact layer by layer according to the last node contact, until the root node contact, The root node contact refers to the contact of the first user;
  • the contact path includes the root node contact, each intermediate node contact, and a last node contact.
  • the search server may be a contact search server serving one or several social networks, where the contact address book is a contact address book of a corresponding social network or several social networks.
  • the preset condition includes one or more of the following: returning the contact path or the middleman information setting, the step size of the contact path, the number of the contact path, the preferred condition of the contact path, or the number of social networks involved.
  • an embodiment of the present invention further provides a contact path searching system, where the system includes a terminal and a search server as described above, where the terminal includes:
  • a query request sending module configured to send a contact path query request to the search server, where the first user information and the information of the second user to be searched by the first user are carried;
  • the query result receiving module is configured to receive the contact path or the intermediate node contact information sent by the search server.
  • the search server may be a contact search server serving one or several social networks.
  • the preset condition includes one or more of the following: returning the contact path or the middleman information setting, the step size of the contact path, the number of the contact path, the preferred condition of the contact path, or the number of social networks involved. It can be seen that with the embodiments of the present invention, the shortest path to any contact can be found, thereby providing a way to find out how to establish contact with a stranger.
  • the above program may be stored in a computer readable storage medium such as a read only memory, a magnetic disk or an optical disk.
  • a computer readable storage medium such as a read only memory, a magnetic disk or an optical disk.
  • all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
  • An embodiment of the present invention searches for a middleman contact path between two users in a contact address book according to a contact path query request sent by the terminal, thereby providing a practical method for the social network user.
  • Social approach An embodiment of the present invention searches for a middleman contact path between two users in a contact address book according to a contact path query request sent by the terminal, thereby providing a practical method for the social network user.

Abstract

The present invention relates to a contact path search method, a system, and a search server. The method comprises: a search server receiving a contact path query request sent by a terminal, the request carrying information of a first user and information of a second user searched for by the first user; the search server searching a contact address book for a contact path between the first user and the second user according to the information of the first user and the information of the second user; the search server determining whether a contact path meeting preset conditions is found, and if the contact path meeting the preset conditions is found, returning the contact path or information of an intermediate node contact to the terminal. The contact path search method, system, and search server of the present invention provide a solution to the contact between any contacts.

Description

联系路径查找方法、 系统及搜索服务器  Contact path finding method, system and search server
技术领域 Technical field
本发明涉及通信领域, 尤其涉及一种用于社交网络上的联系路径查找方 法、 系统及搜索服务器。  The present invention relates to the field of communications, and in particular, to a contact path finding method, a system, and a search server for use on a social network.
背景技术 Background technique
互联网不仅是人们获取信息的重要工具, 也为人们提供了一个进行沟通 交流的平台。 互联网技术的发展使得网络地址簿成为了可能, 借助网络存储 的便利, 不同社交网络各自的地址簿还可以融合。 在互联网时代, 世界将变 得越来越小。 试想如果每个人都将自己的联系方式放置于网络, 那么理论上 全球任何每两个人之间就必然存在一定的联系路径, 将某人记为 AO, AO通 过某种联系方式能联系到 Al , A1再联系到 A2... ... ,Αη- 1联系到 An , 则 AO 通过 n步联系到 An, 现在的问题是, 对于特定的两个人 A与 B, A最少通过 几步可以联系到 An?  The Internet is not only an important tool for people to obtain information, but also provides a platform for people to communicate and communicate. The development of Internet technology has made it possible to create a network address book. With the convenience of network storage, the address books of different social networks can also be integrated. In the Internet age, the world will become smaller and smaller. Imagine if everyone put their contact information on the network, then in theory there must be a certain connection path between every two people in the world. To record someone as AO, AO can contact Al through some kind of contact. A1 is then connected to A2..., Αη-1 contacts An, then AO contacts An through n steps. The problem now is that for a specific two people A and B, A can be reached in at least a few steps. An?
关于人与人之间的联系问题,有一个数学领域的猜想,名为 Six Degrees of Separation, 中文翻译包括以下几种: 六度分割理论或小世界理论等。 该理 论指出: 你和任何一个陌生人之间所间隔的人不会超过六个, 也就是说, 最 多通过六个人你就能够认识任何一个陌生人。 那么问题是, 如何找到这 6个 人呢? 对于注重人际关系的人群来说, 这个问题是个有价值的问题, 本发明 提出了查找任意两个联系人路径的方法。  Regarding the connection between people, there is a mathematical field conjecture called Six Degrees of Separation. Chinese translation includes the following: Six-degree division theory or small world theory. The theory points out that you and any stranger are no more than six people separated, that is, you can know any stranger with a maximum of six people. So the question is, how do you find these 6 people? This problem is a valuable issue for people who value interpersonal relationships. The present invention proposes a method of finding any two contact paths.
发明内容 Summary of the invention
本发明要解决的技术问题是提供一种联系路径查找方法、 系统及搜索服 务器, 用于解决任意联系人之间无法联系的问题。  The technical problem to be solved by the present invention is to provide a contact path searching method, system and search server for solving the problem that any contact cannot be contacted.
为解决以上技术问题, 本发明提供了一种联系路径查找方法, 其包括: 搜索服务器接收终端发送的联系路径查询请求, 所述联系路径查询请求 携带第一用户信息以及所述第一用户要查找的第二用户的信息; 所述搜索服务器根据所述第一用户信息和所述第二用户的信息在联系人 地址本中查找所述第一用户与所述第二用户之间的联系路径; In order to solve the above technical problem, the present invention provides a contact path searching method, including: a search server receiving a contact path query request sent by a terminal, the contact path query request carrying first user information, and the first user is to search Information of the second user; The search server searches for a contact path between the first user and the second user in the contact address book according to the first user information and the information of the second user;
所述搜索服务器判断是否查找到符合预设条件的联系路径, 若查找到符 合预设条件的联系路径, 则向所述终端返回所述联系路径或者中间节点联系 人信息。  The search server determines whether a contact path meeting the preset condition is found, and if the contact path meeting the preset condition is found, the contact path or the intermediate node contact information is returned to the terminal.
上述方法还可具有以下特点:  The above method can also have the following characteristics:
所述搜索服务器查找所述第一用户与所述第二用户之间的联系路径的步 骤包括:  The step of the search server searching for a contact path between the first user and the second user includes:
( a )判断所述第一用户和所述第二用户是否有相同的第 n层次联系人, 若是, 则所述第一用户到所述第一用户的该第 n层次联系人再到所述第二用 户为联系路径, 流程结束, 若否, 则执行步骤(b ) ;  (a) determining whether the first user and the second user have the same nth level contact, and if so, the first user to the nth level contact of the first user to the The second user is the contact path, the process ends, and if not, step (b) is performed;
( b )判断所述第一用户和所述第二用户是否有互为联系人的第 n层次联 系人; 若是, 则确定所述第一用户到其对应的第 n层次联系人以及所述第二 用户对应的第 n层次联系人到所述第二用户为联系路径, 流程结束; 若否, 则令 n=n+l , 并返回步骤(a ) ;  (b) determining whether the first user and the second user have an nth level contact that is a contact with each other; if yes, determining the first user to their corresponding nth level contact and the The nth level contact corresponding to the second user is the contact path to the second user, and the process ends; if not, let n=n+l, and return to step (a);
其中, n的初始值为 1。  Where n has an initial value of 1.
上述方法还可具有以下特点:  The above method can also have the following characteristics:
所述搜索服务器查找所述第一用户与所述第二用户之间的联系路径的步 骤包括:  The step of the search server searching for a contact path between the first user and the second user includes:
( a )根据所述第二用户信息从第一用户的第一层次联系人开始逐层查找 联系人地址本中是否有所述第二用户, 直到查找到末节点联系人或达到结束 条件, 所述末节点联系人指其联系人地址本中有所述第二用户的联系人; (a) searching, according to the second user information, from the first-level contact of the first user, whether the second user is in the contact address book, until the last node contact is found or the end condition is reached. The last node contact refers to the contact of the second user in the contact address book thereof;
( b )若查找到末节点联系人, 则根据所述末节点联系人逐层确定上一层 次中间节点联系人, 直到根节点联系人, 所述根节点联系人指所述第一用户 的联系人; (b) if the last node contact is found, determining the previous level intermediate node contact layer by layer according to the last node contact, until the root node contact, the root node contact refers to the first user contact Person
所述联系路径包括所述根节点联系人、 各中间节点联系人以及末节点联 系人。  The contact path includes the root node contact, each intermediate node contact, and a last node contact.
上述方法还可具有以下特点: 所述搜索服务器是服务于一个或多个社交网络的搜索服务器, 所述联系 人地址本是对应的一个或多个社交网络的联系人地址本。 The above method can also have the following characteristics: The search server is a search server serving one or more social networks, and the contact address book is a contact address book of the corresponding one or more social networks.
上述方法还可具有以下特点:  The above method can also have the following characteristics:
所述预设条件包括以下一种或多种:返回联系路径还是中间人信息设置、 联系路径的步长、 联系路径的条数、 联系路径的优选条件以及所涉的社交网 络个数。  The preset condition includes one or more of the following: return contact path or middleman information setting, step size of the contact path, number of contact paths, preferred conditions of the contact path, and the number of social networks involved.
本发明还提供一种搜索服务器, 其包括:  The invention also provides a search server, comprising:
查询请求接收单元, 其设置为: 接收终端发送的联系路径查询请求, 所 述联系路径查询请求携带第一用户信息以及所述第一用户要查找的第二用户 的信息; ;  a query request receiving unit, configured to: receive a contact path query request sent by the terminal, where the contact path query request carries the first user information and the information of the second user that the first user is to find;
联系路径查找单元, 其设置为: 根据所述联系路径查询请求中的所述第 一用户信息和所述第二用户的信息在数据库中查找所述第一用户与所述第二 用户之间的联系路径; 以及  a contact path searching unit, configured to: search, in the database, between the first user and the second user according to the first user information in the contact path query request and the information of the second user Contact path; and
查找请求反馈单元, 其设置为: 判断是否查找到符合预设条件的联系路 径, 查找到符合预设条件的联系路径时, 向所述终端返回所述联系路径或者 中间节点联系人信息。  The search request feedback unit is configured to: determine whether a contact path meeting the preset condition is found, and when the contact path meeting the preset condition is found, return the contact path or the intermediate node contact information to the terminal.
上述检索服务器还可具有以下特点:  The above search server can also have the following characteristics:
所述联系路径查找单元包括:  The contact path searching unit includes:
联系人地址本, 其设置为: 保存各个用户的联系人信息;  Contact address book, which is set to: save contact information of each user;
联系人地址本查找模块, 其设置为: 根据所述第二用户信息从所述第一 用户的第一层次联系人开始逐层查找联系人地址本中是否有所述第二用户, 直到查找到末节点联系人或达到结束条件, 所述末节点联系人指其联系人地 址本中有所述第二用户的联系人; 以及  The contact address book search module is configured to: according to the second user information, search for the second user in the contact address book layer by layer from the first level contact of the first user, until the second user is found a last node contact or an end condition, the last node contact being a contact of the second user in the contact address book thereof;
联系路径确定模块, 其设置为: 若所述联系人地址本查找模块查找到末 节点联系人, 则根据所述末节点联系人逐层确定上一层次中间节点联系人, 直到根节点联系人, 所述根节点联系人指所述第一用户的联系人;  a contact path determining module, configured to: if the contact address book search module finds the last node contact, determine the previous level intermediate node contact layer by layer according to the last node contact, until the root node contact, The root node contact refers to the contact of the first user;
所述联系路径包括所述根节点联系人、 各中间节点联系人以及末节点联 系人。 上述检索服务器还可具有以下特点: The contact path includes the root node contact, each intermediate node contact, and a last node contact. The above search server can also have the following characteristics:
所述搜索服务器是服务于一个或多个社交网络的联系人搜索服务器, 所 述联系人地址本是对应的一个或多个社交网络的联系人地址本。  The search server is a contact search server serving one or more social networks, and the contact address book is a contact address book of the corresponding one or more social networks.
上述检索服务器还可具有以下特点:  The above search server can also have the following characteristics:
所述预设条件包括以下一种或多种: 联系路径的步长、联系路径的条数、 联系路径的优选条件以及所涉的社交网络个数。  The preset condition includes one or more of the following: a step size of the contact path, a number of contact paths, a preferred condition of the contact path, and a number of social networks involved.
本发明还提供一种联系路径查找系统, 其包括终端以及如权利要求 6至 9中任一项所述的搜索服务器, 其中, 所述终端包括:  The present invention further provides a contact path finding system, comprising: a terminal and the search server according to any one of claims 6 to 9, wherein the terminal comprises:
查询请求发送模块, 其设置为: 向所述搜索服务器发送所述联系路径查 询请求;  a query request sending module, configured to: send the contact path query request to the search server;
查询结果接收模块, 其设置为: 接收所述搜索服务器发送的所述联系路 径或中间节点联系人信息。  The query result receiving module is configured to: receive the contact path or intermediate node contact information sent by the search server.
上述方案由社交网络的搜索服务器根据终端发出的联系路径查询请求, 在联系人地址本中查找两个用户之间的中间人联系路径, 从而为社交网络用 户提供一种实用的社交途径。  The above solution is used by the search server of the social network to find a middleman contact path between the two users in the contact address book according to the contact path query request sent by the terminal, thereby providing a practical social path for the social network user.
附图概述 BRIEF abstract
图 1为本发明实施方式的联系人地址本的示意图;  1 is a schematic diagram of a contact address book according to an embodiment of the present invention;
图 2为本发明实施方式的联系路径查找方法的示意图;  2 is a schematic diagram of a contact path searching method according to an embodiment of the present invention;
图 3为本发明应用示例一的联系路径查找方法示意图;  3 is a schematic diagram of a contact path searching method according to an application example 1 of the present invention;
图 4为本发明实施方式的搜索服务器搜索的过程示意图;  4 is a schematic diagram of a process of searching for a search server according to an embodiment of the present invention;
图 5为本发明实施方式的搜索服务器的模块结构示意图。  FIG. 5 is a schematic structural diagram of a module of a search server according to an embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
本发明实施方式的联系路径查找方法、 系统及搜索服务器, 可以实现由 社交网络的搜索服务器根据终端发出的联系路径查询请求, 在联系人地址本 中查找两个用户之间的中间人联系路径, 从而为社交网络用户提供一种实用 的社交途径。 The contact path searching method, the system and the search server of the embodiment of the present invention can implement the contact path query request sent by the terminal by the search server of the social network, and find the intermediary path between the two users in the contact address book, thereby Provide a practical for social network users Social approach.
本发明实施方式中, 可在网络中建立一个融合的网络地址本, 用户将自 己的联系方式记录在网络地址本中, 该地址本保存用户信息的方式可以如图 In the embodiment of the present invention, a fused network address book can be established in the network, and the user records his own contact information in the network address book, and the manner in which the address book saves the user information can be as shown in the figure.
1 所示。 在该地址本中, 每一个用户都有一个属于自己的 "个人联系卡" , 在这个联系卡上标明了该用户所有联系人的联系方式。 本发明也称为联系人 地址本。 一般情况, 网络上存在多个社交网路, 每个社交网络可以建立自己 的联系人地址本, 即专有网络地址本; 也可以多个社交网络共用一个联系人 地址本, 即在多个社交网络中建立一个融合的网络地址本, 其中记录了各个 社交网络用户的信息。 所述地址本中, 在每一位用户的名下, 记录着该用户 的所有的联系人信息。 本发明提出的解决方案适用于以上两种情况。 1 is shown. In this address book, each user has a "personal contact card" of his own, on which the contact information of all contacts of the user is indicated. The invention is also referred to as a contact address book. In general, there are multiple social networks on the network. Each social network can establish its own contact address book, that is, a proprietary network address book. It is also possible to share a contact address book with multiple social networks, that is, in multiple social networks. A converged network address book is created in the network, in which information of each social network user is recorded. In the address book, under the name of each user, all the contact information of the user is recorded. The solution proposed by the present invention is applicable to the above two cases.
如图 2所示, 本发明实施方式的联系路径查找方法包括: As shown in FIG. 2, the contact path searching method of the embodiment of the present invention includes:
步骤 201 : 搜索服务器接收终端发送的联系路径查询请求, 其中携带第 一用户信息以及所述第一用户要查找的第二用户的信息;  Step 201: The search server receives a contact path query request sent by the terminal, where the first user information and the information of the second user to be searched by the first user are carried.
上述搜索服务器可以是服务于某一个社交网络的搜索服务器, 也可以是 服务于若干个社交网络的搜寻搜索服务器。  The search server may be a search server serving a certain social network, or may be a search search server serving a plurality of social networks.
步骤 202: 搜索服务器根据第一用户信息和第二用户信息在联系人地址 本中查找所述第一用户与第二用户之间的联系路径;  Step 202: The search server searches for a contact path between the first user and the second user in the contact address book according to the first user information and the second user information.
该步骤中, 多个社交网络情况下, 如果多个社交网络共享一个公共融合 地址本, 各自还有独立的专有网络地址本, 搜索服务器进行搜索运算之前, 需要将专有网络地址本信息与融合地址本信息合并。  In this step, in the case of multiple social networks, if multiple social networks share a common converged address book, and each has an independent private network address book, the search server needs to use the proprietary network address book information before performing the search operation. The merged address book information is merged.
步骤 203 : 所述搜索服务器判断是否查找到符合预设条件的联系路径, 若查找到符合预设条件的联系路径, 则向所述终端返回所述联系路径或中间 节点联系人信息。  Step 203: The search server determines whether a contact path that meets the preset condition is found. If a contact path that meets the preset condition is found, the contact path or the intermediate node contact information is returned to the terminal.
返回信息可以有多种形式, 一种是模糊方式给出中间人信息, 并不返回 中间人具体的路径信息。 另外一种, 是返回具体的路径信息, 如用户 A查找 用户 Α,,得到如下联系人路径, A->B->C->D->A,。搜索服务器也可以设置返 回信息的方式, 即返回模糊信息, 仅返回中间人信息, 而不返回具体路径, 或者返回具体路径。 在返回具体路径情况下, 还可以通过预设条件确定更加 详细返回信息, 所述预设条件包括联系路径的步长(如步长设为 3 ) 、 返回 联系路径还是中间人信息设置、 联系路径的条数、 联系路径的优选条件(将 查找到的多个联系路径中步长最短的联系路径为最终的联系路径)或所涉的 社交网络个数(如限定 3个社交网络为限) The return information can take many forms, one is to give the middleman information in a fuzzy way, and does not return the specific path information of the middleman. The other is to return specific path information. For example, user A searches for user Α, and obtains the following contact path, A->B->C->D->A. The search server can also set the way to return information, that is, return fuzzy information, return only the intermediary information, and do not return the specific path. Or return to the specific path. In the case of returning a specific path, it is also possible to determine more detailed return information by a preset condition, including the step size of the contact path (eg, the step size is set to 3), the return contact path or the intermediary information setting, and the contact path. The number of bars, the preferred condition of the contact path (the shortest contact path among the multiple contact paths to be found is the final contact path) or the number of social networks involved (limited to 3 social networks)
搜索服务器查找所述第一用户与第二用户之间的联系路径的方法可以有 以下两种方案:  The method for the search server to find the contact path between the first user and the second user may have the following two solutions:
方案一:  Option One:
所述搜索服务器查找所述第一用户与第二用户之间的联系路径的步骤包 括:  The step of the search server searching for a contact path between the first user and the second user includes:
( al )根据所述第二用户信息从第一用户的第一层次联系人开始逐层查 找联系人地址本中是否有所述第二用户, 直到查找到末节点联系人或达到结 束条件, 所述末节点联系人指其联系人地址本中有所述第二用户的联系人; (al) searching, according to the second user information, from the first-level contact of the first user, whether the second user is found in the contact address book, until the last node contact is found or the end condition is reached. The last node contact refers to the contact of the second user in the contact address book thereof;
( bl )若查找到末节点联系人, 则根据所述末节点联系人逐层确定上一 层次中间节点联系人, 直到根节点联系人, 所述根节点联系人指所述第一用 户的联系人; (bl) if the last node contact is found, determining the previous level intermediate node contact layer by layer according to the last node contact, until the root node contact, the root node contact refers to the first user contact Person
可以根据预设的步长或称度数( degree )来确定查找的层次, 比如步长设 置为 3 , 意思是说需要经过三层遍历, 若能查找得到就返回, 若查找不到就 失败。具体地,如果在第一用户的联系人里查找不到第二用户(第一层遍历) , 再到第一用户的各个联系人的联系人里查找第二用户 (第二层遍历) , 以此 类推到第三层遍历。  The level of the search can be determined according to the preset step size or degree. For example, the step size is set to 3, which means that it needs to go through three layers of traversal. If it can be found, it will return. If it is not found, it will fail. Specifically, if the second user (the first layer traversal) is not found in the contact of the first user, and then the second user (the second layer traversal) is searched for in the contact of each contact of the first user, to This class pushes to the third layer traversal.
所述联系路径包括所述根节点联系人、 各中间节点联系人以及末节点联 系人。  The contact path includes the root node contact, each intermediate node contact, and a last node contact.
为了便于用户查看, 联系路径中的各联系人可以依次列出。  For the convenience of the user, each contact in the contact path can be listed in order.
可理解地, 当第一用户和第二用户只要一个用户即可建立联系时, 可认 为所述根节点联系人、 末节点联系人及中间节点联系人重合, 当第一用户和 第二用户通过两个用户建立联系时, 可认为所述中间节点联系人与根节点联 系人或与末节点联系人合。 方案二: Understandably, when the first user and the second user can establish contact by only one user, the root node contact, the last node contact, and the intermediate node contact may be considered to coincide, when the first user and the second user pass When two users establish contact, the intermediate node contact may be considered to be in conjunction with the root node contact or with the last node contact. Option II:
所述搜索服务器在网络地址本中查找所述第一用户与第二用户之间的联 系路径的步骤包括:  The step of the search server searching the network address book for the connection path between the first user and the second user includes:
( a2 )判断所述第一用户和第二用户是否有相同的第 n层次联系人, 若 有则所述第一用户到所述第一用户的该第 n层次联系人再到所述第二用户为 联系路径, 流程结束, 否则执行步骤(b ) ;  (a2) determining whether the first user and the second user have the same nth level contact, and if so, the first user to the first user's nth level contact to the second The user is the contact path, the process ends, otherwise step (b) is performed;
( b2 )判断所述第一用户和第二用户是否有互为联系人的第 n层次联系 人; 若是, 则确定所述第一用户到其对应的第 n层次联系人以及所述第二用 户对应的第 n层次联系人到所述第二用户为联系路径, 流程结束; 否则, n=n+l , 返回步骤(a ) ;  (b2) determining whether the first user and the second user have an nth level contact that is a contact with each other; if yes, determining the first user to their corresponding nth level contact and the second user Corresponding nth level contact to the second user is a contact path, and the process ends; otherwise, n=n+l, returning to step (a);
可理解地, 方案二中起始步骤中 n为 1。  Understandably, n is 1 in the initial step in the second scheme.
一般地, 如第一用户的联系人地址本中已有第二用户, 则无需查找联系 路径, 为了防止因用户因疏忽而查找已在其联系人地址本中的联系人, 优选 地, 在方案一的步骤(al )和方案二的起始步骤前, 该方法还包括, 判断所 述第二用户是否是第一用户的联系人, 若是, 则联系路径即为该第二用户, 流程结束, 否则执行方案一的步骤(al )或方案二的起始步骤。  Generally, if there is already a second user in the contact address book of the first user, there is no need to find a contact path, in order to prevent the user from inadvertently searching for a contact already in his contact address book, preferably, in the solution Before the step (al) and the initial step of the second method, the method further includes: determining whether the second user is a contact of the first user, and if yes, the contact path is the second user, and the process ends. Otherwise, perform the steps (al) of scenario one or the initial steps of scenario two.
第一用户的第 1 层次联系人指第一用户的联系人地址本中的所有联系 人, 第一用户的第 2层次联系人指第一用户的所有第 1层次联系人的联系人 地址本中的所有联系人, 依次类推。  The first level user of the first user refers to all the contacts in the contact address book of the first user, and the second level contact of the first user refers to the contact address book of all the first level contacts of the first user. All contacts, and so on.
应用示例一 Application example one
本应用示例描述了单一网络内的情况。 可以以社交网络(如 facebook ) 为例, 这种情况适用于所有用户都属于同一个社交网络的情况。 利用本发明 方案实现用户通过终端查询该用户与指定的另一个指定用户的联系人路径。 包括以下步骤:  This application example describes the situation within a single network. You can use a social network (such as facebook) as an example. This applies to situations where all users belong to the same social network. With the solution of the present invention, the user is queried by the terminal to query the contact path of the user and another designated designated user. Includes the following steps:
步骤 301 : 搜索服务器接收终端发送的用户 A与另一个指定联系人的联 系路径查询请求;  Step 301: The search server receives a contact path query request of the user A sent by the terminal and another designated contact.
用户终端通过 HTTP协议发送查询请求, 指定联系人信息携带在 HTTP 请求消息里。 步骤 302: 搜索服务器在联系人地址本里搜寻最短路径; The user terminal sends a query request through the HTTP protocol, and the specified contact information is carried in the HTTP. In the request message. Step 302: The search server searches for a shortest path in the contact address book.
对单一的网络, 每个用户有固定的用户名, 可以分别用数字表示为 1,2, ..·,«。 在这个步骤里, 相关搜索服务器要解决的问题是由用户 i联系到用 户 j, 中间要通过几个人, 对每个用户 k, 假设搜索服务器已经存储了 k的联 系人地址本, 即 k能直接联系到的其他用户, 或者给个名称: 朋友集。  For a single network, each user has a fixed username, which can be represented numerically as 1,2, ..,,«. In this step, the problem to be solved by the relevant search server is that the user i contacts the user j, and several people are passed in the middle. For each user k, it is assumed that the search server has stored the contact address book of k, that is, k can directly Contact other users, or give a name: Friends set.
假定希望搜索的度数为 6 (即, 允许的联系路径的最大步长, 也可以设 置小于 6) , 如图 4所示, 处理步骤如下:  Suppose you want to search for a degree of 6 (that is, the maximum step size of the allowed contact path, you can also set it to less than 6). As shown in Figure 4, the processing steps are as follows:
步骤 401: 判断 是否能直接联系到 ·'; 查找 是否在 的朋友集中, 若是, 则执行步骤 407。 步长为 1。 表示为: 若 ·7·Ε ^(ί·) , 则 Μ(ί·,_/·) = 1;  Step 401: Determine whether it is directly possible to contact the ''; find if the friend is in the set, and if yes, go to step 407. The step size is 1. Expressed as: If ·7·Ε ^(ί·) , then ί(ί·, _/·) = 1;
步骤 402: 判断 i是否能通过 1个人联系到 j;  Step 402: Determine whether i can contact j through one person;
查找 的朋友集与 ·'的朋友集是否有公共的用户 (即相同的联系人) , 若 有, 则执行步骤 407。 步长为 2。  The found friend set and the 'friend set have a public user (i.e., the same contact), and if so, step 407 is performed. The step size is 2.
即,对 与 进行搜索, 判断是否有元素相等, 即判断 i和 j是否有 相同的的第 1层次联系人, 如有, 说明
Figure imgf000010_0001
则" (ι', =2; 步骤 403: 判断 是否能通过 2个人联系到 ·/';
That is, if the search is performed, it is determined whether there are elements equal, that is, whether i and j have the same first level contact, if any,
Figure imgf000010_0001
Then "(ι', = 2 ; Step 403: Determine if it can be contacted by 2 people / / ';
对 的朋友集中每个用户进行搜索, 判断是否有用户到 的步长为 2, 若 有, 则执行步骤 407。 步长为 3。  The friend of the pair collects each user to search, and judges whether the user has a step size of 2, and if yes, step 407 is performed. The step size is 3.
即, 对 eA(i), 进行搜索, 判断是否有" ( =2, 原理同第二步, 若成 立, 则《('', =3; 步骤 404: 判断 i是否能通过 3个人联系到 j; That is, search for eA(i), and judge whether there is "( = 2 , the principle is the same as the second step, if it is established, then "('', =3; Step 404: Determine whether i can contact j through 3 people) ;
对 的朋友集中每个用户与 ·/'的朋友集中每个用户进行搜索, 判断是否有 用户在 的朋友集中到 的朋友集中的用户的步长为 2, 即 i的朋友集中的 kl 是否与 j的朋友集中的 k2有相同的联系人, 若有, 则执行步骤 407。 步长为 4。  The friend of the pair concentrates each user and the friends of ··' to search for each user, and judges whether there is a step size of the user in the group of friends that the user is concentrated in, that is, whether k1 of the friend group of i is j or not The k2 of the friend set has the same contact, and if yes, step 407 is performed. The step size is 4.
即, 对 (0, ^eACZ)进行搜索, 判断是否有 "( A) = 2, 若成立, 则 n(ij) = 4 步骤 405: 判断 是否能通过 4个人联系到 ·/'; That is, search for (0, ^eACZ) and judge whether there is "(A) = 2 , if it is established, Then n(ij) = 4 Step 405: Determine whether it can be contacted by 4 people.
对 的朋友集中每个用户进行搜索, 判断是否有用户到 的步长为 4, 若 有, 则执行步骤 407。 步长为 5。  The friend of the pair collects each user to search, and determines whether there is a step size of 4 for the user, and if yes, step 407 is performed. The step size is 5.
即,
Figure imgf000011_0001
, C)进行搜索, 判断是否有 "( ,^) = 2, 若成立, 则" (',·/') = 5; 步骤 406: 判断 i是否能通过 5个人联系到 j;
which is,
Figure imgf000011_0001
, C) to search, to determine whether there is "(, ^) = 2, if it is, then "(', · / ') = 5 ; Step 406: Determine whether i can contact j through 5 people;
对 的朋友集中每个用户与 ·/'的朋友集中每个用户进行搜索, 判断是否有 用户在 的朋友集中到 的朋友集中的用户的步长为 4 ,若有,则执行步骤 407 , 步长为 6, 否则搜索失败。  The pair of friends concentrates each user and the friends of ··' to search for each user, and determines whether there is a step size of the user in the group of friends that the user is concentrated in, and if so, step 407 is executed. Is 6, otherwise the search failed.
即, 对 k,e B,(i\k e B,(k,) , k2e B,(jl e B,(k2)进行搜索, 判断是否有 "(^4) = 2 若成立, 则 "('·,_/·) = 6; 若以上都不成立, 则" (ί',·/')〉6, 搜索失败, 步骤 302的流程结束。 That is, for k, e B, (i\ke B, (k,), k 2 e B, (jl e B, (k 2 ) is searched, it is judged whether or not "(^ 4 ) = 2 if it is true, then "('·, _/·) = 6; If none of the above is true, then "(ί', ·/')> 6 , the search fails, and the flow of step 302 ends.
步骤 407: 认为搜索到符合条件的联系路径, 确认中间各个联系人, 步 骤 302的流程结束。  Step 407: It is considered that the qualified contact path is searched, and each intermediate contact is confirmed, and the process of step 302 ends.
若从步骤 401跳转到步骤 407, 则为 j就是 i的联系人的特殊情形; 若从步骤 402、 404或 406跳转到步骤 407, 则分别表明 i和 j有相同的 第 1、 2或 3层次联系人, 相应的联系路径分别为 i到其第 1、 2或 3层次联系 人再到 j;  If the process jumps from step 401 to step 407, then j is the special case of the contact of i; if the process jumps from step 402, 404 or 406 to step 407, it indicates that i and j have the same first, second or 3 level contacts, the corresponding contact path is i to its first, second or third level contact and then to j;
若从步骤 403或 405跳转到步骤 407, 则分别表明 i和 j有互为联系人的 第 1或 2层次联系人;相应的联系路径分别为 i到其对应的第 1或 2层次联系 人再到 j对应的第 1或 2层次联系人, 再到 j。  If the process jumps from step 403 or 405 to step 407, it indicates that i and j respectively have the first or second level contact of each other as the contact; the corresponding contact path is i to its corresponding first or second level contact respectively. Then go to the 1st or 2nd level contact corresponding to j, then go to j.
步骤 303: 搜索服务器如果搜索到指定联系人联系路径, 将中间各个联 系人返回给终端。 Step 303: If the search server searches for the specified contact contact path, the intermediate contacts are returned to the terminal.
搜索服务器通过 HTTP协议将搜寻结果返回给终端, 终端将返回的联系 人路径信息解析, 显示给用户。 应用示例二 The search server returns the search result to the terminal through the HTTP protocol, and the terminal will return the contact. The human path information is parsed and displayed to the user. Application example two
本应用示例描述了多网络的情况。 可以以多个社交网络(如 Facebook、 Twitter, Linkedln )为例, 这种情况适用于一部分用户属于某一个社交网络, 但所有用户都使用融合的网络地址本, 都将自己的联系方式登记在该融和地 址本内 (当然在各个社交网络也可能登记本社区的联系方式) 。 对于多个网 络, 其算法与单个网络的情形是一致的。 只要用户的 "朋友集" 能给出, 则 计算过程是一样的。 仅仅是步骤二中, 相关服务在搜索开始之前, 要合并出 所有用户的 "朋友集" 。 过程如下: 对某个特定的用用户, 对每个网络, 分 别给出其朋友集, 然后将每个网络中的朋友集中的用户名都换成统一的用户 标示, 最后合并即可得到总的 "朋友集" 。  This application example describes the case of multiple networks. Take multiple social networks (such as Facebook, Twitter, Linkedln) as an example. This applies to some users belonging to a certain social network, but all users use the converged network address book to register their own contact information. In the address book (of course, the social network may also register the contact information of this community). For multiple networks, the algorithm is consistent with the case of a single network. As long as the user's "friend set" can be given, the calculation process is the same. In just step two, the related service merges the "friend sets" of all users before the search begins. The process is as follows: For a specific user, for each network, give their friends set, and then replace the user names in the friends in each network with a unified user logo, and finally merge to get the total "Friends set".
为实现以上方法, 本发明实施方式还提供了一种搜索服务器, 如图 5所 示, 所述搜索服务器包括: To implement the above method, an embodiment of the present invention further provides a search server. As shown in FIG. 5, the search server includes:
查询请求接收单元, 设置为接收终端发送的联系路径查询请求, 其中携 带第一用户信息以及所述第一用户要查找的第二用户的信息; ;  The query request receiving unit is configured to receive a contact path query request sent by the terminal, where the first user information and the information of the second user to be searched by the first user are carried;
联系路径查找单元, 设置为根据所述联系路径查询请求中的第一用户信 息和第二用户信息在数据库中查找所述第一用户与第二用户之间的联系路 径;  The contact path searching unit is configured to search the database for the contact path between the first user and the second user according to the first user information and the second user information in the contact path query request;
查找请求反馈单元 , 设置为判断是否查找到符合预设条件的联系路径, 查找到符合预设条件的联系路径时, 还用于向所述终端返回所述联系路径或 中间节点联系人信息。  The search request feedback unit is configured to determine whether the contact path that meets the preset condition is found, and when the contact path that meets the preset condition is found, the contact path or the intermediate node contact information is also returned to the terminal.
其中, 所述联系路径查找单元可以包括:  The contact path searching unit may include:
联系人地址本, 设置为保存各个用户的联系人信息;  Contact address book, set to save contact information of each user;
联系人地址本查找模块, 设置为根据所述第二用户信息从第一用户的第 一层次联系人开始逐层查找联系人地址本中是否有所述第二用户, 直到查找 到末节点联系人或达到结束条件, 所述末节点联系人指其联系人地址本中有 所述第二用户的联系人; 联系路径确定模块, 设置为若查找到末节点联系人, 则根据所述末节点 联系人逐层确定上一层次中间节点联系人, 直到根节点联系人, 所述根节点 联系人指所述第一用户的联系人; The contact address book search module is configured to, according to the second user information, search for the second user in the contact address book layer by layer from the first level contact of the first user, until the last node contact is found. Or reaching the end condition, the last node contact refers to its contact address book The contact of the second user; the contact path determining module is configured to: if the last node contact is found, determine the previous level intermediate node contact layer by layer according to the last node contact, until the root node contact, The root node contact refers to the contact of the first user;
所述联系路径包括所述根节点联系人、 各中间节点联系人以及末节点联 系人。  The contact path includes the root node contact, each intermediate node contact, and a last node contact.
可选地, 所述搜索服务器可以是服务于某一个或若干个社交网络的联系 人搜索服务器, 所述联系人地址本是对应的一个社交网络或若干个社交网络 的联系人地址本。  Optionally, the search server may be a contact search server serving one or several social networks, where the contact address book is a contact address book of a corresponding social network or several social networks.
所述预设条件包括以下一种或多种:返回联系路径还是中间人信息设置、 联系路径的步长、 联系路径的条数、 联系路径的优选条件或所涉的社交网络 个数。  The preset condition includes one or more of the following: returning the contact path or the middleman information setting, the step size of the contact path, the number of the contact path, the preferred condition of the contact path, or the number of social networks involved.
为实现以上方法, 本发明实施方式还提供了一种联系路径查找系统, 所 述系统包括终端以及如上所述的搜索服务器, 其中所述终端包括:  To implement the above method, an embodiment of the present invention further provides a contact path searching system, where the system includes a terminal and a search server as described above, where the terminal includes:
查询请求发送模块, 设置为向搜索服务器发送联系路径查询请求, 其中 携带第一用户信息以及所述第一用户要查找的第二用户的信息;  a query request sending module, configured to send a contact path query request to the search server, where the first user information and the information of the second user to be searched by the first user are carried;
查询结果接收模块, 设置为接收所述搜索服务器发送的联系路径或中间 节点联系人信息。  The query result receiving module is configured to receive the contact path or the intermediate node contact information sent by the search server.
所述搜索服务器可以是服务于某一个或若干个社交网络的联系人搜索服 务器。  The search server may be a contact search server serving one or several social networks.
所述预设条件包括以下一种或多种:返回联系路径还是中间人信息设置、 联系路径的步长、 联系路径的条数、 联系路径的优选条件或所涉的社交网络 个数。 可以看出, 釆用本发明的实施方式, 可使查找任何联系人的最短路径, 从而提供了一种查找与陌生人如何建立联系的方法。  The preset condition includes one or more of the following: returning the contact path or the middleman information setting, the step size of the contact path, the number of the contact path, the preferred condition of the contact path, or the number of social networks involved. It can be seen that with the embodiments of the present invention, the shortest path to any contact can be found, thereby providing a way to find out how to establish contact with a stranger.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 上述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or part of the steps in the above methods may be passed through the program. To complete the instruction related hardware, the above program may be stored in a computer readable storage medium such as a read only memory, a magnetic disk or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
以上实施例仅用以说明本发明的技术方案而非限制, 仅仅参照较佳实施 例对本发明进行了详细说明。 本领域的普通技术人员应当理解, 可以对本发 明的技术方案进行修改或者等同替换, 而不脱离本发明技术方案的精神和范 围, 均应涵盖在本发明的权利要求范围当中。  The above embodiments are only intended to illustrate the technical solutions of the present invention and are not to be construed as limiting the invention. It should be understood by those skilled in the art that the present invention may be modified or equivalently substituted without departing from the spirit and scope of the invention.
工业实用性 本发明的实施方式由社交网络的搜索服务器根据终端发出的联系路径查 询请求, 在联系人地址本中查找两个用户之间的中间人联系路径, 从而为社 交网络用户提供一种实用的社交途径。 INDUSTRIAL APPLICABILITY An embodiment of the present invention searches for a middleman contact path between two users in a contact address book according to a contact path query request sent by the terminal, thereby providing a practical method for the social network user. Social approach.

Claims

权 利 要 求 书 Claim
1、 一种联系路径查找方法, 其包括: 1. A contact path finding method, comprising:
搜索服务器接收终端发送的联系路径查询请求, 所述联系路径查询请求 携带第一用户信息以及所述第一用户要查找的第二用户的信息;  The search server receives the contact path query request sent by the terminal, where the contact path query request carries the first user information and the information of the second user that the first user is to find;
所述搜索服务器根据所述第一用户信息和所述第二用户的信息在联系人 地址本中查找所述第一用户与所述第二用户之间的联系路径; 所述搜索服务器判断是否查找到符合预设条件的联系路径, 若查找到符 合预设条件的联系路径, 则向所述终端返回所述联系路径或者中间节点联系 人信息。  The search server searches for a contact path between the first user and the second user in the contact address book according to the first user information and the information of the second user; the search server determines whether to search To the contact path that meets the preset condition, if the contact path meeting the preset condition is found, the contact path or the intermediate node contact information is returned to the terminal.
2、 如权利要求 1所述的方法, 其中: 所述搜索服务器查找所述第一用户 与所述第二用户之间的联系路径的步骤包括: 2. The method according to claim 1, wherein: the step of the search server searching for a contact path between the first user and the second user comprises:
( a )判断所述第一用户和所述第二用户是否有相同的第 n层次联系人, 若是, 则所述第一用户到所述第一用户的该第 n层次联系人再到所述第二用 户为联系路径, 流程结束, 若否, 则执行步骤(b ) ;  (a) determining whether the first user and the second user have the same nth level contact, and if so, the first user to the nth level contact of the first user to the The second user is the contact path, the process ends, and if not, step (b) is performed;
( b )判断所述第一用户和所述第二用户是否有互为联系人的第 n层次联 系人; 若是, 则确定所述第一用户到其对应的第 n层次联系人以及所述第二 用户对应的第 n层次联系人到所述第二用户为联系路径, 流程结束; 若否, 则令 n=n+l , 并返回步骤(a ) ;  (b) determining whether the first user and the second user have an nth level contact that is a contact with each other; if yes, determining the first user to their corresponding nth level contact and the The nth level contact corresponding to the second user is the contact path to the second user, and the process ends; if not, let n=n+l, and return to step (a);
其中, n的初始值为 1。  Where n has an initial value of 1.
3、 如权利要求 1所述的方法, 其中, 所述搜索服务器查找所述第一用户 与所述第二用户之间的联系路径的步骤包括: 3. The method of claim 1, wherein the step of the search server searching for a contact path between the first user and the second user comprises:
( a )根据所述第二用户信息从第一用户的第一层次联系人开始逐层查找 联系人地址本中是否有所述第二用户, 直到查找到末节点联系人或达到结束 条件, 所述末节点联系人指其联系人地址本中有所述第二用户的联系人; ( b )若查找到末节点联系人, 则根据所述末节点联系人逐层确定上一层 次中间节点联系人, 直到根节点联系人, 所述根节点联系人指所述第一用户 的联系人; 所述联系路径包括所述根节点联系人、 各中间节点联系人以及末节点联 系人。 (a) searching, according to the second user information, from the first-level contact of the first user, whether the second user is in the contact address book, until the last node contact is found or the end condition is reached. The last node contact refers to the contact of the second user in the contact address book; (b) if the last node contact is found, the previous level intermediate node is determined according to the last node contact layer by layer. a person, up to the root node contact, the root node contact refers to the contact of the first user; The contact path includes the root node contact, each intermediate node contact, and a last node contact.
4、 如权利要求 1所述的方法, 其中: 所述搜索服务器是服务于一个或多 个社交网络的搜索服务器, 所述联系人地址本是对应的一个或多个社交网络 的联系人地址本。 4. The method of claim 1, wherein: the search server is a search server serving one or more social networks, the contact address book being a contact address book of a corresponding one or more social networks .
5、如权利要求 1所述的方法,其中:所述预设条件包括以下一种或多种: 返回联系路径还是中间人信息设置、 联系路径的步长、 联系路径的条数、 联 系路径的优选条件以及所涉的社交网络个数。 5. The method of claim 1, wherein: the predetermined condition comprises one or more of the following: returning a contact path or an intermediary information setting, a step size of the contact path, a number of contact paths, and a preference of the contact path Conditions and the number of social networks involved.
6、 一种搜索服务器, 其包括: 6. A search server, comprising:
查询请求接收单元, 其设置为: 接收终端发送的联系路径查询请求, 所 述联系路径查询请求携带第一用户信息以及所述第一用户要查找的第二用户 的信息; ;  a query request receiving unit, configured to: receive a contact path query request sent by the terminal, where the contact path query request carries the first user information and the information of the second user that the first user is to find;
联系路径查找单元, 其设置为: 根据所述联系路径查询请求中的所述第 一用户信息和所述第二用户的信息在数据库中查找所述第一用户与所述第二 用户之间的联系路径; 以及  a contact path searching unit, configured to: search, in the database, between the first user and the second user according to the first user information in the contact path query request and the information of the second user Contact path; and
查找请求反馈单元, 其设置为: 判断是否查找到符合预设条件的联系路 径, 查找到符合预设条件的联系路径时, 向所述终端返回所述联系路径或者 中间节点联系人信息。  The search request feedback unit is configured to: determine whether a contact path meeting the preset condition is found, and when the contact path meeting the preset condition is found, return the contact path or the intermediate node contact information to the terminal.
7、如权利要求 6所述的搜索服务器,其中:所述联系路径查找单元包括: 联系人地址本, 其设置为: 保存各个用户的联系人信息; The search server according to claim 6, wherein the contact path searching unit comprises: a contact address book, which is configured to: save contact information of each user;
联系人地址本查找模块, 其设置为: 根据所述第二用户信息从所述第一 用户的第一层次联系人开始逐层查找联系人地址本中是否有所述第二用户, 直到查找到末节点联系人或达到结束条件, 所述末节点联系人指其联系人地 址本中有所述第二用户的联系人; 以及  The contact address book search module is configured to: according to the second user information, search for the second user in the contact address book layer by layer from the first level contact of the first user, until the second user is found a last node contact or an end condition, the last node contact being a contact of the second user in the contact address book thereof;
联系路径确定模块, 其设置为: 若所述联系人地址本查找模块查找到末 节点联系人, 则根据所述末节点联系人逐层确定上一层次中间节点联系人, 直到根节点联系人, 所述根节点联系人指所述第一用户的联系人; 所述联系路径包括所述根节点联系人、 各中间节点联系人以及末节点联 系人。 a contact path determining module, configured to: if the contact address book search module finds the last node contact, determine the previous level intermediate node contact layer by layer according to the last node contact, until the root node contact, The root node contact refers to the contact of the first user; The contact path includes the root node contact, each intermediate node contact, and a last node contact.
8、 如权利要求 6所述的搜索服务器, 其中: 所述搜索服务器是服务于一 个或多个社交网络的联系人搜索服务器, 所述联系人地址本是对应的一个或 多个社交网络的联系人地址本。 8. The search server of claim 6, wherein: the search server is a contact search server serving one or more social networks, the contact address book being a contact of a corresponding one or more social networks People address book.
9、 如权利要求 6所述的搜索服务器, 其中: 所述预设条件包括以下一种 或多种: 联系路径的步长、 联系路径的条数、 联系路径的优选条件以及所涉 的社交网络个数。 9. The search server according to claim 6, wherein: the preset condition comprises one or more of the following: a step size of the contact path, a number of contact paths, a preferred condition of the contact path, and a social network involved Number.
10、 一种联系路径查找系统, 其包括终端以及如权利要求 6至 9中任一 项所述的搜索服务器, 其中, 所述终端包括: A contact path search system, comprising: a terminal and a search server according to any one of claims 6 to 9, wherein the terminal comprises:
查询请求发送模块, 其设置为: 向所述搜索服务器发送所述联系路径查 询请求; 查询结果接收模块, 其设置为: 接收所述搜索服务器发送的所述联系路 径或中间节点联系人信息。  The query request sending module is configured to: send the contact path query request to the search server; and the query result receiving module is configured to: receive the contact path or intermediate node contact information sent by the search server.
PCT/CN2011/083798 2011-07-08 2011-12-12 Contact path search method, system, and search server WO2013007084A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110191001.5 2011-07-08
CN2011101910015A CN102868716A (en) 2011-07-08 2011-07-08 Searching method, system and search server for contact path

Publications (1)

Publication Number Publication Date
WO2013007084A1 true WO2013007084A1 (en) 2013-01-17

Family

ID=47447303

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/083798 WO2013007084A1 (en) 2011-07-08 2011-12-12 Contact path search method, system, and search server

Country Status (2)

Country Link
CN (1) CN102868716A (en)
WO (1) WO2013007084A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699596A (en) * 2013-12-13 2014-04-02 北京厚睿技术有限公司 Searching method and system in social communication network
CN104008151B (en) * 2014-05-21 2019-03-26 深圳市亿芯通讯有限公司 Method, system and the terminal device of retrieving contacts
TWI575470B (en) * 2014-06-26 2017-03-21 國立臺灣大學 A global relationship model and a relationship search method for internet social networks
CN105373569A (en) * 2014-09-02 2016-03-02 中兴通讯股份有限公司 Method and device for retrieving contact
CN105515939B (en) 2014-10-20 2019-10-29 阿里巴巴集团控股有限公司 The method and device of user information is provided in instant messaging application
CN105956024A (en) * 2016-04-25 2016-09-21 华中科技大学 Social network user relationship searching method
RU2683154C1 (en) * 2018-05-28 2019-03-26 Илья Владимирович Редкокашин Method of transmitting information
CN109347995A (en) * 2018-11-06 2019-02-15 上海掌门科技有限公司 It is a kind of for obtaining the method and apparatus of user contact infonnation

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187813A1 (en) * 2002-03-26 2003-10-02 Goldman Neal D. System and method for identifying relationship paths to a target entity
US20060218111A1 (en) * 2004-05-13 2006-09-28 Cohen Hunter C Filtered search results
CN1852107A (en) * 2005-11-09 2006-10-25 华为技术有限公司 Relation information publishing, fetching method and system
US20080059576A1 (en) * 2006-08-31 2008-03-06 Microsoft Corporation Recommending contacts in a social network
CN101193160A (en) * 2006-11-30 2008-06-04 北京三星通信技术研究有限公司 Method for searching intercourse relation based on the mobile phone
US7519542B1 (en) * 2001-08-14 2009-04-14 Versata Development Group, Inc. System and method for modeling and applying a people network representation
CN101727479A (en) * 2009-12-08 2010-06-09 张玉峰 Relation path searching method of combining relevant database and network data structure
US20110167085A1 (en) * 2008-09-12 2011-07-07 Haschek Hans M System and Method for Searching for a Target Contact and for Generating a Contact Path

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7613472B2 (en) * 2003-09-17 2009-11-03 Sony Ericsson Mobile Communications Ab System and method of sharing a contact list among mobile phones
CN101826077B (en) * 2009-03-03 2012-11-21 华为技术有限公司 Method and device for obtaining relation contact person record

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519542B1 (en) * 2001-08-14 2009-04-14 Versata Development Group, Inc. System and method for modeling and applying a people network representation
US20030187813A1 (en) * 2002-03-26 2003-10-02 Goldman Neal D. System and method for identifying relationship paths to a target entity
US20060218111A1 (en) * 2004-05-13 2006-09-28 Cohen Hunter C Filtered search results
CN1852107A (en) * 2005-11-09 2006-10-25 华为技术有限公司 Relation information publishing, fetching method and system
US20080059576A1 (en) * 2006-08-31 2008-03-06 Microsoft Corporation Recommending contacts in a social network
CN101193160A (en) * 2006-11-30 2008-06-04 北京三星通信技术研究有限公司 Method for searching intercourse relation based on the mobile phone
US20110167085A1 (en) * 2008-09-12 2011-07-07 Haschek Hans M System and Method for Searching for a Target Contact and for Generating a Contact Path
CN101727479A (en) * 2009-12-08 2010-06-09 张玉峰 Relation path searching method of combining relevant database and network data structure

Also Published As

Publication number Publication date
CN102868716A (en) 2013-01-09

Similar Documents

Publication Publication Date Title
WO2013007084A1 (en) Contact path search method, system, and search server
US9348916B2 (en) Method and system for providing search services for a social media ecosystem
US9292885B2 (en) Method and system for providing social search and connection services with a social media ecosystem
US8764567B2 (en) System and method for implementing turn-based online games
US10165066B2 (en) Systems, methods, and apparatuses for implementing an interface to populate and update an entity graph through socially relevant user challenges
US20120311036A1 (en) Friend recommendation system and method
US9294578B2 (en) Method of virally expanding social networks
EP2083553A1 (en) System and method for profile synchronization
WO2009074037A1 (en) An instant communication method, device and system
US20120310956A1 (en) System and method for processing graphs of user relationships in an online service
WO2013086800A1 (en) Social network interoperation method and system
JP2012533116A (en) Information aggregation service
JP2010026936A (en) Terminal device and system for searching personal information
JP5949766B2 (en) Service providing apparatus, service providing method, and storage medium
US20160094680A1 (en) Content Sharing Method and Social Synchronization Apparatus
WO2012016509A1 (en) Method and system for management by network and for automatic update of contact information
WO2009082895A1 (en) System, method and device for content searching
WO2011107027A1 (en) Method and device for information exchange among business platforms
US9521106B2 (en) Method, system and device for obtaining potential friends information
US11222297B2 (en) System and method for matching patrons, servers, and restaurants within the food service industry
JP5544016B2 (en) ICP website login method, system and login device for user in ID / locator separation network
CN104111926B (en) The generation method and device of the concern recommendation list of address list
CN104539538A (en) IP address matching method and data package forwarding method of router
US20200134740A1 (en) Network connection system and method
WO2016155494A1 (en) Data processing method and apparatus

Legal Events

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

Ref document number: 11869264

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11869264

Country of ref document: EP

Kind code of ref document: A1