Search recommendation method and device
By obtaining user tag information and feature priority matching, intelligently sorting the recommended data model, the problem of cumbersome data model recommendation in the existing technology is solved, and the user query efficiency and experience is improved.
Patent Information
- Application Number
- CN202310575314.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-19
- Publication Date
- 2024-11-22
AI Technical Summary
The recommendation principle of the existing data model recommendation function is simple. After users type keywords, they return many results. Users need to identify them one by one. The work is cumbersome and a waste of time.
By obtaining user tag information, including user characteristics, queryed data model and query times, fuzzy matching and feature priority matching are performed, intelligently sorting the recommended results, output from large to small according to the number of queries, increase the ASCII code value sorting, and improve the User experience.
It greatly reduces the time cost of users during data query, improves the accuracy and efficiency of data model recommendations, and users can quickly find the required data model.
Smart Images

Figure CN119003601A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a search recommendation method and device. Background Art
[0002] Existing big data platforms usually integrate multiple functions such as data query, data development, and data governance. Among them, the data query function is used by the most users, including R&D personnel and business personnel in various business lines. Before using the data query function, both R&D personnel and business personnel generally type in keywords in the data model name to retrieve the data model name, thereby filtering and obtaining the full name of the user's expected data model, and then use the determined data model to query data.
[0003] The existing data model recommendation function has a relatively simple recommendation principle. First, the search is performed based on the keywords in the data model name. If the fuzzy match identifies the same keyword, the query result is returned. If the fuzzy match does not identify the same keyword, no result is returned. Then, the matching results are recommended to the user in the order of ASCII code values. Generally, the keyword information typed by the user is relatively short, and the recommended results returned are very large. The user needs to identify the model name one by one by eye, which is cumbersome and wastes a lot of time. Summary of the invention
[0004] The embodiments of the present disclosure provide a search recommendation method and device.
[0005] In a first aspect, an embodiment of the present disclosure provides a search recommendation method, comprising: in response to receiving a query request including a keyword from a user, obtaining tag information of the user, wherein the tag information includes: at least one user feature, a queried data model including the keyword and a corresponding query count; fuzzy matching the keyword with the name of the data model in a database; if the fuzzy match is successful, loading at least one first data model that has successfully fuzzy matched into a cache, and obtaining tag information of at least one target user who has queried the at least one first data model; matching the user feature of the user with the feature of the at least one target user according to a predetermined feature priority, and determining a second data model including the keyword that has been queried by the successfully matched target user; and outputting the second data model in the order of the query count of the second data model in the tag information of the successfully matched target user from large to small.
[0006] In some embodiments, the method further includes: outputting other data models in the at least one first data model that do not belong to the second data model in ascending order of ASCII code value after the second data model.
[0007] In some embodiments, the at least one user feature includes a position; and the user feature of the user is matched with the feature of the at least one target user according to a predetermined feature priority to determine a second data model including the keyword that has been queried by the successfully matched target user, including: if the at least one target user includes the user, then the data model including the keyword that has been queried by the user is determined as the second data model; otherwise, if the at least one target user includes a target user with the same position as the user, then the data model including the keyword that has been queried by the target user with the same position as the user is determined as the second data model.
[0008] In some embodiments, the at least one user feature includes a department; and the user feature of the user is matched with the feature of the at least one target user according to a predetermined feature priority to determine a second data model including the keyword that has been queried by the successfully matched target user, further comprising: if the at least one target user does not include a target user with the same position as the user, determining whether the at least one target user includes a target user with the same department as the user; if so, determining the data model including the keyword that has been queried by the target user with the same department as the user as the second data model.
[0009] In some embodiments, the method further includes: recording the query time; and counting the number of queries of the data model including the keyword according to a predetermined time period.
[0010] In some embodiments, the outputting of the second data model in the order of the number of queries for the second data model in the tag information of the successfully matched target user from large to small includes: outputting the second data model in the order of the number of queries for the second data model in the tag information of the successfully matched target user within a predetermined time period from large to small.
[0011] In some embodiments, the method further includes: in response to detecting that the user selects the target data model, multiplying the number of queries for the target data model in the user's tag information by a weighting coefficient.
[0012] In a second aspect, an embodiment of the present disclosure provides a search recommendation device, comprising: an acquisition unit, configured to acquire tag information of a user in response to receiving a query request including a keyword from the user, wherein the tag information includes: at least one user feature, a queried data model including the keyword and a corresponding query number; a first matching unit, configured to fuzzy match the keyword with the name of the data model in a database; a loading unit, configured to load at least one first data model that has successfully fuzzy matched into a cache if the fuzzy match is successful, and acquire tag information of at least one target user who has queried the at least one first data model; a second matching unit, configured to match the user feature of the user with the feature of the at least one target user according to a predetermined feature priority, and determine a second data model including the keyword that has been queried by the successfully matched target user; a sorting unit, configured to output the second data model in the order of the query number of the second data model in the tag information of the successfully matched target user from large to small.
[0013] In some embodiments, the sorting unit is further configured to: output other data models in the at least one first data model that do not belong to the second data model after the second data model in order of ASCII code values from small to large.
[0014] In some embodiments, the at least one user feature includes a position; and the second matching unit is further configured to: if the at least one target user includes the user, determine the data model including the keyword queried by the user as the second data model; otherwise, if the at least one target user includes a target user with the same position as the user, determine the data model including the keyword queried by the target user with the same position as the user as the second data model.
[0015] In some embodiments, the at least one user feature includes a department; and the second matching unit is further configured to: if the at least one target user does not include a target user with the same position as the user, determine whether the at least one target user includes a target user with the same department as the user; if included, determine the data model including the keyword that has been queried by the target user with the same department as the user as the second data model.
[0016] In some embodiments, the device further comprises a statistical unit configured to: record the query time; and count the number of queries of the data model including the keyword that have been queried according to a predetermined time period.
[0017] In some embodiments, the second matching unit is further configured to: output the second data model in descending order of the number of queries within a predetermined time period for the second data model in the tag information of the successfully matched target user.
[0018] In some embodiments, the apparatus further comprises a weighting unit configured to: in response to detecting that the user selects a target data model, multiply the number of queries for the target data model in the user's tag information by a weighting coefficient.
[0019] In a third aspect, an embodiment of the present disclosure provides an electronic device for searching for recommendations, comprising: one or more processors; a storage device having one or more computer programs stored thereon, wherein when the one or more computer programs are executed by the one or more processors, the one or more processors implement a method as described in any one of the first aspects.
[0020] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method as described in any one of the first aspects.
[0021] The search recommendation method and device provided by the embodiments of the present disclosure analyzes user behavior or attributes and other characteristics based on the background algorithm when the user enters a keyword to retrieve the data model, and then intelligently sorts and recommends the results to the user according to the algorithm analysis conclusion. With the support of user feature analysis, the returned data model results are likely to be in the top three. Compared with sorting the returned results in order of ASCII code values and then identifying them one by one, intelligent sorting and recommendation will help users save a lot of time costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0023] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;
[0024] Figure 2 is a flow chart of an embodiment of a search recommendation method according to the present disclosure;
[0025] Figure 3 is a schematic diagram of an application scenario of the search recommendation method according to the present disclosure;
[0026] Figure 4 is a flowchart of another embodiment of the search recommendation method according to the present disclosure;
[0027] Figure 5is a structural schematic diagram of an embodiment of a search recommendation device according to the present disclosure;
[0028] Figure 6 It is a structural diagram of a computer system of an electronic device suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0031] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the search recommendation method or search recommendation apparatus of the present disclosure can be applied.
[0032] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0033] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as big data platform applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0034] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens and supporting big data queries, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0035] The server 105 may be a server that provides various services, such as a background data server that provides support for the data model displayed on the terminal devices 101, 102, and 103. The background data server may analyze and process the received query request and other data, and feed back the processing result (such as the data model) to the terminal device.
[0036] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here. The server can also be a server of a distributed system, or a server combined with a blockchain. The server can also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.
[0037] It should be noted that the search recommendation method provided in the embodiments of the present disclosure is generally executed by the server 105 , and accordingly, the search recommendation device is generally disposed in the server 105 .
[0038] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0039] Continue to refer Figure 2 , shows a process 200 of an embodiment of a search recommendation method according to the present disclosure. The search recommendation method comprises the following steps:
[0040] Step 201: in response to receiving a query request including a keyword from a user, obtain tag information of the user.
[0041] In this embodiment, the execution subject of the search recommendation method (for example Figure 1 The server shown in the figure can receive a query request from a terminal used by a user for searching through a wired connection or a wireless connection, and the query request includes a keyword. The query request can also include a user identifier (for example, a user ERP code, an ID number, a telephone number, a work number, etc.). The user's tag information is obtained according to the user identifier, wherein the tag information may include: at least one user feature, a queried data model including the keyword, and a corresponding query count.
[0042] User tags are predefined, including user characteristics (such as user roles (such as positions), departments, business lines), queried data models containing keywords and the corresponding query times. The queried data models containing keywords and the corresponding query times can be the query times of querying data models containing the keywords within a predetermined time period (such as the past 90 days, the past 30 days, etc.). For the declared user tag table fields and types, refer to the following table:
[0043]
[0044] Step 202: perform fuzzy matching between the keyword and the name of the data model in the database.
[0045] In this embodiment, the user enters the keyword in the data model name in the search box, and the background will perform fuzzy matching in the database based on the keyword content. If no relevant content is matched, the returned display result is empty. Step 203, if the fuzzy matching is successful, at least one first data model that successfully fuzzily matches is loaded into the cache, and the tag information of at least one target user who has queried at least one first data model is obtained.
[0046] In this embodiment, if the fuzzy match has a corresponding data model containing the keyword, all matched data models are first loaded into the cache for further logical judgment. The first data model here refers to the data model whose name successfully matches the keyword. After each user has queried the data model, the user's tag information will be associated with the data model. Correspondingly, the user who has queried the first data model can be searched according to the name of the first data model through the inverted index, which is named the target user here. Then obtain the tag information of the target user.
[0047] Step 204: Match the user's user features with features of at least one target user according to a predetermined feature priority, and determine a second data model including keywords that has been queried by the successfully matched target user.
[0048] In this embodiment, the user has multiple features, and matching can be started in order of priority from high to low. User identification is also one of the user features, and has the highest priority. In general, the order of priority is: user identification> position> department> company> group. Match the features with high priority first. If the match is successful, there is no need to match the features with low priority. If the match fails, continue to match the features with low priority until the same features are matched. The second data model here refers to the data model including keywords that the target user has queried in the first data model, and the number of second data models is less than the number of first data models.
[0049] The priority is gradually degraded from small to large number of people, that is, the higher the priority, the fewer the number of users with matching features.
[0050] Optionally, if the number of high-priority feature matching results is less than a predetermined threshold, low-priority features may continue to be matched, but the search results matched with high priority are displayed ahead of the low-priority search results.
[0051] Step 205 , output the second data model in descending order of the number of queries of the second data model in the tag information of the successfully matched target user.
[0052] In this embodiment, the search results include two parts, the data model containing the keyword and the data model not containing the keyword. First, there may be one or more data models containing the keyword. If there is only one, the search result returned will display the data model containing the keyword first; if there are multiple, they will be returned and displayed in descending order according to the number of queries. The number of queries can be a statistical result within a predetermined time period, such as the past 90 days.
[0053] The method provided by the above embodiment of the present disclosure first searches for keywords entered by the user, and the search results are returned to the user based on the user behavior feature analysis method compatible with the ASCII code value sorting method. Based on the above data model recommendation method, the user experience is effectively improved and the user query time is reduced.
[0054] In some optional implementations of this embodiment, the method further includes: outputting other data models that do not belong to the second data model in the at least one first data model after the second data model in ascending order of ASCII code value. The data model that matches the user feature is already in the front, and the unmatched data model needs to be sorted according to a predetermined rule to facilitate user search.
[0055] In some optional implementations of this embodiment, the at least one user feature includes a position; and the user feature of the user is matched with the feature of the at least one target user according to a predetermined feature priority, and a second data model including the keyword that has been queried by the successfully matched target user is determined, including: if the at least one target user includes the user, the data model including the keyword that has been queried by the user is determined as the second data model; otherwise, if the at least one target user includes a target user with the same position as the user, the data model including the keyword that has been queried by the target user with the same position as the user is determined as the second data model. The priority of the position is lower than the user identification. First, the user identification is matched to determine whether the user has queried the data model including the keyword. If the keyword has not been queried, the data model including the keyword that has been queried by other users of the same position is referenced.
[0056] In some optional implementations of this embodiment, the at least one user feature includes a department; and the matching of the user feature of the user with the feature of the at least one target user according to a predetermined feature priority to determine a second data model including the keyword that has been queried by the successfully matched target user also includes: if the at least one target user does not include a target user with the same position as the user, then determining whether the at least one target user includes a target user with the same department as the user; if included, determining the data model including the keyword that has been queried by the target user with the same department as the user as the second data model. If the user himself and other users with the same position have not queried a data model including the keyword, then the scope can be expanded to other users in the same department.
[0057] In some optional implementations of this embodiment, the method further includes: recording the query time; and counting the number of queries of the data model including the keyword that has been queried according to a predetermined time period. In order to make the statistical result of the number of queries more meaningful, the time period statistics can be set. The closer the distance, the more credible it is. The number of queries in multiple time periods can be counted for the user to choose, for example, the past 30 days, the past 60 days, the past 90 days, etc.
[0058] In some optional implementations of this embodiment, the step of outputting the second data model in descending order of the number of queries of the second data model in the tag information of the successfully matched target user comprises: outputting the second data model in descending order of the number of queries of the second data model in the tag information of the successfully matched target user within a predetermined time period. The user can choose the time period by which the query number is sorted, and the closer the date, the more reference significance it has.
[0059] Continue to see Figure 3 , Figure 3 FIG. 1 is a schematic diagram of an application scenario of the search recommendation method according to this embodiment. Figure 3 In the application scenario, the user behavior is analyzed according to the user tag features to make logical judgments, and the data model results retrieved by the user are intelligently recommended based on the judgment results.
[0060] 1. User Tags
[0061] Define user tags, including user roles, business lines, and data models containing the keyword in the past 90 days. Declare user tag table fields and types, etc., as shown in the table above.
[0062] 2. Keyword search
[0063] When the user types a keyword in the data model name in the search box, the background will perform fuzzy matching in the database based on the keyword content. If no relevant content is matched, the returned display result will be empty. If the fuzzy match has a corresponding data model containing the keyword, all matched data models will be loaded into the cache first for further logical judgment, refer to the user feature judgment in step 3.
[0064] 3. User characteristics judgment
[0065] After the matched data model is retrieved, the results will be recommended and displayed according to the user tag features. Determine whether the data model that the user has queried in the past 90 days contains the keyword. If it does, you can learn more about the processing process in step 4. If it does not contain the keyword, you need to further analyze the user tag features and analyze whether the user role belongs to "R&D" or "Business". Assuming that the business line to which the user belongs is the Supply Chain Business Department according to the "business_line" field, it can be known that the user's role is "Business". Then you can further analyze whether the data model that the owner of the "Supply Chain Business Department" business line has queried in the past 90 days contains the keyword. If it does, you can learn more about the processing process in step 4. If it does not contain the keyword, you can expand the user range to all business lines, that is, filter out users with the "user_role" field enumeration value of "2". Then you can further analyze whether the data model that users of all business lines have queried in the past 90 days contains the keyword. If it does, you can learn more about the processing process in step 4. If it does not contain the keyword, the user is limited to the R&D user, that is, the "user_role" enumeration value is "1". The analysis method is the same as the processing process of the business user.
[0066] 4. Intelligent recommendation
[0067] After judging the user characteristics in step 3, it can be determined that the user himself or others must have searched for the data model containing the keyword. The search results include two parts, the data model containing the keyword and the data model not containing the keyword. First, there may be one or more data models containing the keyword. If there is only one, the search result returned will display the data model containing the keyword first; if there are multiple, they will be returned and displayed in descending order based on the number of queries in the past 90 days. Then, for the remaining data models that do not contain the keyword, the returned display results will be immediately followed by the end of the display results of the data model containing the keyword, and this part of the display results will be displayed in ascending order based on the size of the ASCII code value.
[0068] 5. Label update
[0069] Step 5 does not involve data model display, so the processing process is not shown in the figure. If the user obtains the data model according to the above method and queries the data model in the data query window, the user label will be automatically updated. Assuming that the name of the data model queried by the user is: tmp_hive_20220101 and it is the first time to query the data model, the value of the "model_keys_90" field is NULL. After querying the data model, the user will update the "model_keys_90" field, and the updated result value is<tmp_hive_20220101,1> ; Assume that the name of the data model queried by the user is: tmp_hive_20220101 and has been queried 3 times in the past 90 days. At this time, the value of the "model_keys_90" field is<tmp_hive_20220101,3> , the user will update the "model_keys_90" field after querying the data model, and the updated result value is<tmp_hive_20220101,4> .
[0070] Further references Figure 4 , which shows a process 400 of another embodiment of a search recommendation method. The process 400 of the search recommendation method includes the following steps:
[0071] Step 401, in response to receiving a query request including a keyword from a user, obtain the tag information of the user. Step 402, fuzzy match the keyword with the name of the data model in the database. Step 403, if the fuzzy match is successful, load at least one first data model that successfully fuzzily matches into the cache, and obtain the tag information of at least one target user who has queried at least one first data model.
[0072] Step 404: Match the user's user features with features of at least one target user according to a predetermined feature priority, and determine a second data model including keywords that has been queried by the successfully matched target user.
[0073] Step 405 , output the second data model in descending order of the number of queries of the second data model in the tag information of the successfully matched target user.
[0074] Steps 401-405 are substantially the same as steps 201-205, and thus are not described in detail herein.
[0075] Step 406: In response to detecting that the user selects the target data model, the number of queries for the target data model in the user's tag information is multiplied by a weighting coefficient.
[0076] In this embodiment, the query times are counted after each query. The user selects the target data model he wants from the listed search results. For the convenience of statistics, the query times are directly multiplied by a weighting coefficient greater than 1, and no additional field is needed to count the number of clicks. This can improve the ranking of the selected target data model and increase the query speed.
[0077] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a search recommendation device. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0078] like Figure 5As shown, the search recommendation device 500 of this embodiment includes: an acquisition unit 501, a first matching unit 502, a loading unit 503, a second matching unit 504 and a sorting unit 505. The acquisition unit 501 is configured to, in response to receiving a query request including a keyword from a user, acquire the tag information of the user, wherein the tag information includes: at least one user feature, a queried data model including the keyword and a corresponding query number; the first matching unit 502 is configured to perform fuzzy matching on the keyword with the name of the data model in the database; the loading unit 503 is configured to load at least one first data model that has successfully fuzzy matched into a cache if the fuzzy matching is successful, and acquire the tag information of at least one target user who has queried the at least one first data model; the second matching unit 504 is configured to match the user feature of the user with the feature of the at least one target user according to a predetermined feature priority, and determine the second data model including the keyword that has been queried by the successfully matched target user; the sorting unit 505 is configured to output the second data model in the order of the query number of the second data model in the tag information of the successfully matched target user from large to small.
[0079] In this embodiment, the specific processing of the acquisition unit 501, the first matching unit 502, the loading unit 503, the second matching unit 504 and the sorting unit 505 of the search recommendation device 5600 can be referred to. Figure 2 Corresponding to step 201, step 202, step 203, step 204 and step 205 in the embodiment.
[0080] In some optional implementations of this embodiment, the sorting unit 505 is further configured to: output other data models in the at least one first data model that do not belong to the second data model after the second data model in order of ASCII code value from small to large.
[0081] In some optional implementations of this embodiment, the at least one user feature includes a position; and the second matching unit 504 is further configured to: if the at least one target user includes the user, then the data model including the keyword queried by the user is determined as the second data model; otherwise, if the at least one target user includes a target user with the same position as the user, then the data model including the keyword queried by the target user with the same position as the user is determined as the second data model.
[0082] In some optional implementations of this embodiment, the at least one user feature includes a department; and the second matching unit 504 is further configured to: if the at least one target user does not include a target user with the same position as the user, determine whether the at least one target user includes a target user with the same department as the user; if included, determine the data model including the keyword that has been queried by the target user with the same department as the user as the second data model.
[0083] In some optional implementations of this embodiment, the device 500 further includes a statistical unit (not shown in the drawings) configured to: record the query time; and count the number of queries for the data model including the keyword in a predetermined time period.
[0084] In some optional implementations of this embodiment, the second matching unit 504 is further configured to: output the second data model in descending order of the number of queries within a predetermined time period of the second data model in the tag information of the successfully matched target user.
[0085] In some optional implementations of this embodiment, the device 500 also includes a weighting unit (not shown in the drawings), which is configured to: in response to detecting that the user selects the target data model, multiply the number of queries for the target data model in the user's tag information by a weighting coefficient.
[0086] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0087] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0088] An electronic device comprises: one or more processors; a storage device on which one or more computer programs are stored, and when the one or more computer programs are executed by the one or more processors, the one or more processors implement the method described in process 200 or 400.
[0089] A computer-readable medium stores a computer program, wherein the computer program implements the method described in process 200 or 400 when executed by a processor.
[0090] Figure 6A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0091] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0092] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0093] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as the search recommendation method. For example, in some embodiments, the search recommendation method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the search recommendation method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the search recommendation method in any other appropriate manner (e.g., by means of firmware).
[0094] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0095] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0096] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may include or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0097] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0098] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0099] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a server of a distributed system, or a server combined with a blockchain. The server may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. The server may be a server of a distributed system, or a server combined with a blockchain. The server may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.
[0100] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0101] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A search recommendation method, comprising: In response to receiving a query request including a keyword from a user, obtaining tag information of the user, wherein the tag information includes: at least one user feature, a queried data model including the keyword, and a corresponding query number; performing fuzzy matching on the keyword and the name of the data model in a database; if the fuzzy matching succeeds, loading at least one first data model that succeeds in the fuzzy matching into a cache, and obtaining tag information of at least one target user who has queried the at least one first data model; Matching the user feature of the user with the feature of the at least one target user according to a predetermined feature priority, and determining a second data model including the keyword that has been queried by the successfully matched target user; The second data model is output in descending order according to the query times of the second data model in the tag information of the successfully matched target user.
2. The method according to claim 1, wherein: The method further comprises: Other data models in the at least one first data model that do not belong to the second data model are output after the second data model in ascending order of ASCII code value.
3. The method according to claim 1, wherein: The at least one user characteristic includes a job title; and The matching of the user feature of the user with the feature of the at least one target user according to a predetermined feature priority, and determining a second data model including the keyword that has been queried by the successfully matched target user, comprises: If the at least one target user includes the user, determining the data model including the keyword that has been queried by the user as the second data model; Otherwise, if the at least one target user includes a target user with the same position as the user, a data model including the keyword that has been queried by the target user with the same position as the user is determined as the second data model.
4. The method according to claim 3, wherein: The at least one user characteristic comprises department; and The matching of the user feature of the user with the feature of the at least one target user according to a predetermined feature priority, and determining a second data model including the keyword that has been queried by the successfully matched target user, further includes: If the at least one target user does not include a target user with the same position as the user, determining whether the at least one target user includes a target user with the same department as the user; If included, the data model including the keyword that has been queried by the target user with the same department as the user is determined as the second data model.
5. The method according to claim 1, wherein: The method further comprises: Record query time; The number of queries of the data model including the keyword that have been queried is counted according to a predetermined time period.
6. The method according to claim 5, wherein: The step of outputting the second data model in descending order of the number of queries of the second data model in the tag information of the successfully matched target user includes: The second data model is outputted in descending order according to the query times of the second data model in the tag information of the successfully matched target user within a predetermined time period.
7. The method according to claim 1, wherein: The method further comprises: In response to detecting that the user selects the target data model, the number of queries for the target data model in the tag information of the user is multiplied by a weighting coefficient.
8. A search recommendation device, comprising: The acquisition unit is configured to, in response to receiving a query request including a keyword from a user, acquire tag information of the user, wherein the tag information includes: at least one user feature, a queried data model including the keyword, and a corresponding query number; the first matching unit is configured to perform fuzzy matching between the keyword and the name of the data model in the database; the loading unit is configured to load at least one first data model that succeeds in fuzzy matching into a cache if the fuzzy matching succeeds, and acquire tag information of at least one target user who has queried the at least one first data model; A second matching unit is configured to match the user feature of the user with the feature of the at least one target user according to a predetermined feature priority, and determine a second data model including the keyword that has been queried by the successfully matched target user; The sorting unit is configured to output the second data model in descending order according to the query times of the second data model in the tag information of the successfully matched target user.
9. An electronic device for searching for recommendations, comprising: one or more processors; a storage device having one or more computer programs stored thereon, When the one or more computer programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Metadata search method and device, electronic equipment and storage medium
CN110442614A
Information search method and device, electronic equipment and storage medium
CN115329184A
Recommendation method and device of search keyword, equipment and storage medium
CN116089567A
