Movatterモバイル変換


[0]ホーム

URL:


CN103020276A - Method and device for searching social contact objects - Google Patents

Method and device for searching social contact objects
Download PDF

Info

Publication number
CN103020276A
CN103020276ACN2012105789132ACN201210578913ACN103020276ACN 103020276 ACN103020276 ACN 103020276ACN 2012105789132 ACN2012105789132 ACN 2012105789132ACN 201210578913 ACN201210578913 ACN 201210578913ACN 103020276 ACN103020276 ACN 103020276A
Authority
CN
China
Prior art keywords
social
index value
weight index
objects
social object
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.)
Pending
Application number
CN2012105789132A
Other languages
Chinese (zh)
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.)
Sina Technology China Co Ltd
Original Assignee
Sina Technology China 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 Sina Technology China Co LtdfiledCriticalSina Technology China Co Ltd
Priority to CN2012105789132ApriorityCriticalpatent/CN103020276A/en
Publication of CN103020276ApublicationCriticalpatent/CN103020276A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

The invention discloses a method and device for searching social contact objects. The method comprises the following steps: searching for the social contact objects according to a searching condition, thereby obtaining all the social contact objects matching with the searching condition; taking each of the social contact objects as a present social contact object in turn, thereby obtaining social contact objects concerned by the present social contact object and concerning the present social contact object; confirming a weight index value of each social contact object according to the social contact objects respectively concerned by each social contact object and the social contact objects respectively concerning each social contact object; and returning each social contact object according to the sequence of the weight index values from high to low. According to the scheme provided by the embodiment of the invention, when the social contact objects are searched, the consumption of the processing resource on the side of a social contact network is reduced and the consumption of the network bandwidth resource is reduced.

Description

Social object searching method and device
Technical Field
The invention relates to the technical field of internet and computers, in particular to a social object searching method and device.
Background
In the existing internet application, social networks are widely applied and rapidly developed, such as microblogs and the like. In a social network, a social object (i.e., a user) may publish information in various media forms, such as text, pictures, videos, and the like, and may also browse information published by other social objects. In order to facilitate communication among the social objects, attention and attention-paid relationships can be established among the social objects, and one social object can pay attention to other social objects and can also be paid attention to other social objects.
In practical use of a social network, a social object also needs to be searched frequently, and an existing search mode is to match a search condition with an object tag of the social object and return the social object meeting the matching condition to a user as a search result, where the object tag of the social object may be an interest tag representing an interest of the social object, or may be a topic tag representing a topic in which the social object participates in discussion, and the object tag may be labeled by the user himself or by a network side according to behavior characteristics of the social object accessing information in the social network.
However, in the existing social object searching method, after a search result is obtained, the social objects included in the search result are directly returned and presented to the user in a randomly arranged order. Because the search results are not arranged according to a reasonable sequence, the user may need to perform multiple click-and-view operations on each social object included in the search results to find the social object desired to be searched by the user. And the multiple click viewing operations of the user all require the network side to perform corresponding processing operations and return information requesting viewing to the user, thereby increasing the consumption of processing resources of the social network side and the consumption of network bandwidth resources.
Disclosure of Invention
The embodiment of the invention provides a social contact object searching method and device, which are used for solving the problems that in the prior art, the social network side processing resource consumption is high and the network bandwidth resource consumption is high when a social contact object is searched.
The embodiment of the invention provides a social object searching method, which comprises the following steps:
searching the social objects according to the searching conditions to obtain all the social objects matched with the searching conditions;
taking each social contact object in the social contact objects as a current social contact object in sequence, acquiring a social contact object concerned by the current social contact object and a social contact object concerned by the current social contact object;
determining the weight index value of each social object according to the social objects concerned by each social object and the social objects concerned by each social object;
and returning to the social objects according to the sequence of the weight index values from high to low.
An embodiment of the present invention further provides a social object searching apparatus, including:
the searching unit is used for searching the social objects according to the searching conditions to obtain all the social objects matched with the searching conditions;
the obtaining unit is used for sequentially taking each social contact object in the social contact objects as a current social contact object, obtaining a social contact object concerned by the current social contact object and a social contact object concerned by the current social contact object;
the weight determination unit is used for determining the weight index value of each social object according to the social objects concerned by each social object and the social objects concerned by each social object;
and the ranking unit is used for returning to each social object according to the sequence of the weight index values from high to low.
The beneficial effects of the invention include:
in the method provided by the embodiment of the invention, after the social objects are searched according to the search condition and the social objects matched with the search condition are obtained, each social object in the social objects is sequentially used as the current social object, the social object concerned by the current social object and the social object concerned by the current social object are obtained, then the weight index value of each social object is determined according to the social objects concerned by each social object and the social objects concerned by each social object respectively, and the social objects are returned according to the sequence of the weight index values from high to low. Because the weight index value represents the importance degree of the social objects, the social objects are returned according to the order from high to low of the weight index value, so that the user can find the social objects expected to be searched by the user through less click viewing, the click viewing operation of the user on the social objects included in the search result is reduced, the consumption of processing resources on the social network side is reduced, and the consumption of network bandwidth resources is reduced.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flowchart of a social object searching method according to an embodiment of the present invention;
fig. 2 is a flowchart of a social object searching method according to embodiment 1 of the present invention;
fig. 3 is a flowchart of a social object searching method according to embodiment 2 of the present invention;
FIG. 4 is a schematic structural diagram of a processing system for performing a social object search method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a social object searching apparatus according to embodiment 3 of the present invention.
Detailed Description
In order to provide an implementation scheme for reducing the consumption of processing resources on the social network side and reducing the consumption of network bandwidth resources when searching for a social object, the embodiments of the present invention provide a method and an apparatus for searching for a social object, and the following description is made in conjunction with the accompanying drawings of the specification for describing preferred embodiments of the present invention. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
An embodiment of the present invention provides a social object search method, as shown in fig. 1, including:
step 101, searching the social objects according to the search conditions to obtain each social object matched with the search conditions.
And 102, sequentially taking each social object in the social objects as a current social object, and acquiring a social object concerned by the current social object and a social object concerned by the current social object.
And 103, determining the weight index value of each social object according to the social objects respectively concerned by each social object and the social objects respectively concerned by each social object.
Andstep 104, returning each social object according to the sequence of the weight index values from high to low.
The specific way of determining the weight index value of each social object instep 103 may be as follows:
before determining the weight index value of each social object, sequentially taking each social object in each social object as a current social object, and determining the number of the social objects concerned by the current social object and the number of the social objects concerned by the current social object;
then, according to the number of the social objects respectively concerned by each social object and the number of the social objects respectively concerned by each social object, determining the weight index value of each social object.
For convenience and understanding, the number of social objects to which a social object pays attention may be referred to as the number of the social objects to which the social object pays attention, and the number of social objects to which a social object pays attention may be referred to as the number of the social objects to which the social object pays attention, that is, the weight index value of each social object is determined according to the number of the social objects to which the social object pays attention and the number of the social objects to which the social object pays attention.
For example, specifically, the larger the number of the concerned social objects is, the larger the weight index value of the social objects is, the larger the number of the concerned social objects is, and the larger the weight index value of the social objects is, such as performing weighted summation based on the number of the concerned social objects and the number of the concerned social objects to obtain the weight index value;
the weight index value may be determined according to the number of the concerned social objects, and the larger the number of the concerned social objects is, the larger the weight index value of the social objects is, and if the number of the concerned social objects is the same, the weight index value may be adjusted according to the number of the concerned social objects, and the larger the number of the concerned social objects is, the larger the weight index value of the social objects is.
In addition to the above specific manner of thestep 103, other manners may be adopted in the embodiments of the present invention, and the method and the apparatus provided by the present invention are described in detail with reference to the specific embodiments below.
Example 1:
fig. 2 is a flowchart of a social object searching method provided in embodiment 1 of the present invention, which specifically includes the following processing steps:
step 201, a user sends a social object search request to a network server of a social network through a client, wherein the social object search request carries search conditions.
Step 202, after receiving the social object search request, the network server of the social network searches the social object according to the carried search condition to obtain each social object matched with the search condition.
The specific way of searching for the social object according to the search condition may be various ways in the prior art.
In this step, an object tag matched with the search condition may be specifically determined, and each social object labeled with the object tag is used as a search result;
the social objects noted with the object tags and concerned by the social objects can be further used as search results;
still further, when the number of the social objects included in the search result is large, in order to reduce the calculation amount in the subsequent ranking of the social objects, a part of the social objects may be excluded from the search result, and the excluded social objects may be social objects for which the number of the social objects concerning the social objects does not reach a preset number threshold.
Step 203, sequentially taking each social object in the social objects in the search result as a current social object, obtaining a social object concerned by the current social object and a social object concerned by the current social object, that is, obtaining the social object concerned by each social object in the social objects and the social object concerned by each social object.
For the convenience of obtaining, the social objects concerned by each social object and the social objects concerned by each social object may be stored in advance for each social object in the social network in the following manner 1:
TABLE 1
Social objectsNumber of concernsSocial objects of interestSocial objects of interest...Social objects of interest
U1S1U(1,1)U(1,2)...U(1,S1)
U2S2U(2,1)U(2,2)...U(2,S2)
..................
UN-1SN-1U(N-1,1)U(N-1,2)...U(N-1,SN-1)
UNSNU(N,1)U(N,2)...U(N,SN)
In Table 1 above, N is the number of social objects in the search results, UiAs the ith social object, SiThe number of social objects of interest for the ith social object, and U (i, j) is S of interest for the ith social objectiA jth social object of the social objects.
While storing Table 1, U1-UNThe social contact information can be respectively integers from 0 to N and respectively corresponds to the IDs of N social contact objects, so that the attention information of one social contact object can be found within O (1) complexity; moreover, the table 1 can be loaded into a server with a large memory, so that the efficiency of acquiring information from the table 1 is improved.
Step 204, sequentially determining the weight index value of each social object in the search result according to the following formula:
PR(i)=1-dN+dΣj∈in(i)pr(j)|out(j)|;
pr (i) a weight index value of the ith social object in the social objects determined in this iteration, N is the number of the social objects, in (i) a set of the social objects focusing on the ith social object, out (j) a set of the social objects focusing on the jth social object, | out (j) the number of the social objects focusing on the jth social object, | pr (j) a weight index value of the jth social object determined in the last iteration, and pr (j) a preset initial weight index value of the jth social object when the first iteration is determined, where the preset initial weight index values of the social objects are equal, for example, may be 1, d is a preset attention transition probability representing a probability that after one social object is focused on, a social object is continuously selected for focusing on from the social objects focusing on the jth social object, the specific value can be flexibly set according to actual needs, and can be set to 0.85, for example.
And step 205, judging whether the end condition of the iteration determination is met, if so, enteringstep 206, and if not, enteringstep 204 for next iteration determination.
Specifically, the end condition of iteration determination may be that the number M of times determined by the current iteration reaches a preset fixed value;
the iteration-determined end condition may also satisfy the following relation for the number M of times of the current iteration:
&Sigma;i=1N|PR(i)M-1-PR(i)M|<PRC;or,&Sigma;i=1N|PR(i)M-1-PR(i)M|&le;PRC;
wherein, PR (i)M-1Weight metric value of ith social object determined for M-1 iteration, PR (i)MWeight index value, PR, of the ith social object determined for the Mth iterationCIs a preset weight difference threshold.
And step 206, sequencing the social objects included in the search result according to the sequence of the weight index values determined by the last iteration from high to low, and returning the social objects to the client according to the sequence of the sequencing so as to display the social objects on the client according to the sequence of the weight index values from high to low.
By adopting the method provided by the embodiment 1 of the present invention, since the determined weight index value represents the importance degree of the social objects, the social objects are returned according to the order of the weight index value from high to low, so that the user can find the social objects desired to be searched by the user through fewer click views, thereby reducing the click view operation of the user on each social object included in the search result, further reducing the consumption of the processing resources on the social network side, and reducing the consumption of the network bandwidth resources.
Example 2:
in practical application of a social network, when searching for a social object, it is often necessary to search for the social object with respect to a certain object tag, for example, search for the social object with respect to a certain topic tag, and at this time, the search result may include not only the social object labeled with the object tag but also a social object not labeled with the object tag, in embodiment 2 of the present invention, that is, when searching for the social object with respect to a certain object tag, a method for how to order the social objects in the search result according to importance levels is described in detail, as shown in fig. 3, which specifically includes the following processing steps:
step 301, a user sends a social object search request to a network server of a social network through a client, where the social object search request carries search conditions.
Step 302, after receiving the social object search request, the network server of the social network searches the social object according to the carried search condition to obtain each social object matched with the search condition.
The specific way of searching for the social object according to the search condition may be various ways in the prior art.
In this step, an object tag matched with the search condition may be specifically determined, and each social object labeled with the object tag is used as a search result;
the social objects noted with the object tags and concerned by the social objects can be further used as search results;
still further, when the number of the social objects included in the search result is large, in order to reduce the calculation amount in the subsequent ranking of the social objects, a part of the social objects may be excluded from the search result, and the excluded social objects may be social objects for which the number of the social objects concerning the social objects does not reach a preset number threshold.
Step 303, determining an object tag matched with the search condition, where the object tag may be an interest tag or a topic tag.
When the object tags matching the search condition have been determined in theabove step 302, this step is omitted.
Step 304, determining whether each social object included in the search result is marked with the object tag matched with the search condition.
And 305, taking each social object in the social objects in the search result as a current social object, acquiring a social object concerned by the current social object and a social object concerned by the current social object, namely acquiring the social object concerned by each social object in the social objects and the social object concerned by each social object.
For the convenience of obtaining, the social objects concerned by each social object in the social network and the social objects concerned by each social object may be stored in advance in the following manner as shown in table 2:
TABLE 2
Social objectsNumber of concernsSocial objects of interestSocial objects of interest...Social objects of interest
U1S1U(1,1)U(1,2)...U(1,S1)
U2S2U(2,1)U(2,2)...U(2,S2)
..................
UN-1SN-1U(N-1,1)U(N-1,2)...U(N-1,SN-1)
UNSNU(N,1)U(N,2)...U(N,SN)
In Table 2 above, N is the number of social objects in the search results, UiAs the ith social object, SiThe number of social objects of interest for the ith social object, and U (i, j) is S of interest for the ith social objectiA jth social object of the social objects.
While storing Table 2, U1-UNThe social contact information can be respectively integers from 0 to N and respectively corresponds to the IDs of N social contact objects, so that the attention information of one social contact object can be found within O (1) complexity; moreover, the table 2 can be loaded into a server with a large memory, so that the efficiency of acquiring information from the table 2 is improved.
There is no strict sequence between thisstep 305 and theabove steps 303 and 304.
Step 306, this step can be performed in two ways:
the first mode is as follows: sequentially determining the weight index value of each social object in the search result aiming at the object label according to the following formula:
PR(i)=(1-d)ri+d&Sigma;j&Element;in(i)PR(j)|out(j)|;
PR (i) is the weight index value of the ith social object in the social objects determined by the iteration, and r is the weight index value of the ith social object when the ith social object is marked with the object labeliIs 1, when the ith social object is not labeled with the object label ri0, in (i) is a set of social objects paying attention to the ith social object, out (j) is a set of social objects paying attention to the jth social object, | out (j) is the number of social objects paying attention to the jth social object, pr (j) is a weight index value of the jth social object determined in the last iteration, and pr (j) is a preset initial weight index value of the jth social object determined in the first iteration, the initial weight index value of the social object marked with the object tag in each social object is a preset first initial weight index value, the initial weight index value of the social object not marked with the object tag in each social object is a preset second initial weight index value, and the first initial weight index value is larger than the jth initial weight index valueThe two initial weight index values, for example, the first initial weight index value is 1, the second initial weight index value is 0, and d is a preset attention transition probability, which represents a probability that, after a social object is concerned, a social object is continuously selected from the social objects concerned by the concerned social object for attention, and a specific value may be flexibly set according to actual needs, for example, may be set to 0.85.
The second mode is as follows: sequentially determining the weight index value of each social object in the search result aiming at the object label according to the following formula:
PR(i)=(1-d)pr(i)+d&Sigma;j&Element;in(i)pr(j)|out(j)|;
pr (i) is a weight index value of the ith social object in the social objects determined in this iteration, in (i) is a set of social objects focusing on the ith social object, out (j) is a set of social objects focusing on the jth social object, | out (j) | is the number of social objects focusing on the jth social object, pr (j) is a weight index value of the jth social object determined in the last iteration, and pr (j) is a preset initial weight index value of the jth social object in the first iteration, the initial weight index value of the social object marked with the object tag in each social object is a preset first initial weight index value, and the initial weight index value of the social object not marked with the object tag in each social object is a preset second initial weight index value, and the first initial weight index value is greater than the second initial weight index value, for example, the first initial weight index value is 1, the second initial weight index value is 0, d is a preset attention transition probability, which represents a probability that, after a social object is concerned, a social object is continuously selected from the social objects concerned by the concerned social object for attention, and a specific numerical value may be flexibly set according to actual needs, for example, may be set to 0.85.
This step is described below by way of example using the second approach described above:
assuming that the search result includes 5 social objects, U1, U2, U3, U4, and U5, respectively, and U1, U3, and U5 are labeled with an object tag T matching the search condition, U2 and U4 are not labeled with the object tag T, the first initial weight index value is 1, the second initial weight index value is 0, and the cases of the social objects of interest to each of U1, U2, U3, U4, and U5 are as shown in table 3:
TABLE 3
Social objectsNumber of concernsConcerned social pairsElephantSocial objects of interestSocial objects of interest
U13U2U3U4
U22U3U4
U32U1U2
U41U3
U52U2U3
Taking the first iteration determination as an example, the determination process of the weight index value of each social object for the object tag T is as follows:
PR(1)=(1-d)pr(1)+d&Sigma;j&Element;in(1)pr(j)|out(j)|=(1-0.85)*pr(1)+0.85*(pr(3)/2)=0.575;
PR(2)=(1-d)pr(2)+d&Sigma;j&Element;in(1)pr(j)|out(j)|;
=(1-0.85)*pr(2)+0.85*(pr(1)/3+pr(3)/2+pr(5)/2)=1.13
PR(3)=(1-d)pr(3)+d&Sigma;j&Element;in(1)pr(j)|out(j)|;
=(1-0.85)*pr(3)+0.85*(pr(1)/3+pr(2)/2+pr(4)+pr(5)/2)=0.708
PR(4)=(1-d)pr(4)+d&Sigma;j&Element;in(1)pr(j)|out(j)|;
=(1-0.85)*pr(4)+0.85*(pr(1)/3+pr(2)/2)=0.283
PR(5)=(1-d)pr(5)+d&Sigma;j&Element;in(1)pr(j)|out(j)|=(1-0.85)*pr(5)=0.15.
and 307, judging whether the end condition of the iteration determination is met, if so, entering astep 308, and if not, entering astep 306 for next iteration determination.
Specifically, the end condition of iteration determination may be that the number M of times determined by the current iteration reaches a preset fixed value;
the iteration-determined end condition may also satisfy the following relation for the number M of times of the current iteration:
&Sigma;i=1N|PR(i)M-1-PR(i)M|<PRC;or,&Sigma;i=1N|PR(i)M-1-PR(i)M|&le;PRC;
wherein, PR (i)M-1Weight metric value of ith social object determined for M-1 iteration, PR (i)MWeight index value, PR, of the ith social object determined for the Mth iterationCIs a preset weight difference threshold.
And 308, sequencing the social objects included in the search result according to the sequence of the weight index values determined by the last iteration from high to low, and returning the social objects to the client according to the sequence of the sequencing so as to display the social objects on the client according to the sequence of the weight index values from high to low.
By adopting the method provided by the embodiment 2 of the present invention, since the determined weight index value represents the importance degree of the social objects, the social objects are returned according to the order of the weight index value from high to low, so that the user can find the social objects desired to be searched by the user through fewer click views, thereby reducing the click view operation of the user on each social object included in the search result, further reducing the consumption of the processing resources on the social network side, and reducing the consumption of the network bandwidth resources.
Moreover, for a certain object tag, the social objects included in the search result can be reasonably sorted according to the order of importance from high to low, that is, the user can further find the social object desired to be searched by the user.
Further, in embodiment 2 of the present invention, when it is determined that there are a plurality of object tags matching the search condition, according to theabove step 306 and step 307, a weight index value of each social object may be determined for each object tag in the plurality of object tags, and based on the tag weight values of the plurality of object tags, the weight index values of each social object for the plurality of object tags may be weighted and summed to obtain a final weight index value of the social object, which may specifically be as follows:
Score(i)=&Sigma;j=1PWj*PR(i)j;
wherein score (i) is the final weight index value of the ith social object in the search result, P is the number of tags of the plurality of objects, WjThe weight value of the jth object label in the plurality of object labels can be flexibly set according to actual needs, PR (i)jThe weight index value of the ith social object aiming at the jth object label is obtained.
Accordingly, instep 308, the social objects included in the search result may be specifically sorted according to the determined final weight index value from high to low, and the social objects are returned to the client according to the sorted order, so that the social objects are displayed on the client according to the weight index value from high to low.
Therefore, the social objects included in the search result can be reasonably sorted according to the order of importance from high to low aiming at the plurality of object tags, namely, the social objects which the user desires to search for can be further conveniently found by the user.
In the embodiment of the present invention, when determining the weight index value of the social object, the determination may be performed by a processing system as shown in fig. 4.
The processing system shown in fig. 4 includes a controller and a plurality of processing servers, the controller distributes tasks to be performed to each processing server, each task may include a sub-task for determining a weight index value for a plurality of sets of social objects, and each task may also include a sub-task for determining a weight index value for a social object for a plurality of object tags, and the controller may also distribute the table 2 to each processing server, so that each processing server can quickly find data required for determining a weight index value for a social object.
Each processing server may start multiple threads to process tasks, for example, k threads are started, where k may be the number of CPUs of the processing server, so as to optimize the performance of the processing server. The processing strategy is adopted because the storage of the table 2 needs to occupy a large amount of space, and the table 2 is read-only, so that a plurality of threads of each processing server can share the same table 2.
Each thread of each processing server can request the controller for the tasks to be executed, the obtained tasks are recorded, and after the task processing is finished, the processing results are reported to the controller.
Example 3:
based on the same inventive concept, according to the social object searching method provided in the foregoing embodiment of the present invention, correspondingly, embodiment 3 of the present invention further provides a social object searching apparatus, which is equivalent to the foregoing network server, and may also be integrated in the foregoing network server, and a schematic structural diagram of the social object searching apparatus is shown in fig. 5, and specifically includes:
the searchingunit 501 is configured to search the social objects according to the search condition to obtain each social object matched with the search condition;
an obtainingunit 502, configured to take each social object in the social objects as a current social object in sequence, obtain a social object that is concerned by the current social object, and a social object that is concerned by the current social object;
aweight determining unit 503, configured to determine a weight index value of each social object according to the social objects that the social objects respectively concern, and the social objects that the social objects respectively concern;
and thesorting unit 504 is configured to return the social objects in an order from high to low of the weight index value.
Further, the obtainingunit 502 is further configured to take each social object in the social objects as a current social object in sequence, determine the number of social objects that are concerned by the current social object, and determine the number of social objects that are concerned by the current social object;
theweight determining unit 503 is specifically configured to determine the weight index value of each social object according to the number of the social objects that are respectively concerned by each social object and the number of the social objects that are respectively concerned by each social object.
Further, theweight determining unit 503 is specifically configured to sequentially determine the weight index values of the social objects according to the following formula, and iteratively determine M times:
PR(i)=1-dN+d&Sigma;j&Element;in(i)pr(j)|out(j)|;
pr (i) a weight index value of the ith social object in the social objects determined by the current iteration, N is the number of the social objects, in (i) a set of social objects concerning the ith social object, out (j) a set of social objects concerning the jth social object, | out (j) the number of social objects concerning the jth social object, | pr (j) a weight index value of the jth social object determined by the previous iteration, and pr (j) a preset initial weight index value of the jth social object when the first iteration is determined, wherein the preset initial weight index values of the social objects are equal, and d is a preset attention transition probability;
and taking the result of the M times of iterative determination as the final weight index value of each social object.
Further, the above search device further includes:
atag determination unit 505, configured to determine an object tag matching the search condition; determining whether each social object is labeled with the object tag;
theweight determining unit 503 is specifically configured to sequentially determine the weight index values of the social objects for the object tags according to the following formula, and iteratively determine M times:
PR(i)=(1-d)ri+d&Sigma;j&Element;in(i)PR(j)|out(j)|;
PR (i) is the weight index value of the ith social object in the social objects determined by the iteration, and r is the weight index value when the ith social object is marked with the object tagiIs 1, r when the ith social object is not labeled with the object tagi0, in (i) is a set of social objects concerned with the ith social object, out (j) is a set of social objects concerned with the jth social object, | out (j) is the number of social objects concerned with the jth social object, pr (j) is a weight index value of the jth social object determined in the last iteration, and p is determined in the first iterationr (j) is a preset initial weight index value of a jth social object, the initial weight index value of the social object marked with the object tag in each social object is a preset first initial weight index value, the initial weight index value of the social object not marked with the object tag in each social object is a preset second initial weight index value, the first initial weight index value is greater than the second initial weight index value, and d is a preset attention transition probability;
and determining the result of M times of iteration as a weight index value of each social object aiming at the object label.
Further, the above search apparatus further includes:
atag determination unit 505, configured to determine an object tag matching the search condition; determining whether each social object is labeled with the object tag;
theweight determining unit 503 is specifically configured to sequentially determine the weight index values of the social objects for the object tags according to the following formula, and iteratively determine M times:
PR(i)=(1-d)pr(i)+d&Sigma;j&Element;in(i)pr(j)|out(j)|;
wherein pr (i) is a weight index value of an i-th social object in the social objects determined in the current iteration, in (i) is a set of social objects focusing on the i-th social object, out (j) is a set of social objects focusing on a j-th social object, out (j) is the number of social objects focusing on the j-th social object, pr (j) is a weight index value of a j-th social object determined in the last iteration, and pr (j) is a preset initial weight index value of the j-th social object in the first iteration, the initial weight index value of the social object marked with the object tag in each social object is a preset first initial weight index value, the initial weight index value of the social object not marked with the object tag in each social object is a preset second initial weight index value, and the first initial weight index value is greater than the second initial weight index value, d is a preset attention transfer probability;
and determining the result of M times of iteration as a weight index value of each social object aiming at the object label.
Further, the number M of times of iterative determination when theweight determination unit 503 performs iterative determination is a preset fixed value; or
M satisfies the following relation:
&Sigma;i=1N|PR(i)M-1-PR(i)M|<PRC;or,&Sigma;i=1N|PR(i)M-1-PR(i)M|&le;PRC;
wherein, PR (i)M-1Weight metric value of ith social object determined for M-1 iteration, PR (i)MWeight index value, PR, of the ith social object determined for the Mth iterationCIs a preset weight difference threshold.
The functions of the above units may correspond to the corresponding processing steps in the flows shown in fig. 1 to fig. 3, and are not described herein again.
In summary, the solution provided by the embodiment of the present invention includes: searching the social objects according to the searching conditions to obtain all the social objects matched with the searching conditions; sequentially taking each social contact object in the social contact objects as a current social contact object, acquiring a social contact object concerned by the current social contact object and a social contact object concerned by the current social contact object; determining the weight index value of each social object according to the social objects respectively concerned by each social object and the social objects respectively concerned by each social object; and returning each social object according to the sequence of the weight index values from high to low. By adopting the scheme provided by the embodiment of the invention, the consumption of processing resources at the side of the social network is reduced when the social objects are searched, and the consumption of network bandwidth resources is reduced.
The search device provided by the embodiment of the application can be realized by a computer program. It should be understood by those skilled in the art that the above-mentioned division of the module is only one of many divisions of the module, and if the division into other modules or no division into modules is performed, it is within the scope of the present application as long as the searching apparatus has the above-mentioned functions.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

PR (i) is the weight index value of the ith social object in the social objects determined by the iteration, and r is the weight index value when the ith social object is marked with the object tagiIs 1, r when the ith social object is not labeled with the object tagi0, in (i) is a set of social objects concerning the ith social object, out (j) is a set of social objects concerning the jth social object, | out (j) is the number of social objects concerning the jth social object, | pr (j) is a weight index value of the jth social object determined in the last iteration, and pr (j) is a preset initial weight index value of the jth social object at the time of the first iteration determination, the initial weight index value of the social object marked with the object label in each social object is a preset first initial weight index value, the initial weight index value of the social object which is not marked with the object label in the social objects is a preset second initial weight index value, the first initial weight index value is greater than the second initial weight index value, and d is a preset attention transition probability;
pr (i) is a weight index value of the ith social object in the social objects determined in this iteration, in (i) is a set of social objects focusing on the ith social object, out (j) is a set of social objects focusing on the jth social object, | out (j) | is the number of social objects focusing on the jth social object, pr (j) is a weight index value of the jth social object determined in the last iteration, and pr (j) is a preset initial weight index value of the jth social object in the first iteration, the initial weight index value of the social object marked with the object tag in each social object is a preset first initial weight index value, and the initial weight index value of the social object not marked with the object tag in each social object is a preset second initial weight index value, the first initial weight index value is greater than the second initial weight index value, and d is a preset attention transition probability;
PR (i) is the weight index value of the ith social object in the social objects determined by the iteration, and r is the weight index value when the ith social object is marked with the object tagiIs 1, r when the ith social object is not labeled with the object tagi0, in (i) is a set of social objects concerning the ith social object, out (j) is a set of social objects concerning the jth social object, | out (j) | is the number of social objects concerning the jth social object, pr (j) is a weight index value of the jth social object determined in the last iteration, and pr (j) is a preset initial weight index value of the jth social object when the first iteration is determined, and the initial weight index value of the social object marked with the object label in each social object is a preset initial weight index valueSetting a first initial weight index value, wherein the initial weight index value of the social object which is not marked with the object label in each social object is a preset second initial weight index value, the first initial weight index value is greater than the second initial weight index value, and d is a preset attention transfer probability;
pr (i) is a weight index value of the ith social object in the social objects determined in this iteration, in (i) is a set of social objects focusing on the ith social object, out (j) is a set of social objects focusing on the jth social object, | out (j) | is the number of social objects focusing on the jth social object, pr (j) is a weight index value of the jth social object determined in the last iteration, and pr (j) is a preset initial weight index value of the jth social object in the first iteration, the initial weight index value of the social object marked with the object tag in each social object is a preset first initial weight index value, and the initial weight index value of the social object not marked with the object tag in each social object is a preset second initial weight index value, the first initial weight index value is greater than the second initial weight index value, and d is a preset attention transition probability;
CN2012105789132A2012-12-272012-12-27Method and device for searching social contact objectsPendingCN103020276A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2012105789132ACN103020276A (en)2012-12-272012-12-27Method and device for searching social contact objects

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2012105789132ACN103020276A (en)2012-12-272012-12-27Method and device for searching social contact objects

Publications (1)

Publication NumberPublication Date
CN103020276Atrue CN103020276A (en)2013-04-03

Family

ID=47968879

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2012105789132APendingCN103020276A (en)2012-12-272012-12-27Method and device for searching social contact objects

Country Status (1)

CountryLink
CN (1)CN103020276A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2015051657A1 (en)*2013-10-122015-04-16腾讯科技(深圳)有限公司User search method and device
CN109493123A (en)*2018-10-232019-03-19佛山欧神诺云商科技有限公司A kind of Method of Commodity Recommendation and device based on big data

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101025737A (en)*2006-02-222007-08-29王东 Aggregation display method and related system of same-source information search engine based on degree of attention
CN101321190A (en)*2008-07-042008-12-10清华大学 A recommendation method and recommendation system in a heterogeneous network
CN102508918A (en)*2011-11-182012-06-20北京谷安天下科技有限公司Search method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101025737A (en)*2006-02-222007-08-29王东 Aggregation display method and related system of same-source information search engine based on degree of attention
CN101321190A (en)*2008-07-042008-12-10清华大学 A recommendation method and recommendation system in a heterogeneous network
CN102508918A (en)*2011-11-182012-06-20北京谷安天下科技有限公司Search method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2015051657A1 (en)*2013-10-122015-04-16腾讯科技(深圳)有限公司User search method and device
CN104572654A (en)*2013-10-122015-04-29腾讯科技(深圳)有限公司User searching method and device
CN109493123A (en)*2018-10-232019-03-19佛山欧神诺云商科技有限公司A kind of Method of Commodity Recommendation and device based on big data

Similar Documents

PublicationPublication DateTitle
CN109902708B (en)Recommendation model training method and related device
US10534635B2 (en)Personal digital assistant
US10572841B2 (en)Actions for an information technology case
US20150213065A1 (en)System and Methods for Cleansing Automated Robotic Traffic From Sets of Usage Logs
US20160034466A1 (en)Personalized search using searcher features
EP2778970A1 (en)Facet group ranking for search results
CN110008397B (en) A recommended model training method and device
US20200074509A1 (en)Business data promotion method, device, terminal and computer-readable storage medium
CN109033101A (en)Label recommendation method and device
CN115827841A (en)Searching method and device
CN110008396B (en)Object information pushing method, device, equipment and computer readable storage medium
CN118349812A (en)Model determination method, apparatus, device, storage medium, and program product
CN103020276A (en)Method and device for searching social contact objects
US10817496B2 (en)Forum inspection based on correlation rating of response poster
CN108537570B (en)Information exposure method and device
CN112446812B (en)Automatic push method and terminal for government affair information based on blockchain
CN112560938B (en)Model training method and device and computer equipment
CN113744066A (en)Information pushing method and device
US20160253423A1 (en)Data processing system including a search engine
CN112085307B (en) Information index evaluation method and device, information delivery system, and storage medium
CN112199380B (en)Account information modification method, device, electronic equipment and storage medium
CN113836144B (en)Method and device for recommending database standard table based on field
CN109582863A (en)Recommendation method and server
Singh et al.Sentiment Analysis of Social Media Reviews using QOS Parameterization
Reji et al.System for Open Data Catalogues

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20130403


[8]ページ先頭

©2009-2025 Movatter.jp