Resource retrieval method, device, electronic device and storage medium

By arranging resources to space and optimizing permission lists, the problems of frequent index updates and complex query conditions in the existing technology are solved, and the efficiency and performance of resource retrieval is improved.

CN114201497BActive Publication Date: 2024-12-20CCB FINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111558468.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2024-12-20
Estimated Expiration
2041-12-17

AI Technical Summary

Technical Problem

When conducting full-text search under permission control, the prior art index updates are frequent and query conditions are complex, resulting in large consumption of memory and input and output interface resources, and low retrieval performance and efficiency.

Method used

By affixing the resources to the space, filtering the target space based on the user's spatial permission list, and optimizing the permission list using preset matching rules and convergence rules, reducing the complexity of the search query conditions, and handing over the structured data relationship between the user and the resource to the Relational database processing.

Benefits of technology

It improves the efficiency of resource retrieval, saves memory resource consumption, simplifies retrieval and query conditions, and improves the full-text retrieval performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114201497B_ABST
    Figure CN114201497B_ABST
Patent Text Reader

Abstract

The present disclosure provides a resource retrieval method, which can be applied to the field of computer technology. The resource retrieval method includes: in response to a resource retrieval request, parsing the user information and retrieval keyword information in the resource retrieval request; obtaining a space permission list corresponding to the user information according to the user information, wherein the user corresponding to the user information has the authority to access the space in the space permission list; screening a target space corresponding to the user information from multiple spaces according to a preset matching rule according to the space permission list, wherein the target space includes resources to be retrieved; and determining the target resource from the resources to be retrieved according to the retrieval keyword information. The present disclosure also provides a resource retrieval device, equipment, and storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more specifically to a resource retrieval method, apparatus, device, medium and program product. Background Art

[0002] When teams in an enterprise or organization collaborate, they need to use a knowledge base system to share and collaboratively edit information such as knowledge documents, project progress, and meeting minutes. When the knowledge base is used to a certain extent and the knowledge document content has reached a considerable scale, members of different teams in the knowledge base need to perform full-text searches on the document content under their permissions when using the knowledge base. At present, the method of full-text search under permission control generally takes documents as units, authorizes documents to users or user-related groups (such as user groups, roles, organizations, etc.), and establishes query indexes for authorized objects.

[0003] There are at least the following problems in the related technology: documents are directly authorized to users or user-related groups and a full-text search index is established for the authorization information. On the one hand, the index will be frequently updated as the authorization information changes, thereby consuming a large amount of memory and input and output interface resources. On the other hand, when there are more authorized users, the number of bits in the index query conditions will increase accordingly, generating lengthy Boolean filter statements during retrieval, ultimately resulting in reduced full-text retrieval performance and low retrieval efficiency. Summary of the invention

[0004] In view of the above problems, the present disclosure provides a resource retrieval method, apparatus, device, medium and program product.

[0005] According to a first aspect of the present disclosure, a resource retrieval method is provided, comprising:

[0006] In response to the resource search request, parsing the user information and search keyword information in the resource search request;

[0007] Acquire a space permission list corresponding to the user information according to the user information, wherein the user corresponding to the user information has the permission to access the space in the space permission list;

[0008] Filtering a target space corresponding to the user information from multiple spaces according to the space permission list and a preset matching rule, wherein the target space includes resources to be retrieved; and

[0009] According to the above search keyword information, the target resource is determined from the above resources to be searched.

[0010] According to an embodiment of the present disclosure, the resource retrieval method further includes:

[0011] The above-mentioned space permission list is converged according to the preset convergence rule to obtain an actual permission list and a converged permission list, wherein the above-mentioned actual permission list includes the space permissions that have not been converged in the above-mentioned space permission list, and the above-mentioned converged permission list is the space permissions formed after the space in the above-mentioned space permission list is converged;

[0012] The above-mentioned filtering the target space corresponding to the above-mentioned user information from the plurality of spaces according to the above-mentioned space permission list and the preset matching rule includes:

[0013] The target space corresponding to the user information is screened from multiple spaces according to the actual permission list and the converged permission list and the preset matching rule.

[0014] According to an embodiment of the present disclosure, the above-mentioned space permission list is converged according to a preset convergence rule to obtain an actual permission list and a converged permission list, including:

[0015] Analyze the above space permission list according to the space hierarchy structure to obtain analysis results;

[0016] When the above analysis result indicates that all child nodes belonging to the same parent node have spatial authority, the spatial code of the above parent node is stored in the above convergence authority list to obtain the above convergence authority list;

[0017] The spatial codes of the sub-nodes are filtered out from the spatial permission list to obtain the actual permission list.

[0018] According to an embodiment of the present disclosure, the resource retrieval method further includes:

[0019] Determine the spatial path corresponding to the space according to the spatial hierarchical structure and spatial coding;

[0020] Use the space path as the permission index corresponding to the resources in the space;

[0021] The above-mentioned filtering the target space corresponding to the above-mentioned user information according to the above-mentioned actual permission list and the above-mentioned converged permission list according to the preset matching rule includes:

[0022] The target space corresponding to the user information is filtered according to the actual permission list, the converged permission list and the permission index according to the preset matching rule.

[0023] According to an embodiment of the present disclosure, the above-mentioned filtering the above-mentioned target space corresponding to the above-mentioned user information according to the above-mentioned actual permission list, the above-mentioned converged permission list and the above-mentioned permission index according to the above-mentioned preset matching rule includes:

[0024] Generate a path list based on the space code in the above permission index;

[0025] According to the actual permission list and the converged permission list, the path list is matched according to the preset matching rule to obtain a matching result;

[0026] When the matching result indicates a successful match, the space corresponding to the path list is used as the target space.

[0027] According to an embodiment of the present disclosure, the above-mentioned path list is matched according to the above-mentioned actual authority list and the above-mentioned converged authority list according to the above-mentioned preset matching rule to obtain a matching result; when the above-mentioned matching result indicates that the match is successful, the space corresponding to the above-mentioned path list is used as the above-mentioned target space, including:

[0028] Matching the space code in the path list with the space code in the actual permission list to obtain a first matching result;

[0029] In the case where the first matching result indicates a matching failure, matching the space code in the path list with the space code in the convergence authority list to obtain a second matching result;

[0030] When the second matching result indicates a successful match, the space corresponding to the path list is used as the target space.

[0031] According to an embodiment of the present disclosure, when the second matching result indicates a successful match, taking the space corresponding to the path list as the target space includes:

[0032] When the second matching result indicates that the spatial coding in the convergence authority list has the same spatial coding as the spatial coding in the path list, and the convergence authority list does not contain the last spatial coding in the path list, the space corresponding to the path list will be used as the target space.

[0033] According to an embodiment of the present disclosure, when the first matching result indicates a matching failure, the space coding in the path list is matched with the space coding in the convergence authority list, and the second matching result is obtained, including:

[0034] When the first matching result indicates that the spatial coding in the path list does not have the same spatial coding as the spatial coding in the actual authority list, the spatial coding in the path list is matched with the spatial coding in the converged authority list to obtain the second matching result.

[0035] According to an embodiment of the present disclosure, the resource retrieval method further includes:

[0036] When the first matching result indicates that the space code in the path list is identical to the space code in the actual authority list, the space corresponding to the path list is used as the target space.

[0037] A second aspect of the present disclosure provides a resource retrieval device, comprising:

[0038] A parsing module, used to respond to a resource retrieval request and parse the user information and retrieval keyword information in the resource retrieval request;

[0039] An acquisition module, configured to acquire a space permission list corresponding to the user information according to the user information, wherein the user corresponding to the user information has the permission to access the space in the space permission list;

[0040] a first screening module, configured to screen a target space corresponding to the user information from a plurality of spaces according to the space permission list and a preset matching rule, wherein the target space includes resources to be retrieved; and

[0041] The first determining module is used to determine the target resource from the resources to be searched according to the search keyword information.

[0042] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the resource retrieval method.

[0043] A fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned resource retrieval method.

[0044] The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned resource retrieval method when executed by a processor.

[0045] According to an embodiment of the present disclosure, by responding to a resource retrieval request, the user information and retrieval keyword information in the resource retrieval request are parsed; then, a space permission list corresponding to the user information is obtained according to the user information, wherein the user corresponding to the user information has the permission to access the space in the space permission list; then, according to the space permission list, a target space corresponding to the user information is screened from multiple spaces according to a preset matching rule, wherein the target space includes the resources to be retrieved; finally, according to the retrieval keyword information, the target resource is determined from the resources to be retrieved. The present disclosure attributes resources to spaces, and authorizes space permissions to users, thereby separating resources from users, reducing the complexity of retrieval query conditions, and at the same time, the association relationship of structured data between users and resources is handled by a relational database, saving memory resource consumption and helping to improve retrieval efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0047] Figure 1 The application scenario diagram of the resource retrieval method, apparatus, device, medium and program product according to the embodiment of the present disclosure is schematically shown;

[0048] Figure 2 A flowchart of a resource retrieval method according to an embodiment of the present disclosure is schematically shown;

[0049] Figure 3 A schematic diagram schematically shows the convergence of the space permission list according to an embodiment of the present disclosure;

[0050] Figure 4 The schematic diagram shows the process of screening the target space according to the preset matching rules;

[0051] Figure 5 The schematic diagram shows the architecture of the retrieval device according to the embodiment of the present disclosure;

[0052] Figure 6 A flowchart of a resource retrieval method according to another embodiment of the present disclosure is schematically shown;

[0053] Figure 7 The structure block diagram of the resource search device according to the embodiment of the present disclosure is schematically shown;

[0054] Figure 8 A schematic diagram of a structure of a resource search device according to another embodiment of the present disclosure is shown; and

[0055] Fig. 9 A block diagram of an electronic device suitable for implementing a resource retrieval method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0056] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0057] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0058] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0059] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0060] When teams in an enterprise or organization collaborate, they need to use a resource library system to share and collaboratively edit knowledge documents, project progress, meeting minutes, and other resources. When the resource library is used to a certain extent and the resources have reached a considerable scale, members of different teams in the resource library need to perform full-text searches on the resources under their permissions when using the resource library.

[0061] Currently, the method for full-text search under authority control generally uses resources as units, authorizes resources to users or user-related groups (such as user groups, roles, organizations, etc.), and establishes a query index for the authorized objects.

[0062] However, there are at least the following problems in the related technology: resources are directly authorized to users or user-related groups and a full-text search index is established for the authorization information. On the one hand, the index will be frequently updated as the authorization information changes, thereby consuming a large amount of memory and input and output interface resources. On the other hand, when there are more authorized users, the number of bits in the index query conditions will increase accordingly, generating lengthy Boolean filter statements during retrieval, ultimately resulting in reduced full-text retrieval performance and low retrieval efficiency.

[0063] In view of this, the present disclosure aims at the above technical problems by attributing resources to spaces, authorizing space permissions to users, forming a space permission list corresponding to the user, and using the space permission list to filter out the space to which the user has permissions as the target space according to the preset matching rules. Since resources belong to spaces, determining the target space means determining all the resources to be retrieved to which the user has permissions; finally, the target resource is determined from the resources to be retrieved according to the search keywords. The present disclosure attributes resources to spaces and authorizes space permissions to users, thereby separating resources from users, reducing the complexity of search query conditions, and at the same time, the association relationship of structured data between users and resources is handled by a relational database, saving memory resource consumption and helping to improve search efficiency.

[0064] Specifically, an embodiment of the present disclosure provides a resource retrieval method, comprising: in response to a resource retrieval request, parsing user information and retrieval keyword information in the above resource retrieval request; obtaining a space permission list corresponding to the above user information based on the above user information, wherein the user corresponding to the above user information has the authority to access the space in the above space permission list; filtering a target space corresponding to the above user information from multiple spaces according to preset matching rules based on the above space permission list, wherein the above target space includes resources to be retrieved; and determining the target resource from the above resources to be retrieved based on the above retrieval keyword information.

[0065] It should be noted that the resource retrieval method and device provided in the embodiments of the present disclosure can be used in the computer field. The resource retrieval method and device provided in the embodiments of the present disclosure can also be used in any field other than the computer field. The application field of the resource retrieval method and device provided in the embodiments of the present disclosure is not limited.

[0066] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.

[0067] In the technical solution disclosed in the present invention, the acquisition, collection, storage, use, processing, transmission, provision, disclosure and application of data are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and do not violate public order and good morals.

[0068] Figure 1The application scenario diagram of the resource retrieval method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.

[0069] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a network, a terminal device and a server. The network 104 is used to provide a medium for a communication link 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.

[0070] 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 shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0071] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0072] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0073] It should be noted that the resource retrieval method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the resource retrieval device provided in the embodiment of the present disclosure can generally be set in the server 105. The resource retrieval method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the resource retrieval device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0074] 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.

[0075] The following will be based on Figure 1The scene described by Figure 2 to Figure 6 The resource retrieval method of the disclosed embodiment is described in detail.

[0076] Figure 2 The flowchart of the resource retrieval method according to the embodiment of the present disclosure is schematically shown.

[0077] like Figure 2 As shown, the resource retrieval method of this embodiment includes operations S210 to S240, and the resource retrieval method can be executed by a server.

[0078] In operation S210, in response to a resource search request, user information and search keyword information in the resource search request are parsed.

[0079] According to an embodiment of the present disclosure, user information may include, for example, information that can determine the user's space permissions. User information may include information such as the user group, role, or organization to which the user belongs. For example, information such as the user's name, user number, user position, and user permissions.

[0080] According to an embodiment of the present disclosure, the search keyword information may include, for example, a search keyword input by a user, which is used to search for resources corresponding to the keyword.

[0081] According to an embodiment of the present disclosure, when performing resource retrieval, the user logs in to the retrieval system on the login page, enters the retrieval keyword in the retrieval input box, and clicks the retrieval button to send a resource retrieval request, wherein the resource retrieval request includes user information and the retrieval keyword information entered by the user. In response to the resource retrieval request, the user information and the retrieval keyword information in the resource retrieval request are parsed to obtain the user information and the retrieval keyword information.

[0082] In operation S220, a space permission list corresponding to the user information is acquired according to the user information, wherein the user corresponding to the user information has the permission to access the space in the space permission list.

[0083] According to an embodiment of the present disclosure, the space to which the user has access rights may be determined based on the user information, and the space permission list may be obtained based on the user information.

[0084] According to an embodiment of the present disclosure, each space has a corresponding space code, and the space permission list includes space codes corresponding to spaces to which the user has access rights.

[0085] According to an embodiment of the present disclosure, the space code is a unique code of the space, which is used to identify and authorize the space. The space code may include English letters, numbers, etc. For example, the space code may be spaceA1, spaceB2.

[0086] In operation S230, a target space corresponding to the user information is screened from a plurality of spaces according to the space permission list and a preset matching rule, wherein the target space includes resources to be retrieved.

[0087] According to an embodiment of the present disclosure, the preset matching rule may include, for example, matching the space codes of multiple spaces with each space code in the space permission list in sequence, and using the successfully matched space as the target space. The target space is the space corresponding to the space code in the space permission list.

[0088] According to the embodiments of the present disclosure, resources are attributed to spaces, and resources are bound to corresponding spaces. When a user has access rights to a space, he or she also owns all resources in the space.

[0089] For example, among multiple spaces, a user has access rights to the following spaces: space with space code A, space with space code B, space with space code C, space with space code D, and space with space code E, then the space permission list corresponding to the user includes: A, B, C, D, and E. When determining the target space, the space codes of the multiple spaces are matched with A, B, C, D, and E in sequence, and the space with space code A, space with space code B, space with space code C, space with space code D, and space with space code E are screened out from the multiple spaces, that is, the target space corresponding to the user.

[0090] In operation S240, a target resource is determined from the resources to be searched according to the search keyword information.

[0091] According to the embodiment of the present disclosure, after the target space is determined, the resources in the target space are all resources to be searched, and a full-text search is performed from the resources to be searched according to the search keyword information, and the search results are rendered and displayed.

[0092] According to an embodiment of the present disclosure, by responding to a resource retrieval request, the user information and retrieval keyword information in the resource retrieval request are parsed; then, a space permission list corresponding to the user information is obtained according to the user information, wherein the user corresponding to the user information has the permission to access the space in the space permission list; then, according to the space permission list, a target space corresponding to the user information is screened from multiple spaces according to a preset matching rule, wherein the target space includes the resources to be retrieved; finally, according to the retrieval keyword information, the target resource is determined from the resources to be retrieved. The present disclosure attributes resources to spaces, and authorizes space permissions to users, thereby separating resources from users, reducing the complexity of retrieval query conditions, and at the same time, the association relationship of structured data between users and resources is handled by a relational database, saving memory resource consumption and helping to improve retrieval efficiency.

[0093] According to an embodiment of the present disclosure, the above-mentioned resource retrieval method also includes: converging the above-mentioned space permission list according to preset convergence rules to obtain an actual permission list and a converged permission list, wherein the above-mentioned actual permission list includes space permissions that have not been converged in the above-mentioned space permission list, and the above-mentioned converged permission list is the space permissions formed after the spaces in the above-mentioned space permission list are converged; wherein, the above-mentioned screening of the target space corresponding to the above-mentioned user information from multiple spaces according to the preset matching rules according to the above-mentioned space permission list includes: screening the above-mentioned target space corresponding to the above-mentioned user information from multiple spaces according to the above-mentioned actual permission list and the above-mentioned converged permission list according to the above-mentioned preset matching rules.

[0094] According to an embodiment of the present disclosure, a plurality of spaces form a space tree, and the space tree includes one or more layers to form a corresponding space hierarchical structure.

[0095] According to an embodiment of the present disclosure, the preset convergence rule may include, for example, when all child nodes belonging to the same parent node have spatial authority, converging the authority to the spatial encoding of the parent node, and filtering the spatial encoding of the child node from the spatial authority list.

[0096] For example, in the spatial hierarchy, the spatial code of one of the parent nodes is A, and the spatial codes of the two child nodes belonging to the parent node are B and C respectively. When the user has the spatial permissions of B and C, the user's permissions are converged to the parent node A, the spatial code A of the parent node is stored in the converged permission list, and the spatial codes B and C are filtered out from the spatial permission list to obtain the actual permission list.

[0097] According to an embodiment of the present disclosure, the above-mentioned space permission list can be converged multiple times according to preset convergence rules until there are no child nodes that can be converged.

[0098] According to an embodiment of the present disclosure, the above-mentioned spatial permission list is converged according to a preset convergence rule to obtain an actual permission list and a converged permission list, including: analyzing the above-mentioned spatial permission list according to the spatial hierarchical structure to obtain an analysis result; when the above-mentioned analysis result indicates that all child nodes belonging to the same parent node have spatial permissions, the spatial coding of the above-mentioned parent node is stored in the above-mentioned converged permission list to obtain the above-mentioned converged permission list; the spatial coding of the above-mentioned child node is filtered out from the above-mentioned spatial permission list to obtain the above-mentioned actual permission list.

[0099] Figure 3 A schematic diagram schematically shows the convergence of the space permission list according to an embodiment of the present disclosure.

[0100] like Figure 3As shown, the spatial permission list corresponding to the user includes spatial codes D, H, C, J, and K, which are converged twice in sequence, including an initial spatial hierarchy structure 310, a spatial hierarchy structure 320 after the first convergence, and a spatial hierarchy structure 330 after the second convergence.

[0101] A convergence includes analyzing the spatial permission list according to the initial spatial hierarchical structure 310, and the analysis results include that the two child nodes J and K belonging to N both have spatial permissions, and the two child nodes D and H belonging to B both have spatial permissions; then the spatial codes of J and K are filtered out from the spatial permission list, and the spatial code of N is stored in the converged permission list, the spatial codes of D and H are filtered out from the spatial permission list, and the spatial code of B is stored in the converged permission list, to obtain an actual permission list and a converged permission list after a convergence, wherein the actual permission list after a convergence includes the spatial code C, and the converged permission list after a convergence includes the spatial codes N and B.

[0102] The initial spatial hierarchical structure after the first convergence forms the spatial hierarchical structure after the first convergence 320. The second convergence is performed on the basis of the spatial hierarchical structure 320 after the first convergence.

[0103] The secondary convergence includes analyzing the actual permission list C and the converged permission lists N and B after the first convergence according to the spatial hierarchical structure 320 after the first convergence. The analysis result includes that the two child nodes B and C of A both have spatial permissions, then the spatial code B is filtered out from the converged permission list, the spatial code C is filtered out from the actual permission list, and the spatial code of A is stored in the converged permission list to obtain the actual permission list and the converged permission list after the secondary convergence, wherein the actual permission list after the secondary convergence is empty, and the converged permission list after the secondary convergence includes the spatial codes N and A.

[0104] The spatial hierarchical structure 320 after the first convergence forms the spatial hierarchical structure 330 after the second convergence. After the second convergence, there is no child node that can be converged, indicating that the convergence is complete. The final convergence result is that the actual permission list is empty, and the converged permission list includes the spatial codes N and A.

[0105] According to an embodiment of the present disclosure, the above-mentioned resource retrieval method also includes: determining the spatial path corresponding to the space according to the spatial hierarchical structure and the spatial coding; using the above-mentioned spatial path as the permission index corresponding to the resources in the above-mentioned space; wherein, the above-mentioned filtering the target space corresponding to the above-mentioned user information according to the preset matching rules based on the above-mentioned actual permission list and the above-mentioned converged permission list includes: filtering the above-mentioned target space corresponding to the above-mentioned user information according to the above-mentioned preset matching rules based on the above-mentioned actual permission list, the above-mentioned converged permission list and the above-mentioned permission index.

[0106] According to an embodiment of the present disclosure, a spatial path represents a spatial location, and hierarchical relationships can be quickly found. A spatial path is formed by splicing the spatial coding intervals through which the space passes using underscores. For example, Figure 3 In the initial spatial hierarchical structure, the spatial path for space K can be expressed as: XGNK.

[0107] According to an embodiment of the present disclosure, when resources are created in a space, the space path is used as a permission index corresponding to the resources in the space, and the permission index is used to filter out a target space when filtering according to a preset matching rule.

[0108] According to an embodiment of the present disclosure, the above-mentioned screening of the above-mentioned target space corresponding to the above-mentioned user information according to the above-mentioned actual permission list, the above-mentioned converged permission list and the above-mentioned permission index according to the above-mentioned preset matching rules includes: generating a path list according to the space encoding in the above-mentioned permission index; matching the above-mentioned path list with the above-mentioned actual permission list and the above-mentioned converged permission list according to the above-mentioned preset matching rules to obtain a matching result; in a case where the above-mentioned matching result indicates a successful match, the space corresponding to the above-mentioned path list is used as the above-mentioned target space.

[0109] According to an embodiment of the present disclosure, the path list is obtained by arranging the spatial codes in the authority index in order.

[0110] According to an embodiment of the present disclosure, the actual permission list and the converged permission list are matched with the path list according to the above preset matching rules to obtain a matching result. If the match is successful, the space corresponding to the path list is used as the target space.

[0111] For example, to match space K with permission index XGNK, first, generate a path list corresponding to the permission index: X, G, N, K; then, match the path list (X, G, N, K) according to the preset matching rules based on the actual permission list and the converged permission list to obtain a matching result. If the match is successful, the space K corresponding to the path list is used as the target space, that is, space K is the target space. Users can retrieve resources in space K. If the match fails, it means that the user does not have access rights to space K and cannot retrieve resources in space K.

[0112] According to an embodiment of the present disclosure, the above-mentioned path list is matched according to the above-mentioned preset matching rules based on the above-mentioned actual authority list and the above-mentioned convergence authority list to obtain a matching result; when the above-mentioned matching result indicates a successful match, the space corresponding to the above-mentioned path list is used as the above-mentioned target space, including: matching the space coding in the above-mentioned path list with the space coding in the above-mentioned actual authority list to obtain a first matching result; when the above-mentioned first matching result indicates a failed match, matching the space coding in the above-mentioned path list with the space coding in the above-mentioned convergence authority list to obtain a second matching result; when the above-mentioned second matching result indicates a successful match, the space corresponding to the above-mentioned path list is used as the above-mentioned target space.

[0113] According to an embodiment of the present disclosure, matching the spatial coding in the path list with the spatial coding in the actual authority list includes comparing and matching the spatial coding in the path list with the spatial coding in the actual list, respectively, to obtain a first matching result. The first matching result may include that the spatial coding in the path list does not have the same spatial coding as the spatial coding in the actual authority list, and may also include that the spatial coding in the path list has the same spatial coding as the spatial coding in the actual authority list.

[0114] According to an embodiment of the present disclosure, when the above-mentioned first matching result indicates a matching failure, matching the spatial coding in the above-mentioned path list with the spatial coding in the above-mentioned convergence authority list to obtain the second matching result includes: when the above-mentioned first matching result indicates that the spatial coding in the above-mentioned path list and the spatial coding in the above-mentioned actual authority list do not have the same spatial coding, matching the spatial coding in the above-mentioned path list with the spatial coding in the above-mentioned convergence authority list to obtain the above-mentioned second matching result.

[0115] According to an embodiment of the present disclosure, in a case where the first matching result represents that the spatial coding in the path list does not have the same spatial coding as the spatial coding in the actual authority list, for example, the spatial coding in the path list (such as X, G, N, K) does not have the same spatial coding as the spatial coding in the actual authority list (such as Y), indicating that the first matching result fails to match.

[0116] According to an embodiment of the present disclosure, the resource retrieval method further includes: when the first matching result indicates that the space coding in the path list is identical to the space coding in the actual authority list, the space corresponding to the path list is used as the target space.

[0117] According to an embodiment of the present disclosure, in a case where the first matching result represents that the spatial coding in the path list has the same spatial coding as the spatial coding in the above-mentioned actual authority list, for example, the spatial coding in the path list (such as X, G, N, K) and the spatial coding in the actual authority list (such as K) have the same spatial coding K, then it means that the first matching result is successfully matched, and the space K corresponding to the path list is used as the target space.

[0118] According to an embodiment of the present disclosure, when the second matching result indicates a successful match, taking the space corresponding to the path list as the target space includes: when the second matching result indicates that the space coding of the convergence authority list has the same space coding as the space coding in the path list, and the convergence authority list does not contain the last space coding in the path list, taking the space corresponding to the path list as the target space.

[0119] According to an embodiment of the present disclosure, when the spatial coding of the convergence authority list in the second matching result table is the same as the spatial coding in the path list, and the convergence authority list does not contain the last spatial coding in the path list, for example, the spatial coding of the convergence authority list (such as N) and the spatial coding in the path list (such as X, G, N, K) have the same spatial coding N, and the convergence authority list does not contain the last spatial coding in the path list (such as K), it means that the space corresponding to the path list is the target space.

[0120] According to an embodiment of the present disclosure, when the spatial coding in the convergence authority list (such as C, K) and the spatial coding in the path list (such as X, G, N, K) have the same spatial coding K, since the convergence authority list contains the last spatial coding K in the path list, it means that the space corresponding to the path list is not the target space.

[0121] According to an embodiment of the present disclosure, when the second matching result indicates that the spatial coding in the convergence authority list does not have the same spatial coding as the spatial coding in the path list, the matching ends, and the space corresponding to the path list is not the target space.

[0122] Figure 4 The flowchart of screening the target space according to the preset matching rules is schematically shown.

[0123] like Figure 4 As shown, the method includes operations S401 to S407.

[0124] In operation S401, an actual authority list, a converged authority list, and a path list are acquired.

[0125] In operation S402, it is determined whether the spatial coding in the path list is identical to the spatial coding in the actual authority list. If it is determined that the spatial coding in the path list is not identical to the spatial coding in the actual authority list, operation S403 is performed; if it is determined that the spatial coding in the path list is identical to the spatial coding in the actual authority list, operation S405 is performed.

[0126] In operation S403, it is determined whether the spatial coding in the path list and the spatial coding in the convergence authority list have the same spatial coding. If it is determined that the spatial coding in the path list and the spatial coding in the convergence authority list have the same spatial coding, operation S404 is performed; if it is determined that the spatial coding in the path list and the spatial coding in the convergence authority list do not have the same spatial coding, operation S406 is performed.

[0127] In operation S404, it is determined whether the convergence right list includes the last space code in the path list. If it is determined that the convergence right list does not include the last space code in the path list, operation S405 is performed. If it is determined that the convergence right list includes the last space code in the path list, operation S406 is performed.

[0128] In operation S405 , it is determined that the space corresponding to the path list is a target space.

[0129] In operation S406 , it is determined that the space corresponding to the path list is not the target space.

[0130] In operation S407, the matching ends.

[0131] It should be noted that Figure 4 The process of filtering the target space according to the preset matching rules is only the process of matching one of the spaces. In the process of determining the target space, the permission index corresponding to each space needs to be matched as follows Figure 4 The screening process in .

[0132] According to the embodiments of the present disclosure, by rewriting the Lucene query method and screening the target space by using preset matching rules, efficient retrieval of the target space is achieved.

[0133] Figure 5 The following schematically shows an architecture diagram of a retrieval device according to an embodiment of the present disclosure.

[0134] like Figure 5 As shown, the search device 500 includes a space management module 510 , a resource management module 520 , a permission query module 530 and a permission search module 540 .

[0135] The space management module 510 is mainly responsible for adding, deleting, modifying and checking spaces and for authorizing spaces. Spaces can be authorized to users, roles, user groups and organizations. When authorizing roles, user groups and organizations, users are associated with roles, user groups and organizations. When creating a space, the space code is combined with a special identifier (such as an underscore) according to the spatial hierarchy of the current space to generate a space path. The generated space path is managed by the resource management module.

[0136] The resource management module 520 is used to add, delete, modify and query resources under the space, and bind resources to the space through the space management module. When adding new resources, the domain of the initial resource (such as resource name, creation time, creator, resource content, etc.) is created, and the space domain is assigned as the space path of the current space, and a search index is generated according to the type of different domains.

[0137] The permission query module 530 is used to query the space authorized by the current user from the space management module according to the user information, obtain the space permission list, and perform convergence and compression processing on the space permission list to flatten the space permission list, generate the user's actual permission list and converged permission list, and improve the efficiency of subsequent query creation.

[0138] The authority search module 540 is used to obtain the actual authority list and the converged authority list from the authority query module 530, filter the authority index, and select the target space. It can also query the resources in the target space from the resource management center according to keywords, perform full-text search, and output the target resources.

[0139] Figure 6 The following schematically shows a flow chart of a resource retrieval method according to another embodiment of the present disclosure.

[0140] like Figure 6 As shown, the method includes operations S601 to S613.

[0141] In operation S601, a space is created in a space management module, and a space code, such as K, is input.

[0142] In operation S602, a spatial path, for example, _X_G_N_K, is automatically generated according to the spatial hierarchical structure.

[0143] In operation S603, the space type is set, wherein the space type includes an open space and a permission space. The open space does not perform permission control, while the permission space requires permission control.

[0144] In operation S604, authorization operation is performed on the permission space, and the permission space can be authorized to users, roles, user groups, and organizations.

[0145] In operation S605, a space is selected in the resource management module, resources are created in the selected space, and the resources are bound to the space, and the space path of the space is used as the permission index of the resource, such as _X_G_N_K.

[0146] In operation S606, the authority query module responds to the resource search request and parses the user information and search keyword information in the resource search request.

[0147] In operation S607, a space permission list corresponding to the user information is obtained from the space management module according to the user information.

[0148] In operation S608, the space permission list is analyzed according to the space hierarchy structure to obtain an analysis result.

[0149] In operation S609, when the analysis result indicates that all child nodes belonging to the same parent node have spatial authority, the spatial code of the parent node is stored in a converged authority list to obtain a converged authority list.

[0150] In operation S610, the spatial code of the child node is filtered out from the spatial permission list to obtain an actual permission list.

[0151] In operation S611, the permission indexing module screens a target space corresponding to the user information from multiple spaces according to the converged permission list and the actual permission list according to preset matching rules, wherein the target space includes resources to be retrieved, and the resources to be retrieved are managed by the resource management module.

[0152] In operation S612, a target resource is determined by performing a full-text search from the resources to be searched in the resource management module according to the search keyword information.

[0153] In operation S613, the target resource is output.

[0154] According to the embodiment of the present disclosure, resources are attributed to spaces, authorization operations are performed on spaces, and then the space permission list corresponding to the user is converged, and the converged permission list and the actual permission list are converged; then, the target space corresponding to the user information is screened from multiple spaces according to the preset matching rules based on the actual permission list and the converged permission list. By attributing resources to spaces, authorizing space permissions to users, and converging space permission lists, the complexity of search query conditions is reduced, and at the same time, the association relationship between structured data between users and resources is handed over to the relational database for processing, saving memory resource consumption and helping to improve search efficiency.

[0155] It should be noted that, unless it is explicitly stated that there is a sequence of execution between different operations shown in the flowchart in the embodiments of the present disclosure, or there is a sequence of execution between different operations in technical implementation, otherwise, the execution order of multiple operations may not be prioritized, and multiple operations may also be executed simultaneously.

[0156] Based on the above resource retrieval method, the present disclosure also provides a resource retrieval device. Figure 7 The device is described in detail.

[0157] Figure 7 The structure block diagram of the resource search device according to the embodiment of the present disclosure is schematically shown.

[0158] like Figure 7 As shown, the resource search device 700 of this embodiment includes a parsing module 710 , an acquisition module 720 , a first screening module 730 and a first determination module 740 .

[0159] The parsing module 710 is used to respond to the resource search request and parse the user information and search keyword information in the resource search request. In one embodiment, the parsing module 710 can be used to perform the operation S210 described above, which will not be described in detail here.

[0160] The acquisition module 720 is used to acquire a space permission list corresponding to the user information according to the user information, wherein the user corresponding to the user information has the permission to access the space in the space permission list. In one embodiment, the acquisition module 720 can be used to perform the operation S220 described above, which is not repeated here.

[0161] The first screening module 730 is used to screen the target space corresponding to the user information from multiple spaces according to the space permission list and the preset matching rule, wherein the target space includes the resources to be retrieved. In one embodiment, the first screening module 730 can be used to perform the operation S230 described above, which will not be repeated here.

[0162] The first determination module 740 is used to determine the target resource from the resources to be searched according to the search keyword information. In one embodiment, the first determination module 740 can be used to perform the operation S240 described above, which will not be described in detail here.

[0163] Figure 8 The structure block diagram of a resource search device according to another embodiment of the present disclosure is schematically shown.

[0164] like Figure 8As shown, the resource search device 700 of this embodiment includes, in addition to the parsing module 710 , the acquisition module 720 , the first screening module 730 and the first determination module 740 , a convergence module 750 and a second screening module 760 .

[0165] The convergence module 750 is used to converge the above-mentioned space permission list according to preset convergence rules to obtain an actual permission list and a converged permission list, wherein the above-mentioned actual permission list includes the space permissions that have not been converged in the above-mentioned space permission list, and the above-mentioned converged permission list is the space permissions formed after the space in the above-mentioned space permission list is converged.

[0166] The second screening module 760 is used to screen the target space corresponding to the user information from multiple spaces according to the actual permission list and the converged permission list according to the preset matching rule.

[0167] According to an embodiment of the present disclosure, the above-mentioned convergence module includes an analysis unit, a storage unit and a filtering unit.

[0168] The analysis unit is used to analyze the above space permission list according to the space hierarchy structure to obtain an analysis result.

[0169] The storage unit is used to store the spatial code of the parent node in the convergence permission list to obtain the convergence permission list when the analysis result indicates that all child nodes belonging to the same parent node have spatial authority.

[0170] The filtering unit is used to filter the spatial code of the above-mentioned child node from the above-mentioned spatial permission list to obtain the above-mentioned actual permission list.

[0171] According to an embodiment of the present disclosure, the resource search device further includes a second determination module, a third determination module and a third screening module.

[0172] The second determination module is used to determine the space path corresponding to the space according to the spatial hierarchical structure and the spatial coding.

[0173] The third determination module is used to use the above-mentioned space path as the permission index corresponding to the resources in the above-mentioned space.

[0174] The third screening module is used to screen the target space corresponding to the user information according to the actual permission list, the converged permission list and the permission index according to the preset matching rule.

[0175] According to an embodiment of the present disclosure, the third screening module includes a generating unit, a matching unit and a determining unit.

[0176] A generating unit is used to generate a path list according to the space code in the above permission index.

[0177] A matching unit, configured to match the actual permission list and the converged permission list with the path list according to the preset matching rule to obtain a matching result;

[0178] The determination unit is configured to, when the matching result indicates a successful match, use the space corresponding to the path list as the target space.

[0179] According to an embodiment of the present disclosure, the matching unit includes a first matching subunit, a second matching subunit and a first determining subunit.

[0180] The first matching subunit is used to match the space code in the path list with the space code in the actual authority list to obtain a first matching result.

[0181] The second matching subunit is used to match the space code in the path list with the space code in the convergence authority list to obtain a second matching result when the first matching result indicates a matching failure.

[0182] The first determining subunit is configured to use the space corresponding to the path list as the target space when the second matching result indicates a successful match.

[0183] According to an embodiment of the present disclosure, the matching unit further includes a second determining subunit.

[0184] The second determination sub-unit is used to use the space corresponding to the above-mentioned path list as the above-mentioned target space when the above-mentioned second matching result represents that the spatial coding of the above-mentioned convergence authority list has the same spatial coding as the spatial coding in the above-mentioned path list, and the above-mentioned same spatial coding is not the last spatial coding in the above-mentioned path list.

[0185] According to an embodiment of the present disclosure, the matching unit further includes a third matching sub-unit.

[0186] The third matching sub-unit is used to match the spatial coding in the path list with the spatial coding in the convergent authority list to obtain the second matching result when the first matching result indicates that there is no identical spatial coding between the spatial coding in the path list and the spatial coding in the actual authority list.

[0187] According to an embodiment of the present disclosure, the resource search device further includes a fourth determination module.

[0188] The fourth determination module is used to use the space corresponding to the path list as the target space when the first matching result indicates that the space code in the path list and the space code in the actual authority list have the same space code.

[0189] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0190] According to an embodiment of the present disclosure, any multiple modules of the parsing module 710, the acquisition module 720, the first screening module 730, the first determination module 740, the convergence module 750, and the second screening module 760 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the parsing module 710, the acquisition module 720, the first screening module 730, the first determination module 740, the convergence module 750, and the second screening module 760 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware or in an appropriate combination of any of them. Alternatively, at least one of the parsing module 710, the acquisition module 720, the first screening module 730, the first determination module 740, the convergence module 750 and the second screening module 760 can be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function can be executed.

[0191] It should be noted that the resource retrieval device part in the embodiment of the present disclosure corresponds to the resource retrieval method part in the embodiment of the present disclosure. The description of the resource retrieval device part specifically refers to the resource retrieval method part, which will not be repeated here.

[0192] Fig. 9 A block diagram of an electronic device suitable for implementing a resource retrieval method according to an embodiment of the present disclosure is schematically shown.

[0193] like Fig. 9 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0194] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0195] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage portion 908 as needed.

[0196] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0197] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: 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), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.

[0198] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the resource retrieval method provided by the embodiment of the present disclosure.

[0199] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 901. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0200] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0201] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0202] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0203] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0204] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0205] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A resource retrieval method, comprising: In response to a resource search request, parsing user information and search keyword information in the resource search request; Acquire a space permission list corresponding to the user information according to the user information, wherein the user corresponding to the user information has the permission to access the space in the space permission list; Filtering a target space corresponding to the user information from a plurality of spaces according to the space permission list and a preset matching rule, wherein the target space includes resources to be retrieved; and Determine the target resource from the resources to be searched according to the search keyword information; The method further comprises: Converging the space permission list according to a preset convergence rule to obtain an actual permission list and a converged permission list, wherein the actual permission list includes the space permissions that have not been converged in the space permission list, and the converged permission list is the space permissions formed after the spaces in the space permission list are converged; The step of screening a target space corresponding to the user information from a plurality of spaces according to the space permission list and a preset matching rule includes: Filtering the target space corresponding to the user information from multiple spaces according to the actual permission list and the converged permission list and the preset matching rule; The step of converging the space permission list according to a preset convergence rule to obtain an actual permission list and a converged permission list includes: Analyze the space permission list according to the space hierarchy structure to obtain analysis results; When the analysis result indicates that all child nodes belonging to the same parent node have spatial authority, the spatial code of the parent node is stored in the convergence authority list to obtain the convergence authority list; Filtering the spatial code of the child node from the spatial permission list to obtain the actual permission list; The method further comprises: Determine the spatial path corresponding to the space according to the spatial hierarchical structure and spatial coding; Using the space path as a permission index corresponding to the resources in the space; The filtering of the target space corresponding to the user information according to the actual permission list and the converged permission list according to a preset matching rule includes: Filter the target space corresponding to the user information according to the actual permission list, the converged permission list and the permission index according to the preset matching rule; The filtering of the target space corresponding to the user information according to the preset matching rule based on the actual permission list, the converged permission list and the permission index includes: Generate a path list according to the space code in the authority index; According to the actual authority list and the converged authority list, the path list is matched according to the preset matching rule to obtain a matching result; When the matching result indicates a successful match, the space corresponding to the path list is used as the target space.

2. The method according to claim 1, wherein: The path list is matched according to the actual authority list and the converged authority list according to the preset matching rule to obtain a matching result; In the case where the matching result indicates a successful match, taking the space corresponding to the path list as the target space includes: Matching the space code in the path list with the space code in the actual authority list to obtain a first matching result; In the case where the first matching result indicates a matching failure, matching the space code in the path list with the space code in the convergence authority list to obtain a second matching result; When the second matching result indicates a successful match, the space corresponding to the path list is used as the target space.

3. The method according to claim 2, wherein: When the second matching result indicates a successful match, taking the space corresponding to the path list as the target space includes: When the second matching result indicates that the spatial coding in the convergence authority list has the same spatial coding as the spatial coding in the path list, and the convergence authority list does not contain the last spatial coding in the path list, the space corresponding to the path list is used as the target space.

4. The method according to claim 2, wherein: In the case where the first matching result indicates a matching failure, matching the space code in the path list with the space code in the convergence authority list to obtain a second matching result includes: When the first matching result indicates that the spatial coding in the path list and the spatial coding in the actual authority list do not have the same spatial coding, the spatial coding in the path list is matched with the spatial coding in the converged authority list to obtain the second matching result.

5. The method according to claim 4, further comprising: When the first matching result indicates that the space code in the path list and the space code in the actual authority list have the same space code, the space corresponding to the path list is used as the target space.

6. A resource retrieval device, comprising: A parsing module, used for parsing user information and retrieval keyword information in response to a resource retrieval request; An acquisition module, configured to acquire, according to the user information, a space permission list corresponding to the user information, wherein the user corresponding to the user information has permission to access the space in the space permission list; a first screening module, configured to screen a target space corresponding to the user information from a plurality of spaces according to the space permission list and a preset matching rule, wherein the target space includes resources to be retrieved; and A first determining module, used to determine a target resource from the resources to be searched according to the search keyword information; The resource retrieval device also includes: A convergence module, used to converge the space permission list according to a preset convergence rule to obtain an actual permission list and a converged permission list, wherein the actual permission list includes the space permissions that have not been converged in the space permission list, and the converged permission list is the space permissions formed after the space in the space permission list is converged; A second screening module, configured to screen the target space corresponding to the user information from a plurality of spaces according to the actual permission list and the converged permission list and the preset matching rule; The convergence module comprises: An analysis unit, configured to analyze the space permission list according to the space hierarchy structure to obtain an analysis result; A storage unit, configured to store the spatial code of the parent node in the convergence authority list to obtain the convergence authority list when the analysis result indicates that all child nodes belonging to the same parent node have spatial authority; A filtering unit, used to filter the spatial code of the subnode from the spatial permission list to obtain the actual permission list; The resource retrieval device further comprises: A second determination module is used to determine a space path corresponding to the space according to the spatial hierarchical structure and the spatial coding; A third determination module, configured to use the space path as a permission index corresponding to the resources in the space; A third screening module, configured to screen the target space corresponding to the user information according to the actual permission list, the converged permission list and the permission index according to the preset matching rule; The third screening module comprises: A generating unit, configured to generate a path list according to the space code in the authority index; A matching unit, configured to match the actual permission list and the converged permission list with the path list according to the preset matching rule to obtain a matching result; The determining unit uses the space corresponding to the path list as the target space when the matching result indicates a successful match.

7. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to execute the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 5.

9. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.