Search-based object display method, relationship data determination method and device
By using a search-based object display method in an instant communication system, combined with the relational data of the target organizational structure, the problem of low search sorting accuracy in the prior art is solved, and more accurate object sorting and display is achieved.
Patent Information
- Application Number
- CN202111539965.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2041-12-15
AI Technical Summary
In the prior art, the search sorting method based on character matching degree is too simple, resulting in low accuracy of object sorting and cannot meet the search needs of users when the number of users increases and the business needs are complex.
By obtaining the sorting reference information of the multiple target objects corresponding to the search keyword, the sorting is performed based on the relational data of the predetermined target organizational structure. The method includes responsive to a search request, obtaining a candidate object and its recall reference information, combining the search mode data and the search mode of the candidate object, determining a target object, and obtaining a variety of reference information from the predetermined relational data to determine the sorting reference information.
It significantly improves the accuracy of object sorting based on search display, can more accurately predict the user's search purpose and prioritize the display of objects that meet the search purpose.
Smart Images

Figure CN114238442B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network technology, and in particular to a search-based object display method, a relationship data determination method, a device, a server, and a storage medium. Background Art
[0002] Instant Messenger (IM) systems can provide users with real-time communication, data transmission and other services, which greatly facilitates people's work and life. Search is one of the important functions provided by IM systems. During the search process, it will search based on the search keywords entered by the user and follow certain rules, and return the searched objects to the user.
[0003] At present, in the related art, a search keyword input by a user is matched with characters of multiple objects, and after the multiple objects are sorted according to the degree of character matching, the sorted multiple objects are displayed to the user.
[0004] However, with the continuous growth in the number of users and the continuous improvement in the complexity of business needs, the search sorting method based on character matching and search keyword matching in the above technical solution is too simple, resulting in low accuracy in the sorting of displayed objects. Summary of the invention
[0005] The present disclosure provides a search-based object display method, a relationship data determination method, a device, a server, and a storage medium, which can effectively improve the accuracy of the object sorting based on the search display. The technical solution of the present disclosure is as follows:
[0006] According to a first aspect of an embodiment of the present disclosure, a search-based object display method is provided, the method comprising:
[0007] In response to a search request for a first object, acquiring a plurality of target objects corresponding to the search keyword;
[0008] Acquire sorting reference information of the plurality of target objects, where the sorting reference information is determined based on relationship data of a predetermined target organizational structure;
[0009] The multiple target objects are sorted based on the sorting reference information of the multiple target objects, and the sorted multiple target objects are sent to the first object.
[0010] In a possible implementation manner, in response to the search request for the first object, acquiring multiple target objects corresponding to the search keyword includes:
[0011] In response to a search request for the first object, determining a plurality of candidate objects and first recall reference information of the plurality of candidate objects based on the search keyword, the first recall reference information indicating a similarity between the candidate object and the search keyword;
[0012] Based on the search pattern data of the first object, the search patterns corresponding to the multiple candidate objects and the first recall reference information of the multiple candidate objects, the multiple target objects are determined from the multiple candidate objects, and the search pattern data is used to represent the probability of the first object using various search patterns.
[0013] In a possible implementation manner, the determining the multiple target objects from the multiple candidate objects based on the search pattern data of the first object, the search patterns corresponding to the multiple candidate objects, and the first recall reference information of the multiple candidate objects includes:
[0014] Determining first weights of the respective search patterns based on the search pattern data of the first object;
[0015] Based on the first weight of the search mode corresponding to each of the candidate objects and the first recall reference information of each of the candidate objects, second recall reference information is obtained;
[0016] The candidate object whose second recalled reference information is ranked in the front target digit is determined as the target object.
[0017] In a possible implementation manner, obtaining the sorting reference information of the multiple target objects includes at least one of the following:
[0018] Acquire first reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the first reference information of the target object, wherein the first reference information indicates the closeness of the relationship between the department to which the first object belongs and the department to which the target object belongs;
[0019] Acquire second reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the second reference information of the target object, wherein the second reference information indicates the closeness of the management relationship between the first object and the target object;
[0020] The third reference information of the target object is obtained from predetermined relationship data, and the sorting reference information of the target object is determined based on the third reference information of the target object, wherein the third reference information indicates the closeness of the cooperation relationship between the first object and the target object.
[0021] In a possible implementation manner, obtaining the sorting reference information of the multiple target objects includes:
[0022] The fourth reference information of the target object is obtained from the predetermined relationship data, and the sorting reference information of the target object is determined based on the fourth reference information of the target object, where the fourth reference information indicates the preference of the first object for the department to which the target object belongs.
[0023] In a possible implementation manner, obtaining the sorting reference information of the multiple target objects includes:
[0024] The fifth reference information of the target object is obtained from the predetermined relationship data, and the sorting reference information of the target object is determined based on the fifth reference information of the target object, where the fifth reference information indicates the social frequency between the first object and the target object.
[0025] In a possible implementation manner, obtaining the sorting reference information of the multiple target objects includes:
[0026] Acquire sixth reference information of the target object from predetermined relationship data, and determine ranking reference information of the target object based on the sixth reference information of the target object, wherein the sixth reference information indicates the social initiative degree of the target object to the first object.
[0027] In a possible implementation manner, obtaining the sorting reference information of the multiple target objects includes:
[0028] The seventh reference information of the target object is obtained from the predetermined relationship data, and the ranking reference information of the target object is determined based on the seventh reference information of the target object, wherein the seventh reference information indicates the degree of social initiative of the first object to the target object.
[0029] In a possible implementation manner, obtaining the sorting reference information of the multiple target objects includes:
[0030] Determine sorting reference information of the target object based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information, and the seventh reference information of the target object;
[0031] Among them, the first reference information indicates the closeness of the relationship between the department to which the first object belongs and the department to which the target object belongs, the second reference information indicates the closeness of the management relationship between the first object and the target object, the third reference information indicates the closeness of the cooperative relationship between the first object and the target object, the fourth reference information indicates the first object's preference for the department to which the target object belongs, the fifth reference information indicates the frequency of social interaction between the first object and the target object, the sixth reference information indicates the degree of social initiative of the target object towards the first object, and the seventh reference information indicates the degree of social initiative of the first object towards the target object.
[0032] In a possible implementation manner, determining the sorting reference information of the target object based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information, and the seventh reference information of the target object includes:
[0033] In response to a search request of the first object based on a target search option, adjusting weights of a plurality of reference information of the target object so that a weight of a target reference information among the plurality of reference information increases, the target reference information corresponding to the target search option;
[0034] Based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information and the seventh reference information of the target object and the weights of the multiple reference information, the sorting reference information of the target object is determined.
[0035] According to a second aspect of an embodiment of the present disclosure, a method for determining relationship data is provided, the method comprising:
[0036] Obtaining object data of a target organizational structure, where the object data is used to represent identities of multiple objects in the target organizational structure;
[0037] Obtaining historical social behaviors of the multiple objects;
[0038] Based on the object data and historical social behaviors of the multiple objects, relationship data of the target organizational structure is determined, where the relationship data includes social relationships between the multiple objects.
[0039] In a possible implementation manner, the relationship data of the target organizational structure determined based on the object data and the historical social behaviors of the multiple objects includes at least one of the following:
[0040] Based on the department belonging data of any two objects in the object data, determine first reference information between the two objects, the first reference information is used to indicate the closeness of the relationship between the departments to which the two objects belong, and the department belonging data indicates the department to which the objects belong;
[0041] Based on the level data of the two objects in the object data, obtaining second reference information between the two objects, the second reference information being used to indicate the closeness of the management relationship between the two objects;
[0042] Based on the department affiliation data of the two objects in the object data and the relationship between the departments, third reference information between the two objects is determined, and the third reference information represents the closeness of the cooperation relationship between the two objects.
[0043] In a possible implementation manner, determining the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects includes:
[0044] Based on the historical social behaviors of the multiple objects, determining multiple second objects of a first object among the multiple objects, the multiple second objects belong to the same department, and the historical social behaviors between the second objects and the first object meet the target condition;
[0045] If the number of the plurality of second objects is greater than the target number, the departments to which the plurality of second objects belong are determined as the target departments of the first object, and relationship data between the first object and the target department is obtained.
[0046] In a possible implementation, if the number of the plurality of second objects is greater than the target number, the department to which the plurality of second objects belong is determined as the target department of the first object, and after acquiring the relationship data between the first object and the target department, the method further includes:
[0047] Based on the relationship data between the first object and the target department, fourth reference information between the first object and a plurality of objects in the target department is determined, and the fourth reference information indicates the preference degree of the first object to the target department.
[0048] In a possible implementation manner, determining the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects includes:
[0049] Based on the two-way social behavior between any two objects among the multiple objects, fifth reference information between the two objects is determined, where the fifth reference information indicates the frequency of social interaction between the two objects.
[0050] In a possible implementation manner, determining the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects includes:
[0051] Based on the one-way social behavior between any two objects among the multiple objects, sixth reference information of the two objects is determined, where the sixth reference information indicates a degree of social initiative of one of the two objects towards the other object.
[0052] In a possible implementation manner, determining the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects includes:
[0053] Based on the search and click behavior of one of any two objects towards the other object, seventh reference information of the two objects is determined, where the seventh reference information indicates a degree of social initiative of one of the two objects towards the other object.
[0054] According to a third aspect of an embodiment of the present disclosure, there is provided a search-based object display device, the device comprising:
[0055] a target object acquisition unit, configured to execute a search request in response to the first object and acquire a plurality of target objects corresponding to the search keyword;
[0056] A reference information acquisition unit is configured to acquire sorting reference information of the plurality of target objects, the sorting reference information being determined based on relationship data of a predetermined target organizational structure;
[0057] The sorting unit is configured to sort the multiple target objects based on the sorting reference information of the multiple target objects, and send the sorted multiple target objects to the first object.
[0058] In a possible implementation manner, the target object acquisition unit includes:
[0059] A recall subunit is configured to execute, in response to a search request for the first object, determine a plurality of candidate objects and first recall reference information of the plurality of candidate objects based on the search keyword, the first recall reference information indicating a similarity between the candidate object and the search keyword;
[0060] The target object determination subunit is configured to execute the search pattern data of the first object, the search patterns corresponding to the multiple candidate objects and the first recall reference information of the multiple candidate objects, and determine the multiple target objects from the multiple candidate objects. The search pattern data is used to represent the probability of the first object using various search patterns.
[0061] In a possible implementation manner, the target object determination subunit is configured to execute:
[0062] Determining first weights of the respective search patterns based on the search pattern data of the first object;
[0063] Based on the first weight of the search mode corresponding to each of the candidate objects and the first recall reference information of each of the candidate objects, second recall reference information is obtained;
[0064] The candidate object whose second recalled reference information is ranked in the front target digit is determined as the target object.
[0065] In a possible implementation manner, the reference information acquisition unit includes at least one of the following:
[0066] A first reference subunit is configured to obtain first reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the first reference information of the target object, wherein the first reference information indicates the closeness of the relationship between the department to which the first object belongs and the department to which the target object belongs;
[0067] A second reference subunit is configured to obtain second reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the second reference information of the target object, wherein the second reference information indicates a closeness of a management relationship between the first object and the target object;
[0068] The third reference subunit is configured to obtain third reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the third reference information of the target object, wherein the third reference information indicates the closeness of the cooperative relationship between the first object and the target object.
[0069] In a possible implementation manner, the reference information acquisition unit includes:
[0070] The fourth reference subunit is configured to obtain fourth reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the fourth reference information of the target object, wherein the fourth reference information indicates the first object's preference for the department to which the target object belongs.
[0071] In a possible implementation manner, the reference information acquisition unit includes:
[0072] The fifth reference subunit is configured to obtain fifth reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the fifth reference information of the target object, wherein the fifth reference information represents the social frequency between the first object and the target object.
[0073] In a possible implementation manner, the reference information acquisition unit includes:
[0074] The sixth reference subunit is configured to obtain sixth reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the sixth reference information of the target object, wherein the sixth reference information indicates the degree of social initiative of the target object towards the first object.
[0075] In a possible implementation manner, the reference information acquisition unit includes:
[0076] The seventh reference subunit is configured to obtain seventh reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the seventh reference information of the target object, wherein the seventh reference information indicates the degree of social initiative of the first object towards the target object.
[0077] In a possible implementation manner, the reference information acquisition unit includes:
[0078] a sorting reference subunit, configured to determine sorting reference information of the target object based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information and the seventh reference information of the target object;
[0079] Among them, the first reference information indicates the closeness of the relationship between the department to which the first object belongs and the department to which the target object belongs, the second reference information indicates the closeness of the management relationship between the first object and the target object, the third reference information indicates the closeness of the cooperative relationship between the first object and the target object, the fourth reference information indicates the first object's preference for the department to which the target object belongs, the fifth reference information indicates the frequency of social interaction between the first object and the target object, the sixth reference information indicates the degree of social initiative of the target object towards the first object, and the seventh reference information indicates the degree of social initiative of the first object towards the target object.
[0080] In one possible implementation, the sorting reference subunit is configured to execute:
[0081] In response to a search request of the first object based on a target search option, adjusting weights of a plurality of reference information of the target object so that a weight of a target reference information among the plurality of reference information increases, the target reference information corresponding to the target search option;
[0082] Based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information and the seventh reference information of the target object and the weights of the multiple reference information, the sorting reference information of the target object is determined.
[0083] According to a fourth aspect of an embodiment of the present disclosure, a device for determining relationship data is provided, the device comprising:
[0084] An object data acquisition unit is configured to acquire object data of a target organizational structure, where the object data is used to represent identities of multiple objects in the target organizational structure;
[0085] A social behavior acquisition unit, configured to acquire historical social behaviors of the multiple objects;
[0086] The relationship data determining unit is configured to determine the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects, wherein the relationship data includes the social relationships between the multiple objects.
[0087] In a possible implementation manner, the relationship data determination unit includes at least one of the following:
[0088] A first determining subunit is configured to determine first reference information between any two objects in the object data based on the department belonging data of the two objects, the first reference information is used to indicate the closeness of the relationship between the departments to which the two objects belong, and the department belonging data indicates the department to which the objects belong;
[0089] A second determining subunit is configured to acquire second reference information between the two objects based on the level data of the two objects in the object data, the second reference information being used to indicate the closeness of the management relationship between the two objects;
[0090] The third determination subunit is configured to determine third reference information between the two objects based on the department affiliation data of the two objects in the object data and the relationship between the departments, and the third reference information indicates the closeness of the cooperation relationship between the two objects.
[0091] In a possible implementation manner, the relationship data determination unit is configured to execute:
[0092] Based on the historical social behaviors of the multiple objects, determining multiple second objects of a first object among the multiple objects, the multiple second objects belong to the same department, and the historical social behaviors between the second objects and the first object meet the target condition;
[0093] If the number of the plurality of second objects is greater than the target number, the departments to which the plurality of second objects belong are determined as the target departments of the first object, and relationship data between the first object and the target department is obtained.
[0094] In a possible implementation manner, the relationship data determination unit further includes:
[0095] The fourth determination subunit is configured to determine fourth reference information between the first object and multiple objects in the target department based on the relationship data between the first object and the target department, and the fourth reference information represents the preference degree of the first object to the target department.
[0096] In a possible implementation manner, the relationship data determination unit includes:
[0097] The fifth determining subunit is configured to determine fifth reference information between any two objects among the multiple objects based on the two-way social behavior between the two objects, where the fifth reference information indicates the social frequency between the two objects.
[0098] In a possible implementation manner, the relationship data determination unit includes:
[0099] The sixth determining subunit is configured to determine sixth reference information of any two objects among the multiple objects based on the unidirectional social behavior between the two objects, where the sixth reference information indicates the degree of social initiative of one of the two objects to the other object.
[0100] In a possible implementation manner, the relationship data determination unit includes:
[0101] The seventh determination subunit is configured to determine seventh reference information of any two objects based on the search and click behavior of one object toward the other object, wherein the seventh reference information indicates the degree of social initiative of one object toward the other object.
[0102] According to a fifth aspect of an embodiment of the present disclosure, a server is provided, the server comprising:
[0103] one or more processors;
[0104] A memory for storing program codes executable by the processor;
[0105] The processor is configured to execute the program code to implement the above-mentioned search-based object display method or the above-mentioned relationship data determination method.
[0106] According to the sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, which includes: when the program code in the computer-readable storage medium is executed by a processor of a server, the server is enabled to execute the above-mentioned search-based object display method or the above-mentioned relationship data determination method.
[0107] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the above-mentioned search-based object display method or the above-mentioned relationship data determination method.
[0108] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0109] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0110] Figure 1 is a schematic diagram of an implementation environment of a search-based object display method according to an exemplary embodiment;
[0111] Figure 2 is a flow chart showing a search-based object display method according to an exemplary embodiment;
[0112] Figure 3 is a flow chart showing a method for determining relationship data according to an exemplary embodiment;
[0113] Figure 4 is a schematic diagram showing a historical social behavior record according to an exemplary embodiment;
[0114] Figure 5 is a schematic diagram showing a relationship diagram according to an exemplary embodiment;
[0115] Figure 6 is a flow chart showing a search-based object display method according to an exemplary embodiment;
[0116] Figure 7 is a schematic diagram showing a historical search record according to an exemplary embodiment;
[0117] Figure 8 is a schematic diagram showing a target object according to an exemplary embodiment;
[0118] Fig. 9 is a schematic diagram showing a target object under a target search option according to an exemplary embodiment;
[0119] Fig.10 is a block diagram showing a search-based object display device according to an exemplary embodiment;
[0120] Fig.11 is a block diagram of a device for determining relationship data according to an exemplary embodiment;
[0121] Fig.12 It is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION
[0122] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0123] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0124] The data involved in the present disclosure may be data authorized by the user or fully authorized by all parties.
[0125] Figure 1 is a schematic diagram of an implementation environment of a search-based object display method provided by an embodiment of the present disclosure, see Figure 1 , the implementation environment includes: a terminal 101 and a server 102.
[0126] Terminal 101 may be at least one of a smart phone, a smart watch, a desktop computer, a laptop, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop computer. Terminal 101 has a communication function and can access the Internet. Terminal 101 may generally refer to one of multiple terminals. This embodiment is only illustrated by terminal 101. Those skilled in the art will appreciate that the number of the above terminals may be more or less. Terminal 101 may run various applications that provide search functions for users, such as IM applications, social applications, and the like. For example, any organization, such as an IM application used by employees within an enterprise for collaborative office work, supports grouping users according to the enterprise organizational structure. Based on this, the user information of each user includes the department information and job grade information in the enterprise, and this information constructs the personnel relationship between users. When users with personnel relationships want to conduct instant messaging, they can use the search function provided by the application to search and click on other users.
[0127] The server 102 can be an independent physical server, or a server cluster or distributed file system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The server 102 and the terminal 101 can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present disclosure. Optionally, the number of the above-mentioned servers 102 can be more or less, which is not limited in the embodiments of the present disclosure. Of course, the server 102 can also include other functional servers to provide more comprehensive and diversified services.
[0128] After introducing the implementation environment of the embodiment of the present disclosure, the application scenario of the embodiment of the present disclosure will be introduced in combination with the above implementation environment. It should be noted that in the following description, the terminal is the above terminal 101, and the server is the above server 102.
[0129] In the instant messaging scenario, the first object is the user of the IM application. Based on the needs of instant messaging, the IM user enters a search keyword to search for other IM users. Among them, the IM user enters the search keyword on the terminal 101, thereby triggering the terminal 101 to initiate a search request to the server 102. Through a search-based object display method provided by an embodiment of the present disclosure, the server 102 responds to the search request, obtains multiple other IM users corresponding to the search keyword, and after sorting the obtained multiple other IM users, sends the sorted multiple other IM users to the terminal 101. The terminal 101 displays the received multiple other IM users according to the sorting. Of course, with the development of science and technology, the search-based object display method provided by the embodiment of the present disclosure can also be applied in other scenarios, and the embodiment of the present disclosure does not limit this.
[0130] After introducing the implementation environment and application scenarios of the embodiment of the present disclosure, the search-based object display method provided by the embodiment of the present disclosure is described below. Figure 2 is a flowchart of a search-based object display method according to an exemplary embodiment. Figure 2 As shown, the method is applied in a server and includes the following steps:
[0131] In step 201, the server obtains a plurality of target objects corresponding to the search keyword in response to a search request for a first object.
[0132] Among them, the search keyword represents the search purpose of the first object, that is, the search keyword is the key information input by the first object based on the search request. For example, in the scenario of instant messaging, if the first object searches for a communication object for instant messaging, the input search keyword can be: the Chinese user name of the communication object, the English user name of the communication object, or the pinyin abbreviation of the Chinese user name of the communication object.
[0133] Among them, the target object corresponds to the search keyword, that is, the target object meets the key information input by the first object based on the search request. For example, in the scenario of instant messaging, if the first object wants to search for a communication object with the Chinese user name "Ma Chenming" and the input search keyword is the pinyin abbreviation: "mcm", then the multiple target objects include multiple communication objects with the pinyin abbreviation "mcm", such as "Ming Chengmei", "Ma Chengming", etc.
[0134] In step 202, the server obtains the sorting reference information of the multiple target objects, and the sorting reference information is determined based on the relationship data of a pre-determined target organizational structure.
[0135] In some embodiments, the relationship data includes the relationship between the first object and the multiple target objects in the target organizational structure. For example, social relationships. Among them, the relationship data is determined based on at least one of the following: the historical social behaviors between the first object and each target object; the object data of the first object and each target object in the target organizational structure.
[0136] In some embodiments, the historical social behaviors include multiple types: one-way social behavior, two-way social behavior, search click behavior. Among them, the one-way social behavior refers to: the behavior of sending a message. For example, the first object sends a message to the target object, or the target object sends a message to the first object; the two-way social behavior refers to: on the basis of the message sender sending a message, the message sender receives a message sent by the message recipient. For example, the first object sends a message to the target object and receives a message sent by the target object to the first object, or the target object sends a message to the first object and receives a message sent by the first object to the target object; the search click behavior refers to: the first object initiates a search and finally clicks on the target object.
[0137] In some embodiments, the target organizational structure refers to the organizational structure to which the first object belongs. For example, in an IM scenario, the organizational structure of each business department of the enterprise where the first object and each target object are located. In some embodiments, the departmental organizational structure is embodied in a tree structure from high-level departments to low-level departments, for example, "Company Name-First-level Department 1-Second-level Department 1-Third-level Department 2-Project Group 1", or "Company Name-First-level Department 1-Second-level Department 1-Third-level Department 1-Project Group 1".
[0138] In some embodiments, the object data of the first object and each target object in the target organizational structure is used to represent the identity of the first object and each target object in the target organizational structure. Further, based on the identity of each object, the relationship between the first object and each target object in the target organizational structure can be determined. For example, based on the department and level of the object in the object data, the identity of the first object is determined to be "Department 1, employee", and the identity of the target object is determined to be "Department 1, director", then it can be determined that the first object and the target object are in a superior-subordinate relationship (same department, different level).
[0139] In some embodiments, based on the relationship data, the sorting reference information of the target object can be determined. The sorting reference information of the target object indicates the closeness of the relationship between the first object and the target object, for example, the closeness of the social relationship. The sorting reference information is used to predict the search purpose of the first object from the perspective of the relationship, that is, the closeness of the relationship is used to measure the possibility that the purpose of the first object search is the target object, that is, the size of the sorting reference information indicates the closeness of the relationship between the target object and the first object, and therefore, the sorting reference information can be used as a reference for sorting the multiple target objects.
[0140] In step 203, the server sorts the multiple target objects based on the sorting reference information of the multiple target objects, and sends the sorted multiple target objects to the terminal where the first object is located.
[0141] The multiple target objects are sorted based on the sorting reference information of the multiple target objects, that is, according to the closeness of the relationship. The higher the closeness of the relationship, the higher the possibility that the target object is the search target of the first object, and the higher the sorting position of the target object.
[0142] In the embodiment of the present disclosure, after sorting the multiple target objects from high to low according to the possibility that they are the search target of the first object, the multiple target objects are sent to the terminal where the first object is located. After receiving the sorted multiple target objects, the terminal where the first object is located can arrange and display the multiple target objects according to the sort of the multiple target objects, thereby achieving the purpose of preferentially displaying the target object that best meets the search target of the first object to the first object.
[0143] Through the technical solution provided by the embodiments of the present invention, based on the relational data that can represent the closeness of the relationship between objects, sorting reference information is provided for the search sorting process, the search purpose is accurately predicted from the perspective of the relationship, and then the search sorting results that meet the search purpose are displayed for the object initiating the search, thereby greatly improving the accuracy of the object sorting displayed based on the search.
[0144] Above Figure 2 The basic flow of the search-based object display method provided by the present disclosure is shown, and the process of determining the relationship data obtained in the above technical solution is described in detail below. Figure 3 is a flowchart of a method for determining relationship data according to an exemplary embodiment. Figure 3 , executed by the server, the method comprising:
[0145] In step 301, the server obtains object data of a target organizational structure, where the object data is used to represent identities of multiple objects in the target organizational structure.
[0146] The definition of the target organizational structure in this step refers to step 202 .
[0147] In some embodiments, the object data of the object includes the department, position and level of the object in the target organizational structure, which can be used to determine the identity of the object in the target organizational structure. In some embodiments, the object data of the object is stored in the form of an object tag, and the identity of the object in the target organizational structure can be determined based on the object tag and the tag attributes of the object tag.
[0148] In some embodiments, the server can obtain the object data of the object based on the object identification of the object, for example, based on the identification of the object, read the object tag and tag attributes of the object. The object tag is used to describe the attributes of the object under a certain type or the social characteristics in the social relationship network, for example, the object tag is "age", "department" or "rank". For example, based on the identification of object A as "A", the object tag of object A is read, where the tag type is: "department" and the tag attribute is "1", which means that the identity of object A in the target organizational structure is "employee of department 1".
[0149] It should be noted that the above-mentioned object tag-based method is only one implementation method of obtaining the object data of the object, and the present application does not limit the method of obtaining the object data of the object.
[0150] In step 302, the server obtains historical social behaviors of the multiple objects.
[0151] The definition of the historical social behavior refers to step 202 and will not be elaborated here.
[0152] In the embodiment of the present disclosure, the historical social behaviors of the object are stored in the form of historical social behavior records. The server can obtain the historical social behaviors of the object from the stored historical social behavior records of the object.
[0153] In order to facilitate understanding of the above process of obtaining the historical social behavior of an object from the historical social behavior record, the present disclosure embodiment provides a schematic diagram of the historical social behavior record, see Figure 4 , the historical social behavior record of the object records the behavior targets, behavior occurrence times, behavior types, and other related information of the object's multiple historical social behaviors. At the same time, the historical social record stores the identifier of the object and the identifier of the behavior target object of the object. For example, object A sends a message to object B at time t1, and object B sends a message to object A at time t2. The time interval between time t1 and time t2 is very short. From time t1 to time t2, a two-way social behavior occurs between object A and object B, and the duration of the behavior is t2-t1.
[0154] The purpose of obtaining the historical social behavior of the object is achieved by reading the recorded relevant information from the historical social record of the object. In some embodiments, based on the identification of the object, the corresponding historical social behavior record can be read to obtain the required historical social behavior of the object.
[0155] In step 303, the server determines the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects, where the relationship data includes the social relationships between the multiple objects.
[0156] The object data is used to represent the identities of multiple objects in the target organizational structure, and based on the identities of the multiple objects, the relationships of the multiple objects in the target organizational structure can be determined. In some embodiments, the relationships include social relationships such as superior-subordinate relationships and human resources cooperation relationships.
[0157] In some embodiments, the relationship data includes multiple reference information, and the multiple reference information represents the social relationship between the multiple objects from different perspectives. Taking object 1 and object 2 among the multiple objects as an example, based on the object data and historical social behaviors of object 1 and object 2, the process of determining the reference information in the relationship data includes at least one of the following:
[0158] (1) The object data includes department belonging data, and the department belonging data indicates the department to which the object belongs. Based on the department to which the object 1 belongs and the department to which the object 2 belongs, first reference information can be determined. The first reference information indicates the closeness of the relationship between the departments to which the two objects belong.
[0159] In some embodiments, the department affiliation data includes department information of the department to which object 1 belongs and department information of the department to which object 2 belongs. The department information includes the department to which the object belongs and the superior departments of the department. For example, the subordinate departments of Department 1 in Enterprise 1 include Department 1-1, Department 1-2, and Department 1-3. If Object 1 belongs to Department 1-1, the department information of Object 1 is: "Enterprise 1 - Department 1 - Department 1-1".
[0160] In some embodiments, the department affiliation data is determined by obtaining the object tags of the first object and the target object. The definition of the object tag refers to step 301. In some embodiments, objects with the same attributes or social characteristics are provided with the same object tag, so that objects are connected through the object tag. For example, the tag type in the object tag of object A is: "department" and the tag attribute is "1", which means that object A is an employee of department 1. The tag type in the object tag of object B is: "department" and the tag attribute is "1", which means that object B is also an employee of department 1. Then, through the object tags of object A and object B, it can be determined that object A and object B belong to the same department, that is, the personnel relationship between object A and object B is that they belong to the same department. Based on the determined department affiliation data, the first reference information is obtained by calculating the similarity between the department to which object 1 belongs and the department to which object 2 belongs. For example, the jaccard coefficient is used for similarity calculation to determine the first reference information, and the calculation process is shown in formula (1).
[0161] Among them, score1 is the first reference information; set A represents the department information of object 1, and set B represents the department information of object 2; A∩B represents the common part of set A and set B, that is, the overlapping part of the department information of object 1 and object 2; A∪B represents all elements of set A and set B, that is, the sum of the department information of object 1 and object 2.
[0162]
[0163] (2) The object data includes level data of the object, and the level data can be used to determine second reference information, which represents the closeness of the management relationship between the two objects.
[0164] In some embodiments, the level data includes the rank information of object 1 and the rank information of object 2, which can be used to determine whether there is a superior-subordinate relationship between object 1 and object 2. The rank information represents the position and level of the object in the target organizational structure. For example, if the rank information of object 1 is "minister" and the rank information of object 2 is "employee", it can be determined that object 1 is the superior of object 2, that is, there is a superior-subordinate relationship between object 1 and object 2 (a management relationship between objects).
[0165] In some embodiments, based on the object labels of object 1 and object 2, the level data is determined to determine whether there is a superior-subordinate relationship. The definition of the object label refers to step 301. In some embodiments, based on the label attribute under the object label with the label type of "position", the position information of the object can be obtained by querying the mapping relationship table between the pre-set label attribute and the position information. For example, if the label attribute is "1", the corresponding position information is employee, and if the label attribute is "2", the corresponding position information is minister. Optionally, based on the label attribute, the superior-subordinate relationship between objects can be further determined. For example, the label attribute of the label type corresponding to the position is expressed by a numerical value. The larger the numerical value, the higher the position. In this example, when the numerical value of the "position" label attribute of object A is greater than the numerical value of the "position" label attribute of object B, it can be determined that object A is the superior of object B, that is, the personnel relationship between object A and object B is a superior-subordinate relationship. For another example, the label attribute of the label type corresponding to the job level is represented by the job level identifier. In this example, when the label attribute of the "job level" of object A is "DH", the job level of object A is the department head. When the label attribute of the "job level" of object B is "TL", the job level of object B is the team leader. In this example, a superior-subordinate relationship mapping table is pre-configured to reflect the superior-subordinate relationship between the label attributes. For example, "DH" is the superior of "TL", and "DH" and "TL" are both superiors of "TM" (employee). The above-mentioned superior-subordinate relationship mapping table can also be represented in the form of a graph. Each node in the graph corresponds to a different label attribute. Based on the directed edges between the nodes, the superior-subordinate relationship is reflected (for example, the directed edge indicates the reporting direction). Optionally, the node pointed to by the directed edge is the superior of the node from which the directed edge is issued. The superior-subordinate relationship between multiple objects can be obtained by querying in the superior-subordinate relationship mapping table based on the label attributes of multiple objects.
[0166] In some embodiments, when the object 2 and the object 1 have a superior-subordinate relationship, from the perspective of social relationship, the possibility of the object 1 socializing with the object 2 is higher than that of other objects that do not have a superior-subordinate relationship, and therefore, the second reference information between the object 2 and the object 1 is determined as score2, where score2 is a value greater than 0. For other objects that do not have a superior-subordinate relationship with the object 1, the second reference information between the other objects and the object 1 is zero.
[0167] (3) The object data includes the department affiliation data of the object and the relationship between the departments, which can be used to determine the third reference information between the two objects, and the third reference information indicates the closeness of the cooperation relationship between the two objects.
[0168] In some embodiments, the department affiliation data includes department information of the department to which object 1 belongs and department information of the department to which object 2 belongs; the relationship between departments includes management relationship and cooperation relationship, etc. By obtaining the department information of object 1 and the department information of object 2, it can be determined whether there is a human resources cooperation relationship between object 2 and object 1. For example, if the department to which object 1 belongs is the human resources department, and the department to which object 2 belongs is the research and development department, and the department to which object 1 belongs is responsible for the personnel management of the research and development department (that is, a cooperation relationship between departments), then there is a human resources cooperation relationship between object 1 and object 2.
[0169] In some embodiments, based on the label attributes of the object labels of the object 1 and the object 2, the human resource cooperation relationship between the objects is determined. For example, the label attribute of the label type corresponding to the department is represented by the department identifier, and the department identifier corresponds to the function of the department. In this example, when the label attribute of the "department" of object 1 is "HR", the object 1 belongs to the human resources department, when the label attribute of the "department" of object 2 is "RD", the object 2 belongs to the research and development department, and when the label attribute of the "department" of object 3 is "OD", the object 3 belongs to the operation department. In this example, a human resource cooperation relationship mapping table is pre-configured to reflect the human resource cooperation relationship between the label attributes. For example, the human resource department is responsible for the personnel management of the research and development department and the operation department, then there is a human resource cooperation relationship between "RD" and "HR", there is also a human resource cooperation relationship between "OD" and "HR", and there is no human resource cooperation relationship between "RD" and "OD". The above-mentioned human resource cooperation relationship mapping table can also be represented in the form of a graph, and each node in the graph corresponds to a different label attribute, and the human resource cooperation relationship is reflected based on the edge between the nodes. If there is a relationship edge between the nodes, there is a human resource cooperation relationship. By querying in the human resources cooperation relationship mapping table according to the label attribute of "department" of multiple objects, it is determined whether the human resources cooperation relationship between the multiple objects exists.
[0170] In the embodiment of the present disclosure, when the object 1 and the object 2 have a human resources cooperation relationship, from the perspective of social relationship, the possibility of the object 1 and the object 2 to socialize is higher than that of other objects that do not have a human resources cooperation relationship. Therefore, the third reference information between the object 2 and the object 1 is determined as score3, where score3 is a value greater than zero. For other objects that do not have a human resources cooperation relationship with the object 1, the third reference information between the other object and the object 1 is zero.
[0171] (4) Based on the relationship data between the object and the target department of the object, fourth reference information between the object and multiple objects in the target department of the object can be determined, and the fourth reference information indicates the degree of preference of the object for the target department.
[0172] In some embodiments, the process of determining the target department of the object 1 is implemented by the following steps 1 and 2:
[0173] Step 1: The server determines multiple second objects of the object 1, the multiple second objects belong to the same department, and the historical social behaviors between the second objects and the object 1 meet the target conditions.
[0174] In the embodiment of the present disclosure, based on the historical social behavior of the object 1, X objects that have had two-way social behaviors with the object 1 are determined, and the X objects are sorted according to the cumulative duration of the two-way social behaviors with the object 1, and the Y objects ranked in the top Y positions are obtained. The pairs of the Y objects belonging to the same department are taken as the multiple second objects. Where X is a positive integer, and Y is a positive integer less than X.
[0175] Among them, the target condition means that: the cumulative duration of the two-way social behaviors between the subject and the subject 1 is ranked in the top specified digits compared with other subjects. For example, the target condition is: the cumulative duration of the two-way social behaviors with the subject 1 in the past thirty days is ranked in the top digit. Subject 1 has had 5 two-way social behaviors with the subject 1 in the past 30 days, and the cumulative duration of the 5 times is 100 minutes; subject 2 has had 1 two-way social behavior with the subject 1 in the past 30 days, and the cumulative duration of 1 time is 5 minutes; subject 3 has had 0 two-way social behaviors with the subject 1 in the past 30 days, and the cumulative duration of 0 times is 0 minutes. Among the above three subjects, the subject 1 ranked first meets the target condition.
[0176] The multiple objects satisfying the target condition may belong to different departments, and the multiple second objects are multiple objects belonging to the same department. For example, there are 10 objects satisfying the target condition, 5 of which belong to department 1, 3 belong to department 2, and 2 belong to department 3, then the 5 objects in department 1 are determined as the multiple second objects.
[0177] The above-mentioned target condition is to measure the social closeness between objects by the relevant circumstances of two-way social behaviors, so as to determine the object that has close contacts with the object 1 as the second object. In some embodiments, relevant information of other behaviors can also be used as the target condition, for example, the frequency of occurrence of search click behaviors, which is not limited in the embodiments of the present disclosure.
[0178] Step 2: If the number of the second objects is greater than the target number, the server determines the department to which the second objects belong as the target department of object 1.
[0179] If the number of the second objects is greater than the target number, it means that the department to which the second objects belong includes multiple objects that have close contacts with the object 1, so the department to which the second object belongs is determined as the target department. The object 1 is more likely to socialize with objects in the target department than with objects in other departments.
[0180] In some embodiments, by acquiring the object data including the department belonging data, the department to which the object 1 belongs and the department to which the object 2 belongs are determined, so as to determine whether the department to which the object 2 belongs is the target department of the object 1. Furthermore, when the department to which the object 2 belongs is the target department of the object 1, the fourth reference information between the object 2 and the object 1 is determined as score4, wherein score4 is a value greater than zero. For other objects that do not belong to the target department of the object 1, the fourth reference information between the other objects and the object 1 is zero.
[0181] In some embodiments, the department to which the object 1 and the department to which the object 2 belong can be obtained based on the object tag of the object, wherein the definition and acquisition process of the object tag refer to the above steps.
[0182] (5) The historical social behavior includes two-way social behavior between objects. Based on the two-way social behavior between the two objects, fifth reference information between the two objects can be determined, and the fifth reference information indicates the frequency of social interaction between the two objects.
[0183] In some embodiments, the fifth reference information of the object 2 is determined based on the time when the two-way social behavior between the object 2 and the object 1 occurs. The farther the time is from the current time, to a certain extent, it indicates that the frequency of social interaction between the object 2 and the object 1 is lower. The definition and acquisition process of the two-way social behavior refer to the above steps and will not be repeated here.
[0184] In the embodiment of the present disclosure, the score of the two-way social behavior is calculated based on the calculation rule of time decay. The closer the time when the two-way social behavior occurs is to the current time, the greater the score. The calculation formula is shown in formula (2). The score of each two-way social behavior that occurs between the object 2 and the object 1 is accumulated, and the final accumulated score is determined as the fifth reference information.
[0185]
[0186] Among them, score5 is the score of two-way social behavior; δ and bias are parameters adjusted according to demand; t is the current time, that is, the time when the search request occurs; t x is the time when the two-way social behavior occurs. The function represented by formula (2) shows a nonlinear downward trend, which conforms to the law of time decay. x The larger the difference with t, the smaller score5, that is, the longer ago the two-way social behavior occurred, the lower the score, which is consistent with the time logic of judging the closeness of social relationships.
[0187] It should be noted that the embodiment of the present disclosure is described using formula (2) as an example. In some embodiments, the fifth reference information can be determined by other calculation methods according to the same principle, and the present disclosure does not limit this.
[0188] (6) The historical social behavior includes one-way social behavior between objects. Based on the one-way social behavior between two objects, sixth reference information of the two objects can be determined, and the sixth reference information indicates the degree of social initiative of one of the two objects towards the other object.
[0189] In some embodiments, the sixth reference information of the object 2 is determined based on the one-way social behavior of the object 2 with the object 1 as the behavior target. The one-way social behavior of the object 2 with the object 1 as the behavior target refers to: the message sending behavior of the object 2 with the object 1 as the recipient. The closer the time when the one-way social behavior occurs is to the current time, the more active the object 2 is in socializing with the object 1. The definition and acquisition process of the one-way social behavior refer to the above steps and will not be repeated here.
[0190] In the embodiment of the present disclosure, the score of the one-way social behavior is calculated based on the date when the search request occurs and the time when the one-way social behavior occurs. The calculation principle is shown in formula (3). The scores of each one-way social behavior are accumulated to obtain the sixth reference information.
[0191]
[0192] Among them, score6 is the score of the one-way social behavior; t is the current time, that is, the time when the search request occurs; t chattime is the time when the one-way social behavior occurs on that day; t todaybegintime It is midnight of the day when the search request occurs.
[0193] (7) The historical social behavior includes a search and click behavior of one of the multiple objects toward another object. Based on the search and click behavior, seventh reference information of the two objects can be determined. The seventh reference information indicates the degree of social initiative of one of the two objects toward the other object.
[0194] In some embodiments, the seventh reference information of the object 2 is determined based on the search and click behavior with the object 2 as the behavior target. The search and click behavior with the object 2 as the behavior target in the historical social behavior means that the object 1 initiates the search and finally clicks on the object 2. If there is a search and click behavior with the object 2 as the behavior target in the historical social behavior of the object 1, the closer the time when the search and click behavior occurs to the current time, the more active the object 1 is in socializing with the object 2. The definition and acquisition process of the search and click behavior refer to the above steps and will not be repeated here.
[0195] In the disclosed embodiment, the score of the search click behavior is calculated based on the date when the search request occurs and the time when the search click behavior occurs. The calculation principle is shown in formula (4). The scores of each search click behavior are accumulated to obtain the seventh reference information.
[0196]
[0197] Among them, score7 is the score of the search click behavior; t is the current time, that is, the time when the search request occurs; t chattime is the time when the search click behavior occurs; t todaybegintime It is midnight of the day when the search request occurs.
[0198] On the day when the search click behavior occurs, the search click behavior initiated by the object represents a strong social initiative and has important reference significance for predicting the search purpose of the object 1. Therefore, through the above technical solution, the real-time intention of the object can be obtained in time.
[0199] After obtaining the above-mentioned reference information, the server stores the reference information based on the object identifier. For example, for object 1, the server stores the object identifier of object 1, the object identifier of object 2, and the reference information between object 1 and object 2, and so on, to obtain the relationship data of the target organizational structure for use in subsequent search processes.
[0200] Optionally, the relationship data of the target organizational structure is stored in the form of a relationship graph. In the relationship graph, the multiple objects and the departments in the target organizational structure are represented by nodes, the line between two nodes represents the relationship between the nodes, and the weight of the line is used to represent the reference information between the objects, that is, the weight of the line can represent the closeness of the object relationship. In order to intuitively describe how to store the relationship data of multiple objects based on the relationship graph, the embodiment of the present disclosure provides a schematic diagram of a relationship graph, see Figure 5 , the multiple nodes in the graph include object 1, object 2, object 3, object 4, and department 1 and department 2 in the target organizational structure. Taking the nodes of object 1 and object 2 as an example, since there is a relationship between object 1 and object 2 in the relationship data, the connection between the nodes of object 1 and object 2 is used to represent the relationship between the objects, and the weight of the connection includes the first reference information to the seventh reference information between object 1 and object 2. The connection between objects and departments is used to reflect the subordinate relationship of departments; the connection between departments can reflect the relationship between the organizational structure levels. For example, department 1 belongs to department 2, which means that department 1 is a subordinate department of department 2. The nodes and the connections between the nodes constitute a relationship graph of multiple objects, that is, the relationship data of multiple objects. Through the above technical solution, the relationship data is stored in the form of a relationship graph, which can intuitively show the relationship between multiple objects represented by the relationship data of the target organizational structure, and quantify the abstract object relationship into a weight that can be used for search and sorting.
[0201] Optionally, the above-mentioned object data and historical behavior data can also be stored in the form of a relationship graph, and the lines between the nodes indicate the existence of a relationship between the nodes, which may be a social relationship such as the behavior of sending messages, the number of search clicks, departmental affiliation, etc.; the weight of the connection between objects can be determined based on data such as the number of times the first object sends messages, the number of search clicks, and the duration of two-way social behaviors. These behaviors reflect the closeness of the social relationship between the objects to a certain extent; or, the weight of the connection between objects can be determined based on the object data, for example, there is a superior-subordinate relationship between the target object and the first object.
[0202] Through the above technical solution, the relationship data of multiple objects is determined based on the object data and social behavior in the target organizational structure, so that the relationship data can describe the relationship between multiple objects from multiple dimensions, thereby ensuring the practicality and reliability of the relationship data.
[0203] After introducing the method for determining relationship data provided by the present disclosure, the search-based object display method provided by the present disclosure is further elaborated below. Figure 6 is a flowchart of a search-based object display method according to an exemplary embodiment. Figure 6 , the method comprising:
[0204] In step 601, in response to a search request for the first object, the server determines a plurality of candidate objects and first recall reference information of the plurality of candidate objects based on the search keyword, wherein the first recall reference information indicates a similarity between the candidate object and the search keyword.
[0205] In an embodiment of the present disclosure, a search can be performed based on different search modes. Among them, different types of search keywords correspond to different types of search modes. For example, in an instant messaging scenario, the first object initiates a search based on the pinyin of the user name. If the type of the search keyword is the full pinyin of the user name, such as "machenming", it corresponds to the full pinyin search mode; if the type of the search keyword is the pinyin abbreviation of the user name, such as "mcm", it corresponds to the abbreviated pinyin search mode. That is, an embodiment of the present disclosure supports searching under search keywords from multiple sources.
[0206] In the disclosed embodiments, the search keyword refers to the key information of the candidate object, wherein the key information refers to the identification information of the candidate object. For example, in an instant messaging scenario, an internal employee of an enterprise initiates a search using an IM application for collaborative office work, and the search scope includes other internal employees of the enterprise who use the application. In some embodiments, the search scope is not limited to the enterprise, and supports searching among all users included in the user database of the application. Among them, the pinyin abbreviation of the user's username is a type of identification information, and the search keyword can be a pinyin abbreviation, such as "mc" (Ma Chao).
[0207] Among them, the first recall reference information represents the character similarity between the object and the search keyword. In some embodiments, the first recall reference information represents the character similarity, and the larger the value, the more similar the identification information of the object is to the search keyword. For example, the search keyword based on the user name is "mc", the pinyin abbreviation of object 1 is "mc", and the pinyin abbreviation of object 2 is "lmc". Based on the character arrangement order and the number of characters, the character similarity of object 1 is higher than that of object 2, that is, the first recall reference information of object 1 is greater than the first recall reference information of object 2.
[0208] In the disclosed embodiments, a candidate object has multiple types of identification information. For example, in the instant messaging scenario, a user has multiple types of identification information, including full pinyin, pinyin abbreviation, and remark name. In any search mode, the search keyword can correspond to one type of identification information of the candidate object. For example, if the search keyword is "mc", the full pinyin of the candidate object is "machao", and the pinyin abbreviation is "mc", then the search keyword corresponds to the pinyin abbreviation of the candidate object.
[0209] The candidate object is an object whose first recall reference information ranks in the top N positions among the M objects in the organizational structure. In the embodiment of the present disclosure, based on the search keyword, the first recall reference information of the M objects in the organizational structure is calculated in sequence, and among the M objects, the objects whose first recall reference information ranks in the top N positions are determined as the multiple candidate objects, wherein M is a positive integer and N is a positive integer less than M.
[0210] In step 602, the server determines a first weight of each search mode based on search mode data of the first object, where the search mode data is used to represent the probability of the first object using various search modes.
[0211] Among them, the search mode data of the first object is determined based on the historical search record of the first object, and the historical search record includes the search mode adopted by the first object during the historical search process and the number of times various search modes are adopted. Based on the historical search record, the probability of the first object using various search modes can be determined.
[0212] In order to facilitate understanding of the above process, the present disclosure provides a schematic diagram of historical search records. Figure 7 , the historical search record of the first object includes the search mode type used by the first object in history and the number of times each type is used, wherein the number of times the first object uses the search mode type indexType1 is count1, the number of times the first object uses the search mode type indexType2 is count2, and the number of times the first object uses the search mode type indexTypen The number of times is countn, where n is a positive integer.
[0213] Based on the historical search records of the first object, the probability of the first object using each search mode can be determined, that is, the search mode data. The calculation formula is shown in formula (5).
[0214]
[0215] In formula (5), Count(indexType k ) is to use the search mode type indexType k The number of times, w(indexType k ) is the first object using type indexType k is the probability of the search pattern, n is the number of search pattern types, and both n and k are positive integers.
[0216] The first weight indicates the possibility of the first object using the search mode. The larger the value of the first weight, the greater the possibility of the first object using the search mode. Based on this, in the embodiment of the present disclosure, the probability of the first object using various search modes is used as the first weight of each search mode. For example, the first object uses the type indexType k The probability of the search pattern is ω k , then the type is indexType k The first weight of the search pattern is ω k .
[0217] In step 603, the server obtains second recall reference information based on the first weight of the search mode corresponding to each candidate object and the first recall reference information of each candidate object.
[0218] Among them, the first weight represents the possibility that the first object uses the search pattern corresponding to the candidate object, the first recall reference information represents the character similarity between the candidate object and the search keyword, and the second recall reference information obtained by combining the first weight and the first recall reference information can represent the degree to which the candidate object satisfies the search habits of the first object based on matching the search keyword.
[0219] In the disclosed embodiment, the first recall reference information is weighted by the first weight to obtain the second recall reference information. The size of the second recall reference information can indicate the degree to which the candidate object satisfies the search habit of the first object based on matching with the search keyword.
[0220] In step 604, the server determines the candidate object that ranks the second recalled reference information in the front target position as the target object.
[0221] The larger the second recall reference information is, the greater the possibility that the candidate object meets the first object search purpose. In the disclosed embodiment, from the multiple candidate objects determined based on character similarity, the multiple target objects that meet the first object search purpose can be further determined by the degree of conformity between the candidate objects and the search habits of the first object.
[0222] In the embodiment of the present application, since searching with search keywords from multiple sources is supported, the technical solution provided by the above steps 601 to 604, with reference to historical search records, can effectively solve the situation where search keywords from multiple sources lead to unreasonable search results, thereby improving the accuracy of recall based on search keywords.
[0223] Through the above technical solution, based on the search keyword and the search mode data of the first object, the search habits of the first object, that is, the habit of using the search mode, can be obtained, so that based on the search habits, the target object that meets the search habits of the first object is recalled first, that is, in the recall stage, based on the user's search habits, the multiple target objects that meet the search purpose of the first object are screened out, thereby improving the accuracy of subsequent sorting. Furthermore, when facing a large number of objects, through the above technical solution, the number of the multiple target objects determined can be limited to a controllable range, effectively improving the accuracy of subsequent sorting.
[0224] In step 605, the server obtains first reference information of the target object from predetermined relationship data, where the first reference information indicates the degree of closeness of the relationship between the department to which the first object belongs and the department to which the target object belongs.
[0225] The determination process of the first reference information in this step refers to step 303. In some embodiments, the server obtains the first reference information of the target object from the relationship data based on the identifier of the first object and the identifier of the target object.
[0226] In the above technical solution, the first reference information provides reference information for the search sorting process from the perspective of the closeness of the relationship between the departments to which the objects belong. Since the departmental affiliation will not change easily over time, and the departmental affiliation has a certain degree of reference effect on the prediction of social behavior. Therefore, it has an important reference significance for predicting the search purpose of the first object. Based on this, the first reference information can provide sorting reference information for the search sorting process, thereby improving the accuracy of the sorting of objects displayed based on the search.
[0227] In step 606, the server obtains second reference information of the target object from the predetermined relationship data, where the second reference information indicates the closeness of the management relationship between the first object and the target object.
[0228] The determination process of the second reference information in this step refers to step 303. In some embodiments, the server obtains the second reference information of the target object from the relationship data based on the identifier of the first object and the identifier of the target object.
[0229] In the above technical solution, the second reference information predicts the search purpose from the perspective of the superior-subordinate relationship between objects. From the perspective of social relationships, the superior-subordinate relationship represents a certain degree of social possibility. Therefore, the second reference information has an important reference significance for predicting the search purpose of the first object, so that the second reference information can provide reference information for the search sorting process to improve the accuracy of the sorting of objects displayed based on the search.
[0230] In step 607, the server obtains third reference information of the target object from the predetermined relationship data, where the third reference information indicates the closeness of the cooperation relationship between the first object and the target object.
[0231] The determination process of the third reference information in this step refers to step 303. In some embodiments, the server obtains the third reference information of the target object from the relationship data based on the identifier of the first object and the identifier of the target object.
[0232] In the above technical solution, the search purpose is predicted from the perspective of the human resource cooperation relationship between objects. From the perspective of social relationships, human resource cooperation relationships represent a certain degree of social possibility, and objects will have social needs due to human resource cooperation relationships, such as personnel changes. Therefore, the third reference information has an important reference significance for predicting the search purpose of the first object. Based on the third reference information, a reference is provided for the search sorting process, which can effectively improve the accuracy of the sorting of objects displayed based on the search.
[0233] In step 608, the server obtains fourth reference information of the target object from the predetermined relationship data, where the fourth reference information indicates the first object's preference for the department to which the target object belongs.
[0234] The determination process of the fourth reference information in this step refers to step 303. In some embodiments, the server obtains the fourth reference information of the target object from the relationship data based on the identifier of the first object and the identifier of the target object.
[0235] In the above technical solution, based on the degree of social closeness between some objects within the department and the first object, the possibility of objects within the entire department socializing with the first object is inferred, taking into account the department's business dealings in actual social scenarios, and providing an effective reference basis for predicting the search purpose of the first object, so that the fourth reference information can provide reference information for the search sorting process, so as to improve the accuracy of the sorting of objects displayed based on the search.
[0236] In step 609, the server obtains fifth reference information of the target object from the predetermined relationship data, where the fifth reference information indicates the degree of social interaction between the first object and the target object.
[0237] The determination process of the fifth reference information in this step refers to step 303. In some embodiments, the server obtains the fifth reference information of the target object from the relationship data based on the identifier of the first object and the identifier of the target object.
[0238] In the disclosed embodiment, if two-way social behaviors frequently occur between the target object and the first object, the close relationship between the target object and the first object generally will not change easily. Therefore, the fifth reference information determined by the above technical solution has important reference significance for predicting the search purpose of the first object. That is, sorting based on the fifth reference information can effectively improve the accuracy of sorting of objects displayed based on the search.
[0239] In the above technical solution, since the impact of time on social behavior is taken into account, recent behaviors are more important reference significance for predicting the current search purpose than social behaviors that occurred longer ago. The fifth reference information allows the sorting to take into account the time distance of the behavior, which can effectively improve the accuracy of the sorting of objects displayed based on the search.
[0240] In step 610, the server obtains sixth reference information of the target object from predetermined relationship data, where the sixth reference information indicates the degree of social initiative of the target object towards the first object.
[0241] The determination process of the sixth reference information in this step refers to step 303. In some embodiments, the server obtains the sixth reference information of the target object from the relationship data based on the identifier of the first object and the identifier of the target object.
[0242] In some embodiments, social relationships are real-time. For example, the first object socializes frequently with the partner object in the most recent project, but the relationship between them may only last for a period of time. Therefore, for short-term social relationships, through the above-mentioned technical solution, the day when the search behavior occurs is used as a reference point to determine the sixth reference information. The sixth reference information is used to measure the reference value of each historical social behavior, which can focus on capturing the real-time nature of social relationships, thereby providing a reference for the purpose of predicting current search behavior, so that sorting based on the sixth reference information can effectively improve the accuracy of sorting of objects displayed based on the search.
[0243] In step 611, the server obtains seventh reference information of the target object from predetermined relationship data, where the seventh reference information indicates the degree of social initiative of the first object towards the target object.
[0244] The determination process of the seventh reference information in this step refers to step 303. In some embodiments, the server obtains the seventh reference information of the target object from the relationship data based on the identifier of the first object and the identifier of the target object.
[0245] Taking into account that the search click behavior initiated by the first object on the day it occurs represents a strong social initiative and is of great reference significance for predicting the search purpose of the first object. Therefore, through the above-mentioned technical solution, the real-time intention of the first object can be obtained in a timely manner, thereby providing effective reference information for predicting the current search purpose of the first user, so as to display the search ranking results that meet the search purpose to the first object, thereby greatly improving the accuracy of the object ranking displayed based on the search.
[0246] In step 612, the server determines the ranking reference information of the target object based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information and the seventh reference information of the target object.
[0247] In the disclosed embodiment, the ranking reference information is obtained by weighted summing up the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information, and the seventh reference information. The calculation process is shown in formula (6). The ranking reference information combines the above-mentioned multiple reference information and may include information on object data and historical social behavior, accurately predicting the search purpose of the first object from the perspective of social relations, and providing an effective reference basis for the accurate ranking of the multiple target objects.
[0248]
[0249] In formula (6), Score(t) is the ranking reference information; t is the current time, that is, the time when the search request occurs; Score i (t) is the i-th reference information; w i is the weight of the i-th reference information; N is the number of multiple reference information for weighted summation, N is a positive integer, for example, in the embodiment of the present disclosure, N is 7. i Set to 1 / N, in some embodiments, according to different Score i The weights can be adjusted manually based on the emphasis, but the embodiments of the present disclosure are not limited to this.
[0250] In some embodiments, the weight of the i-th reference information can be further optimized by training sample data to obtain a weight ratio with better performance. Among them, the weight of the i-th reference information can be trained by a logistic regression (LR) machine learning algorithm, and the historical social behavior data and object data of each object are input into the LR model as samples to obtain a more targeted weight ratio for each object, further providing an effective reference basis for the search and sorting process, and improving the accuracy of the object sorting displayed based on the search.
[0251] In some embodiments, the server provides multiple search options, and different search options focus on different dimensions of reference information, that is, under a certain search option, reference information of a certain dimension will be given priority, and the first object can select different search options to obtain different search results under different search options, that is, multiple target objects are displayed in different sorted orders, wherein the sorting order of the multiple target objects under the search option is determined by the reference information corresponding to the search option.
[0252] In some embodiments, in response to the search request of the first object under the target search option in the multiple search options, the server adjusts the weights of the multiple reference information of the target object (that is, the weights of the i-th reference information) to increase the weight of the target reference information in the multiple reference information, and the target reference information corresponds to the target search option. By adjusting the weights, a sorting order that better meets personal search needs is provided, thereby improving the efficiency of human-computer interaction during the search process.
[0253] In some embodiments, by increasing the weight of the target reference information in determining the sorting reference information and reducing the weight of other reference information, the target reference information can have a greater impact on the sorting reference information, and thus play a greater decisive role in the sorting process of multiple target objects. For example, if the target search option is the "contact" option, when sorting multiple target objects, it is necessary to focus on the basic attributes of the target object related to the identity of the "contact", that is, the reference information corresponding to the object data of the target object. Therefore, when the sorting reference information is obtained by weighted summation, the weights of the first reference information, the second reference information, and the third reference information can be increased, while the weights of other reference information can be reduced. At this time, the first reference information, the second reference information, and the third reference information are the target reference information. For another example, if the target search option is the "chat" option, when sorting multiple target objects, it is necessary to focus on the reference information corresponding to the historical social behavior of the target object. Similarly, when weighted summing is performed to obtain ranking reference information, the weights of the fifth reference information, the sixth reference information, and the seventh reference information corresponding to the historical social behavior related to "chatting" can be increased as needed, while the weights of other reference information can be reduced. Based on this, the server performs the above-mentioned weighted summing to obtain ranking reference information according to the weights of the determined multiple reference information, which will not be described in detail here. Fig. 9 .
[0254] It is understandable that under different search options, the ranking of target objects may be different when searching based on the same search keyword.
[0255] It should be noted that in the embodiments of the present disclosure, the description is given by taking the case where the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information and the seventh reference information are simultaneously obtained and weighted summed to obtain the sorting reference information. In some embodiments, the sorting reference information can be determined based on any one or several of the above-mentioned reference information according to different situations. For example, for an object that does not store historical social behavior data, the sorting reference information of the target object can be determined by directly obtaining the first reference information, the second reference information and the third reference information. Since personnel relationships generally do not change frequently over time, the sorting reference information determined based on personnel relationships is a stable and effective reference basis for the sorting process of the multiple target objects. In some embodiments, the cold start problem can be well solved for objects with only a small amount of information. For example, in a scenario where internal employees of an enterprise use an IM application, new employees lack the above-mentioned historical social behavior, and only have the initial personnel relationship information in the enterprise organizational structure in the IM application, such as department information, job level information, etc. In this case, through the above-mentioned technical solution, the sorting reference information of the target object can be determined based on the initial personnel relationship information.
[0256] In step 613, the server sorts the multiple target objects based on the sorting reference information of the multiple target objects, and sends the sorted multiple target objects to the terminal where the first object is located.
[0257] The server ranks the target objects with larger ranking reference information in front according to the size of the ranking reference information, thereby placing the target object that best meets the purpose of searching for the first object at the front of the ranking based on the ranking reference information.
[0258] After the terminal where the first object is located receives the sorted multiple target objects, it can arrange and display the multiple target objects according to the sort of the multiple target objects, thereby achieving the purpose of preferentially displaying the target object that best meets the search purpose of the first object to the first object. In order to clearly describe the effect of preferential display according to sorting, the embodiment of the present disclosure provides a schematic diagram of displaying target objects, see Figure 8 , wherein, under the search bar 801, the multiple target objects are displayed in order, and based on the size of the sorting reference information, the object with a larger value is ranked first, that is, it is ranked first in the displayed search list, based on which, the first object can preferentially obtain and click on the target object that best meets the search purpose. For example, the first object inputs the keyword "ht", and based on the sorting reference information, the object 1 (the user name is abbreviated as "rht") whose user name meets "ht" and has a superior-subordinate relationship with the first object can be ranked first in the search list.
[0259] The present disclosure provides a schematic diagram of displaying a target object under a target search option, see Fig. 9 In the case of searching based on the target search option, multiple target objects are displayed in an arranged manner. The target search option may be a “contact” option 902 or a “chat” option 903 below the search bar 901 . Fig. 9 Figure (a) is a list of search results based on 902 inputting the search keyword "ht". Fig. 9 Figure (b) is a search result list based on the search keyword "ht" input by 903. It can be seen that based on the same keyword, the ranking of the target objects obtained under different search options is different. Object 1 is a "leader" and is ranked higher under the "contact" option. Object 2 has more frequent social interactions with the search initiator, so it is ranked higher under the "chat" option.
[0260] Through the technical solution provided by the embodiments of the present disclosure, it is possible to provide sorting reference information for the search sorting process based on the social relationship between objects, accurately predict the search purpose from the perspective of social relationship, and then display the search sorting results that meet the search purpose for the object initiating the search, thereby improving the accuracy of the object sorting displayed based on the search. Furthermore, the sorting reference information combines the object data and historical social behavior to predict the search purpose, taking into account the possibility of initiating a search based on social relationships in various situations, providing a comprehensive and effective reference basis for the search sorting process, and greatly improving the accuracy of the object sorting displayed based on the search.
[0261] Fig.10 is a block diagram showing a search-based object display device according to an exemplary embodiment. Fig.10 The device includes a target object acquisition unit 1001, a reference information acquisition unit 1002 and a sorting unit 1003.
[0262] The target object acquisition unit 1001 is configured to execute a search request in response to the first object and acquire a plurality of target objects corresponding to the search keyword;
[0263] A reference information acquisition unit 1002 is configured to acquire sorting reference information of the plurality of target objects, the sorting reference information being determined based on relationship data of a predetermined target organizational structure;
[0264] The sorting unit 1003 is configured to sort the multiple target objects based on the sorting reference information of the multiple target objects, and send the sorted multiple target objects to the first object.
[0265] In a possible implementation manner, the target object acquisition unit 1001 includes:
[0266] A recall subunit is configured to execute, in response to a search request for the first object, determine a plurality of candidate objects and first recall reference information of the plurality of candidate objects based on the search keyword, the first recall reference information indicating a similarity between the candidate object and the search keyword;
[0267] The target object determination subunit is configured to execute the search pattern data of the first object, the search patterns corresponding to the multiple candidate objects and the first recall reference information of the multiple candidate objects, and determine the multiple target objects from the multiple candidate objects. The search pattern data is used to represent the probability of the first object using various search patterns.
[0268] In a possible implementation manner, the target object determination subunit is configured to execute:
[0269] Determining first weights of the respective search patterns based on the search pattern data of the first object;
[0270] Based on the first weight of the search mode corresponding to each of the candidate objects and the first recall reference information of each of the candidate objects, second recall reference information is obtained;
[0271] The candidate object whose second recalled reference information is ranked in the front target digit is determined as the target object.
[0272] In a possible implementation manner, the reference information acquisition unit 1002 includes at least one of the following:
[0273] A first reference subunit is configured to obtain first reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the first reference information of the target object, wherein the first reference information indicates the closeness of the relationship between the department to which the first object belongs and the department to which the target object belongs;
[0274] A second reference subunit is configured to obtain second reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the second reference information of the target object, wherein the second reference information indicates a closeness of a management relationship between the first object and the target object;
[0275] The third reference subunit is configured to obtain third reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the third reference information of the target object, wherein the third reference information indicates the closeness of the cooperative relationship between the first object and the target object.
[0276] In a possible implementation manner, the reference information acquisition unit 1002 includes:
[0277] The fourth reference subunit is configured to obtain fourth reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the fourth reference information of the target object, wherein the fourth reference information indicates the first object's preference for the department to which the target object belongs.
[0278] In a possible implementation manner, the reference information obtaining unit 1002 includes:
[0279] The fifth reference subunit is configured to obtain fifth reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the fifth reference information of the target object, wherein the fifth reference information represents the social frequency between the first object and the target object.
[0280] In a possible implementation manner, the reference information acquisition unit 1002 includes:
[0281] The sixth reference subunit is configured to obtain sixth reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the sixth reference information of the target object, wherein the sixth reference information indicates the degree of social initiative of the target object towards the first object.
[0282] In a possible implementation manner, the reference information acquisition unit 1002 includes:
[0283] The seventh reference subunit is configured to obtain seventh reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the seventh reference information of the target object, wherein the seventh reference information indicates the degree of social initiative of the first object towards the target object.
[0284] In a possible implementation manner, the reference information acquisition unit 1002 includes:
[0285] a sorting reference subunit, configured to determine sorting reference information of the target object based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information and the seventh reference information of the target object;
[0286] Among them, the first reference information indicates the closeness of the relationship between the department to which the first object belongs and the department to which the target object belongs, the second reference information indicates the closeness of the management relationship between the first object and the target object, the third reference information indicates the closeness of the cooperative relationship between the first object and the target object, the fourth reference information indicates the first object's preference for the department to which the target object belongs, the fifth reference information indicates the frequency of social interaction between the first object and the target object, the sixth reference information indicates the degree of social initiative of the target object towards the first object, and the seventh reference information indicates the degree of social initiative of the first object towards the target object.
[0287] In one possible implementation, the sorting reference subunit is configured to execute:
[0288] In response to a search request of the first object based on a target search option, adjusting weights of a plurality of reference information of the target object so that a weight of a target reference information among the plurality of reference information increases, the target reference information corresponding to the target search option;
[0289] Based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information and the seventh reference information of the target object and the weights of the multiple reference information, the sorting reference information of the target object is determined.
[0290] It should be noted that: when the search-based object display device provided in the above embodiment performs corresponding operations, only the division of the above functional units is used as an example. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. In addition, the search-based object display device provided in the above embodiment and the search-based object display method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0291] Through the technical solution provided by the embodiment of the present disclosure, for a search request initiated by a first object, multiple target objects corresponding to the search keyword are obtained; based on the relationship data between the first object and the multiple target objects in a predetermined target organizational structure, the sorting reference information is determined; after sorting the multiple target objects according to the sorting reference information, the multiple target objects are sent to the first object. Through the above technical solution, based on the relationship data that can represent the closeness of the relationship between objects, sorting reference information is provided for the search sorting process, the search purpose is accurately predicted from the perspective of the relationship, and then the search sorting results that meet the search purpose are displayed for the object initiating the search, which greatly improves the accuracy of the object sorting displayed based on the search.
[0292] Fig.11 is a block diagram of a device for determining relationship data according to an exemplary embodiment. Fig.11 The device includes an object data acquisition unit 1101, a social behavior acquisition unit 1102 and a relationship data determination unit 1103.
[0293] The object data acquisition unit 1101 is configured to acquire object data of a target organizational structure, where the object data is used to represent identities of multiple objects in the target organizational structure;
[0294] The social behavior acquisition unit 1102 is configured to acquire historical social behaviors of the multiple objects;
[0295] The relationship data determining unit 1103 is configured to determine the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects, where the relationship data includes the social relationships between the multiple objects.
[0296] In a possible implementation manner, the relationship data determining unit 1103 includes at least one of the following:
[0297] A first determining subunit is configured to determine first reference information between any two objects in the object data based on the department belonging data of the two objects, the first reference information is used to indicate the closeness of the relationship between the departments to which the two objects belong, and the department belonging data indicates the department to which the objects belong;
[0298] A second determining subunit is configured to acquire second reference information between the two objects based on the level data of the two objects in the object data, the second reference information being used to indicate the closeness of the management relationship between the two objects;
[0299] The third determination subunit is configured to determine third reference information between the two objects based on the department affiliation data of the two objects in the object data and the relationship between the departments, and the third reference information indicates the closeness of the cooperation relationship between the two objects.
[0300] In a possible implementation manner, the relationship data determining unit 1103 is configured to execute:
[0301] Based on the historical social behaviors of the multiple objects, determining multiple second objects of a first object among the multiple objects, the multiple second objects belong to the same department, and the historical social behaviors between the second objects and the first object meet the target condition;
[0302] If the number of the plurality of second objects is greater than the target number, the departments to which the plurality of second objects belong are determined as the target departments of the first object, and relationship data between the first object and the target department is obtained.
[0303] In a possible implementation manner, the relationship data determining unit 1103 further includes:
[0304] The fourth determination subunit is configured to determine fourth reference information between the first object and multiple objects in the target department based on the relationship data between the first object and the target department, and the fourth reference information represents the preference degree of the first object to the target department.
[0305] In a possible implementation manner, the relationship data determining unit 1103 includes:
[0306] The fifth determining subunit is configured to determine fifth reference information between any two objects among the multiple objects based on the two-way social behavior between the two objects, where the fifth reference information indicates the social frequency between the two objects.
[0307] In a possible implementation manner, the relationship data determining unit 1103 includes:
[0308] The sixth determining subunit is configured to determine sixth reference information of any two objects among the multiple objects based on the unidirectional social behavior between the two objects, where the sixth reference information indicates the degree of social initiative of one of the two objects to the other object.
[0309] In a possible implementation manner, the relationship data determining unit 1103 includes:
[0310] The seventh determination subunit is configured to determine seventh reference information of any two objects based on the search and click behavior of one object toward the other object, wherein the seventh reference information indicates the degree of social initiative of one object toward the other object.
[0311] It should be noted that: the apparatus for determining relational data provided in the above embodiment only uses the division of the above functional units as an example when performing corresponding operations. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. In addition, the apparatus for determining relational data provided in the above embodiment and the embodiment of the method for determining relational data belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0312] Through the above technical solution, the relationship data of multiple objects is determined based on the object data and historical social behavior in the target organizational structure, so that the relationship data can describe the relationship between multiple objects from multiple dimensions, ensuring the practicality and reliability of the relationship data.
[0313] Fig.12 It is a block diagram of a server according to an exemplary embodiment. The server 1200 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1201 and one or more memories 1202, wherein the one or more memories 1202 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1201 to implement the process executed by the server in the search-based object display method provided by the above-mentioned various method embodiments. Of course, the server 1200 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 1200 may also include other components for implementing device functions, which will not be described in detail here.
[0314] In an exemplary embodiment, a computer-readable storage medium including a program code is also provided, such as a memory 1202 including the program code, and the program code can be executed by a processor 1201 of a server 1200 to complete the above-mentioned search-based object display method. Optionally, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact-disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0315] In an exemplary embodiment, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the above-mentioned search-based object display method is implemented.
[0316] In some embodiments, the computer program involved in the embodiments of the present disclosure may be deployed and executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected through a communication network. Multiple computer devices distributed at multiple locations and interconnected through a communication network may constitute a blockchain system.
[0317] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0318] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A search-based object display method, characterized in that: The method comprises: In response to a search request for a first object, determining a plurality of candidate objects and first recall reference information of the plurality of candidate objects based on a search keyword, wherein the first recall reference information indicates a similarity between the candidate objects and the search keyword; Determine a plurality of target objects from the plurality of candidate objects based on the search pattern data of the first object, the search patterns corresponding to the plurality of candidate objects, and the first recall reference information of the plurality of candidate objects, wherein the search pattern data is used to indicate the probability of the first object using various search patterns; Acquire sorting reference information of the plurality of target objects, the sorting reference information being determined based on relationship data of a predetermined target organizational structure; The multiple target objects are sorted based on the sorting reference information of the multiple target objects, and the sorted multiple target objects are sent to the first object.
2. The search-based object display method according to claim 1, characterized in that: The determining the plurality of target objects from the plurality of candidate objects based on the search pattern data of the first object, the search patterns corresponding to the plurality of candidate objects, and the first recall reference information of the plurality of candidate objects comprises: determining first weights of the various search modes based on the search mode data of the first object; Based on the first weight of the search mode corresponding to each of the candidate objects and the first recall reference information of each of the candidate objects, second recall reference information is obtained; The candidate object whose second recalled reference information is ranked in the front target digit is determined as the target object.
3. The search-based object display method according to claim 1, characterized in that: The acquiring of the sorting reference information of the plurality of target objects comprises at least one of the following: Acquire first reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the first reference information of the target object, wherein the first reference information indicates the closeness of the relationship between the department to which the first object belongs and the department to which the target object belongs; Acquire second reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the second reference information of the target object, wherein the second reference information indicates the closeness of the management relationship between the first object and the target object; The third reference information of the target object is obtained from predetermined relationship data, and the sorting reference information of the target object is determined based on the third reference information of the target object, wherein the third reference information indicates the closeness of the cooperation relationship between the first object and the target object.
4. The search-based object display method according to claim 1, characterized in that: The acquiring the sorting reference information of the plurality of target objects comprises: The fourth reference information of the target object is obtained from predetermined relationship data, and the sorting reference information of the target object is determined based on the fourth reference information of the target object, wherein the fourth reference information indicates the preference of the first object to the department to which the target object belongs.
5. The search-based object display method according to claim 1, characterized in that: The acquiring the sorting reference information of the plurality of target objects comprises: The fifth reference information of the target object is obtained from predetermined relationship data, and the sorting reference information of the target object is determined based on the fifth reference information of the target object, wherein the fifth reference information indicates the social frequency between the first object and the target object.
6. The search-based object display method according to claim 1, characterized in that: The acquiring the sorting reference information of the plurality of target objects comprises: Acquire sixth reference information of the target object from predetermined relationship data, and determine ranking reference information of the target object based on the sixth reference information of the target object, wherein the sixth reference information indicates the social initiative degree of the target object to the first object.
7. The search-based object display method according to claim 1, characterized in that: The acquiring the sorting reference information of the plurality of target objects comprises: The seventh reference information of the target object is obtained from predetermined relationship data, and the ranking reference information of the target object is determined based on the seventh reference information of the target object, wherein the seventh reference information indicates the degree of social initiative of the first object towards the target object.
8. The search-based object display method according to claim 1, characterized in that: The acquiring the sorting reference information of the plurality of target objects comprises: Determine sorting reference information of the target object based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information, and the seventh reference information of the target object; Among them, the first reference information indicates the closeness of the relationship between the department to which the first object belongs and the department to which the target object belongs, the second reference information indicates the closeness of the management relationship between the first object and the target object, the third reference information indicates the closeness of the cooperative relationship between the first object and the target object, the fourth reference information indicates the first object's preference for the department to which the target object belongs, the fifth reference information indicates the frequency of social interaction between the first object and the target object, the sixth reference information indicates the target object's social initiative towards the first object, and the seventh reference information indicates the first object's social initiative towards the target object.
9. The search-based object display method according to claim 8, characterized in that: The determining, based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information, and the seventh reference information of the target object, comprising: In response to a search request of the first object based on a target search option, adjusting weights of a plurality of reference information of the target object so that a weight of a target reference information among the plurality of reference information increases, the target reference information corresponding to the target search option; Based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information and the seventh reference information of the target object and the weights of the multiple reference information, the sorting reference information of the target object is determined.
10. The search-based object display method according to claim 1, characterized in that: The process of determining the relationship data of the target organizational structure includes: Acquire object data of the target organizational structure, where the object data is used to represent identities of multiple objects in the target organizational structure; Acquire historical social behaviors of the multiple objects, wherein the historical social behaviors include one-way social behaviors, two-way social behaviors, and search and click behaviors; Based on the object data and the historical social behaviors of the multiple objects, the relationship data of the target organizational structure is determined, the relationship data includes multiple reference information, and the multiple reference information is used to represent the social relationship between the multiple objects from different angles, and the different angles include the closeness of the relationship between departments, the closeness of the management relationship, the closeness of the cooperative relationship, the frequency of social interaction, and the initiative of social interaction.
11. The search-based object display method according to claim 10, characterized in that: The determining of the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects includes at least one of the following: Based on the department belonging data of any two objects in the object data, determine first reference information between the two objects, the first reference information is used to indicate the closeness of the relationship between the departments to which the two objects belong, and the department belonging data indicates the department to which the objects belong; Based on the level data of the two objects in the object data, obtaining second reference information between the two objects, wherein the second reference information is used to indicate the closeness of the management relationship between the two objects; Based on the department affiliation data of the two objects in the object data and the relationship between the departments, third reference information between the two objects is determined, and the third reference information represents the closeness of the cooperation relationship between the two objects.
12. The search-based object display method according to claim 10, characterized in that: The determining of the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects includes: Based on the historical social behaviors of the multiple objects, determining multiple second objects of a first object among the multiple objects, the multiple second objects belong to the same department, and the historical social behaviors between the second objects and the first object meet the target condition; If the number of the plurality of second objects is greater than the target number, the departments to which the plurality of second objects belong are determined as the target departments of the first object, and relationship data between the first object and the target department is acquired.
13. The search-based object display method according to claim 12, characterized in that: If the number of the plurality of second objects is greater than the target number, the department to which the plurality of second objects belong is determined as the target department of the first object, and after acquiring the relationship data between the first object and the target department, the method further includes: Based on the relationship data between the first object and the target department, fourth reference information between the first object and a plurality of objects in the target department is determined, wherein the fourth reference information indicates a preference degree of the first object for the target department.
14. The search-based object display method according to claim 10, characterized in that: The determining of the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects includes: Based on the two-way social behavior between any two objects among the multiple objects, fifth reference information between the two objects is determined, where the fifth reference information indicates the frequency of social interaction between the two objects.
15. The search-based object display method according to claim 10, characterized in that: The determining of the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects includes: Based on the unidirectional social behavior between any two objects among the multiple objects, sixth reference information of the two objects is determined, where the sixth reference information indicates a degree of social initiative of one of the two objects towards the other object.
16. The search-based object display method according to claim 10, characterized in that: The determining of the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects includes: Based on the search and click behavior of one of any two objects towards the other object, seventh reference information of the two objects is determined, where the seventh reference information represents a degree of social initiative of one of the two objects towards the other object.
17. A search-based object display device, characterized in that: The search-based object display device comprises: A recall subunit is configured to execute, in response to a search request for a first object, determine a plurality of candidate objects and first recall reference information of the plurality of candidate objects based on a search keyword, wherein the first recall reference information indicates a similarity between the candidate objects and the search keyword; a target object determination subunit, configured to determine a plurality of target objects from the plurality of candidate objects based on the search pattern data of the first object, the search patterns corresponding to the plurality of candidate objects, and the first recall reference information of the plurality of candidate objects, wherein the search pattern data is used to indicate the probability of the first object using various search patterns; A reference information acquisition unit, configured to acquire sorting reference information of the plurality of target objects, the sorting reference information being determined based on relationship data of a predetermined target organizational structure; The sorting unit is configured to sort the multiple target objects based on the sorting reference information of the multiple target objects, and send the sorted multiple target objects to the first object.
18. The search-based object display device according to claim 17, characterized in that: The target object determination subunit is configured to execute: determining first weights of the various search modes based on the search mode data of the first object; Based on the first weight of the search mode corresponding to each of the candidate objects and the first recall reference information of each of the candidate objects, second recall reference information is obtained; The candidate object whose second recalled reference information is ranked in the front target digit is determined as the target object.
19. The search-based object display device according to claim 17, characterized in that: The reference information acquisition unit includes at least one of the following: A first reference subunit is configured to obtain first reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the first reference information of the target object, wherein the first reference information indicates the closeness of the relationship between the department to which the first object belongs and the department to which the target object belongs; A second reference subunit is configured to obtain second reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the second reference information of the target object, wherein the second reference information indicates a closeness of a management relationship between the first object and the target object; The third reference subunit is configured to obtain third reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the third reference information of the target object, wherein the third reference information represents the closeness of the cooperative relationship between the first object and the target object.
20. The search-based object display device according to claim 17, characterized in that: The reference information acquisition unit comprises: The fourth reference subunit is configured to obtain fourth reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the fourth reference information of the target object, wherein the fourth reference information represents the degree of preference of the first object for the department to which the target object belongs.
21. The search-based object display device according to claim 17, characterized in that: The reference information acquisition unit comprises: The fifth reference subunit is configured to obtain fifth reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the fifth reference information of the target object, wherein the fifth reference information represents the frequency of social interaction between the first object and the target object.
22. The search-based object display device according to claim 17, characterized in that: The reference information acquisition unit comprises: The sixth reference subunit is configured to obtain sixth reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the sixth reference information of the target object, wherein the sixth reference information represents the degree of social initiative of the target object towards the first object.
23. The search-based object display device according to claim 17, characterized in that: The reference information acquisition unit comprises: The seventh reference subunit is configured to obtain seventh reference information of the target object from predetermined relationship data, and determine sorting reference information of the target object based on the seventh reference information of the target object, wherein the seventh reference information represents the degree of social initiative of the first object towards the target object.
24. The search-based object display device according to claim 17, characterized in that: The reference information acquisition unit comprises: a sorting reference subunit, configured to determine sorting reference information of the target object based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information and the seventh reference information of the target object; Among them, the first reference information indicates the closeness of the relationship between the department to which the first object belongs and the department to which the target object belongs, the second reference information indicates the closeness of the management relationship between the first object and the target object, the third reference information indicates the closeness of the cooperative relationship between the first object and the target object, the fourth reference information indicates the first object's preference for the department to which the target object belongs, the fifth reference information indicates the frequency of social interaction between the first object and the target object, the sixth reference information indicates the target object's social initiative towards the first object, and the seventh reference information indicates the first object's social initiative towards the target object.
25. The search-based object display device according to claim 24, characterized in that: The sort reference subunit is configured to perform: In response to a search request of the first object based on a target search option, adjusting weights of a plurality of reference information of the target object so that a weight of a target reference information among the plurality of reference information increases, the target reference information corresponding to the target search option; Based on at least two of the first reference information, the second reference information, the third reference information, the fourth reference information, the fifth reference information, the sixth reference information and the seventh reference information of the target object and the weights of the multiple reference information, the sorting reference information of the target object is determined.
26. The search-based object display device according to claim 17, characterized in that: The device also includes: An object data acquisition unit is configured to acquire object data of the target organizational structure, wherein the object data is used to represent identities of multiple objects in the target organizational structure; A social behavior acquisition unit, configured to acquire historical social behaviors of the multiple objects, wherein the historical social behaviors include one-way social behaviors, two-way social behaviors, and search-click behaviors; A relationship data determination unit is configured to determine the relationship data of the target organizational structure based on the object data and the historical social behaviors of the multiple objects, wherein the relationship data includes multiple reference information, and the multiple reference information is used to represent the social relationship between the multiple objects from different angles, and the different angles include the closeness of the relationship between departments, the closeness of the management relationship, the closeness of the cooperative relationship, the frequency of social interaction, and the initiative of social interaction.
27. The search-based object display device according to claim 26, characterized in that: The relationship data determination unit includes at least one of the following: A first determining subunit is configured to determine first reference information between any two objects in the object data based on department belonging data of the two objects, wherein the first reference information is used to indicate the closeness of the relationship between the departments to which the two objects belong, and the department belonging data indicates the department to which the objects belong; A second determining subunit is configured to acquire second reference information between the two objects based on the level data of the two objects in the object data, wherein the second reference information is used to indicate the closeness of the management relationship between the two objects; The third determination subunit is configured to determine third reference information between the two objects based on the department affiliation data of the two objects in the object data and the relationship between the departments, wherein the third reference information indicates the closeness of the cooperation relationship between the two objects.
28. The search-based object display device according to claim 26, characterized in that: The relationship data determination unit is configured to execute: Based on the historical social behaviors of the multiple objects, determining multiple second objects of a first object among the multiple objects, the multiple second objects belong to the same department, and the historical social behaviors between the second objects and the first object meet the target condition; If the number of the plurality of second objects is greater than the target number, the departments to which the plurality of second objects belong are determined as the target departments of the first object, and relationship data between the first object and the target department is acquired.
29. The search-based object display device according to claim 28, characterized in that: The relationship data determination unit further includes: The fourth determination subunit is configured to determine fourth reference information between the first object and multiple objects in the target department based on the relationship data between the first object and the target department, and the fourth reference information represents the preference degree of the first object to the target department.
30. The search-based object display device according to claim 26, characterized in that: The relationship data determining unit comprises: The fifth determining subunit is configured to determine fifth reference information between any two objects among the multiple objects based on the two-way social behavior between the two objects, wherein the fifth reference information indicates the social frequency between the two objects.
31. The search-based object display device according to claim 26, characterized in that: The relationship data determining unit comprises: The sixth determining subunit is configured to determine sixth reference information of any two objects among the multiple objects based on the unidirectional social behavior between the two objects, wherein the sixth reference information indicates the degree of social initiative of one of the two objects to the other object.
32. The search-based object display device according to claim 26, characterized in that: The relationship data determining unit comprises: The seventh determination subunit is configured to determine seventh reference information of any two objects based on the search and click behavior of one object toward the other object, wherein the seventh reference information indicates the degree of social initiative of one object toward the other object.
33. A server, characterized in that: The server comprises: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the search-based object display method according to any one of claims 1 to 16.
34. A computer-readable storage medium, characterized in that: When the program code in the computer-readable storage medium is executed by a processor of a server, the server is enabled to execute the search-based object display method according to any one of claims 1 to 16.
35. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the search-based object display method according to any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Information search method, system, equipment and medium
CN113010585A