Data search method and device, equipment and medium
By searching data in local and remote clusters separately and aggregating the results, the problems of low data search efficiency and difficulty in ensuring accuracy are solved, and fast and accurate data search is achieved, reducing costs and improving intelligence.
Patent Information
- Application Number
- CN202510881229.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-10-10
AI Technical Summary
The data search solutions in the existing technology have low search efficiency, high labor and time costs, and are difficult to guarantee accuracy.
After receiving the user's data search request, the target cluster type is determined, and the remote search component and the local search component are used to search for data in the local cluster and the remote cluster respectively, to obtain the remote search results and the local search results, and to aggregate the results and provide them to the user.
It enables fast and accurate search for the business data users need in local and remote clusters, reduces time and labor costs, and improves the accuracy and intelligence of data search.
Smart Images

Figure CN120763370A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data search method, device, equipment and medium. Background Art
[0002] Enterprise business systems generate large amounts of business data during operation. To effectively manage this data, enterprises typically set up a local cluster and multiple remote clusters corresponding to the business system, distributing and storing the business data generated by the system across these clusters. A local cluster can be a computer cluster consisting of multiple computers located in the same region as the business system, storing business data. A remote cluster can be a computer cluster consisting of multiple computers located in a different region, storing business data. Business personnel can search for required business data across the local cluster and the remote clusters.
[0003] In the related art, a common data search solution involves querying and obtaining business data related to specified information from a designated cluster within a local cluster and a designated remote cluster. This data search solution in the related art requires manual operation to query and obtain business data related to the specified information from the designated cluster. This results in low search efficiency, high labor and time costs, and difficulty in ensuring accuracy. Summary of the Invention
[0004] The present invention provides a data search method, apparatus, device and medium to solve the problems of low search efficiency, high labor and time costs, and difficulty in ensuring accuracy in data search solutions in related technologies.
[0005] According to one aspect of the present invention, there is provided a data search method, comprising:
[0006] After obtaining a data search request from a user, determining a target cluster type of the data search request and extracting search feature information in the data search request;
[0007] After determining that the target cluster type is a local cluster and a remote cluster, performing data searches in the target remote cluster and the local cluster of the data search request according to the search feature information by using a remote search component and a local search component, respectively, to obtain remote search results and local search results of the data search request;
[0008] The remote search results and the local search results are aggregated to obtain search results for the data search request, and the search results are provided to the user.
[0009] According to another aspect of the present invention, there is provided a data search device, comprising:
[0010] A request processing module is used to determine the target cluster type of the data search request after obtaining the user's data search request, and extract the search feature information in the data search request;
[0011] A data search module is configured to, after determining that the target cluster type is a local cluster or a remote cluster, perform data searches in the target remote cluster and the local cluster of the data search request according to the search feature information through a remote search component and a local search component, respectively, to obtain remote search results and local search results of the data search request;
[0012] A result aggregation module is used to aggregate the remote search results and the local search results to obtain the search results of the data search request, and provide the search results to the user.
[0013] According to another aspect of the present invention, an electronic device is provided, comprising:
[0014] at least one processor;
[0015] and a memory communicatively coupled to the at least one processor;
[0016] The memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data search method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data search method according to any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the data search method according to any embodiment of the present invention is implemented.
[0019] The technical solution of the embodiment of the present invention is to determine the target cluster type of the data search request after obtaining the user's data search request, and extract the search feature information in the data search request; after determining that the target cluster type is a local cluster and a remote cluster, through the remote search component and the local search component, respectively perform data search in the target remote cluster and the local cluster of the data search request according to the search feature information, and obtain the remote search result and the local search result of the data search request; aggregate the remote search result and the local search result to obtain the search result of the data search request, and provide the search result to the user, thereby solving the problems of low search efficiency, high labor cost and time cost, and difficult accuracy of the data search scheme in the related technology. It can automatically search for the business data that the user needs to use in the local cluster corresponding to the business system and the specified cluster in multiple remote clusters based on the user's data search request, and provide the searched business data that the user needs to use to the user, thereby reducing the time cost and labor cost of the data search process and improving the accuracy and intelligence of the data search process.
[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 This is a flowchart of a data search method provided in Example 1 of the present invention.
[0023] Figure 2 A schematic diagram of a data search process provided in Example 1 of the present invention.
[0024] Figure 3 This is a flowchart of a data search method provided in Example 2 of the present invention.
[0025] Figure 4 This is a structural diagram of a data search device provided in Example 3 of the present invention.
[0026] Figure 5 A schematic diagram of the structure of an electronic device for implementing the data search method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "target", "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprise", "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Example 1
[0030] Figure 1 A flowchart of a data search method provided in the first embodiment of the present invention. This embodiment is applicable to the case where the business data that needs to be used is searched in a local cluster corresponding to the business system and a designated cluster among multiple remote clusters. The method can be executed by a data search device, which can be implemented in the form of hardware and / or software, and the data search device can be configured in an electronic device set up in an enterprise. The electronic device can be an electronic device set up in the enterprise for searching for the business data that needs to be used in a local cluster corresponding to the business system and a designated cluster among multiple remote clusters. Figure 1 As shown, the method includes:
[0031] Step 101: After obtaining a data search request from a user, determine the target cluster type of the data search request and extract search feature information in the data search request.
[0032] Optionally, the enterprise's business system may be a server responsible for handling the enterprise's business. The enterprise's business includes, but is not limited to, providing designated services to other enterprises or individuals, and producing software or hardware products with designated functions. The enterprise's business system generates a large amount of business data during operation. Each item of business data may be text generated by the business system to record designated operations performed by the business system. The local cluster corresponding to the business system may be a computer cluster comprising multiple computers located in the same area as the business system for storing business data. The multiple remote clusters corresponding to the business system may be multiple computer clusters comprising multiple computers located in different areas from the business system for storing business data. The number of remote clusters is greater than or equal to 2. Each item of business data generated in the enterprise's business system will be stored in one or more of the local cluster and each remote cluster. The electronic device is connected to the business system, the local cluster, and each remote cluster, respectively, and can exchange information with the business system, the local cluster, and each remote cluster.
[0033] Optionally, being in the same region as the business system may mean being in the same computer room or the same city as the business system. Being in a different region from the business system may mean being in a different computer room or a different city as the business system.
[0034] Optionally, each remote cluster is provided with remote index information and permission information. The remote index information of a remote cluster includes identification information and configuration information. The identification information of a remote cluster may be information used to identify the remote cluster. The identification information of different remote clusters may be different. The configuration information of a remote cluster may be domain name information, address information, and port information required for establishing a connection with the remote cluster. The domain name information may be the domain name required for establishing a connection with the remote cluster. The address information may be the address required for establishing a connection with the remote cluster. The port information may be information related to the port required for establishing a connection with the remote cluster. The permission information of a remote cluster may consist of the identification information of all business personnel in the enterprise who have access rights to the remote cluster. Having access rights to a remote cluster may mean that the business data stored in the remote cluster can be accessed. A business personnel may be a technical personnel in the enterprise who is related to the enterprise's business. The identification information of a business personnel may be information used to identify the business personnel. The identification information of different business personnel may be different.
[0035] Optionally, before obtaining the user's data search request, the method further includes: storing the remote index information and permission information of each remote cluster in a preset storage component; wherein the remote index information includes identification information and configuration information. The remote index information and permission information of each remote cluster may be sent to the electronic device by the target user. The target user may be a technician responsible for managing the remote cluster. The preset storage component may be a memory provided in the electronic device for storing the remote index information and permission information of the remote cluster. After receiving the remote index information and permission information of each remote cluster sent by the target user, the remote index information and permission information of each remote cluster may be stored correspondingly in the preset storage component.
[0036] Optionally, the user may be a business person in an enterprise. The user's data search request may be text input by the user to instruct the electronic device to search for required business data in a local cluster corresponding to the business system and a designated cluster among multiple remote clusters.
[0037] Optionally, the target cluster type of the data search request may be information used to characterize whether the designated cluster for which data search is required is a local cluster and a designated remote cluster among multiple remote clusters, or a local cluster, or a designated remote cluster among multiple remote clusters. The target cluster type of the data search request may be a local cluster, a remote cluster, or a local cluster and a remote cluster. The target cluster type of the data search request is a local cluster and a remote cluster, indicating that the designated cluster for which data search is required is a local cluster and a designated remote cluster among multiple remote clusters. The target cluster type of the data search request is a local cluster, indicating that the designated cluster for which data search is required is a local cluster. The target cluster type of the data search request is a remote cluster, indicating that the designated cluster for which data search is required is a designated remote cluster among multiple remote clusters.
[0038] Optionally, a data search request input by a user may be obtained through a data search page. The data search page may be a page provided in the electronic device for interacting with the user to obtain information input by the user related to the business data search process or to provide the user with information related to the business data search process.
[0039] Optionally, the data search page includes a request entry area and a confirmation control. The request entry area may be a page area provided on the data search page for entering a data search request. A user may enter a data search request in the request entry area. The data search request entered by the user in the request entry area may be retrieved. The confirmation control may be a control for confirming that the data search request has been entered. The user may click the confirmation control to confirm that the data search request has been entered.
[0040] Optionally, after completing the operation of entering the data search request in the request filling area, the user can click the confirmation control to confirm that the operation of entering the data search request has been completed. Each time the confirmation control is detected to be clicked, the most recently obtained data search request entered in the request filling area can be determined as the data search request entered by the user during the current data search process, thereby obtaining the user's data search request, then determining the target cluster type of the data search request, and extracting the search feature information in the data search request.
[0041] Optionally, determining the target cluster type of the data search request includes: when the data search request contains hybrid search indication information and identification information of a remote cluster, determining that the target cluster type of the data search request is a local cluster and a remote cluster, and extracting the identification information of the target remote cluster in the data search request; when the data search request does not contain hybrid search indication information and identification information of a remote cluster, determining that the target cluster type of the data search request is a local cluster; when the data search request does not contain hybrid search indication information and contains identification information of a remote cluster, determining that the target cluster type of the data search request is a remote cluster, and extracting the identification information of the target remote cluster in the data search request.
[0042] Optionally, under normal circumstances, when the designated cluster for data search is the local cluster and a designated remote cluster among multiple remote clusters, the data search request will include hybrid search indication information and the identification information of the target remote cluster. When the designated cluster for data search is the local cluster, the data search request will not include the hybrid search indication information or the identification information of the target remote cluster, and the data search request will not include the identification information of any remote cluster. When the designated cluster for data search is a designated remote cluster among multiple remote clusters, the data search request will not include the hybrid search indication information, but will include the identification information of the target remote cluster. The hybrid search indication information may be pre-set information indicating that the target cluster types for the data search request are local clusters and remote clusters. The target remote clusters may be one or more remote clusters specified by the user for data search. The identification information of the target remote clusters may be the identification information of one or more remote clusters specified by the user for data search. The identification information of the remote clusters included in the data search request is the identification information of the target remote cluster in the data search request. Exemplarily, the hybrid search indication information may be a pre-set symbol indicating that the target cluster types for the data search request are local clusters and remote clusters. The hybrid search indication information is "*". When the specified cluster for data search is the local cluster and a specified remote cluster among multiple remote clusters, the data search request will contain "*" and the identification information of the target remote cluster.
[0043] Optionally, it is possible to detect whether the data search request contains hybrid search indication information and whether it contains identification information of a remote cluster. When it is detected that the data search request contains hybrid search indication information and identification information of a remote cluster, it is possible to determine that the target cluster types of the data search request are a local cluster and a remote cluster, extract the identification information of the remote cluster contained in the data search request, and thus obtain the identification information of the target remote cluster in the data search request. When it is detected that the data search request does not contain hybrid search indication information and the data search request does not contain identification information of any remote cluster, it is possible to determine that the target cluster type of the data search request is a local cluster. When it is detected that the data search request does not contain hybrid search indication information and contains identification information of a remote cluster, it is possible to determine that the target cluster type of the data search request is a remote cluster, extract the identification information of the remote cluster contained in the data search request, and thus obtain the identification information of the target remote cluster in the data search request.
[0044] Optionally, the business data that the user needs to use may be business data related to a target keyword. The target keyword may be one or more words related to the business of the enterprise specified by the user. The business data related to the target keyword may refer to words containing the target keyword.
[0045] Optionally, the business data required by the user may also be business data related to a target time interval. The target time interval may be a time interval specified by the user. The business data includes the time at which the business data was generated. The time at which the business data was generated may refer to the time at which the business system generated the business data. Business data related to the target time interval may refer to business data whose generation time falls within the target time interval.
[0046] Optionally, the business data that the user needs to use may also be business data related to the target data type. The business data includes the data type of the business data. The data type of the business data may be information used to describe the category of the business data. The business system is provided with multiple preset data types. The preset data type may be pre-set information used to describe the category of the business data. The data type of the business data may be included in each preset data type. The target data type may be a preset data type specified by the user. Business data related to the target data type may refer to business data that includes the same data type as the target data type.
[0047] Optionally, the search feature information in the data search request may be information included in the data search request that describes the features of the business data that the user desires to use. The search feature information in the data search request may be identified and extracted. The extracted search feature information may be a target keyword, a target time interval, or a target data type.
[0048] Optionally, when the data search request includes identification information of a target remote cluster, the format of the identification information of the target remote cluster and the search characteristic information in the data search request may be “<identification information of the target remote cluster>:<search characteristic information>”.
[0049] Optionally, if the search feature information in the data search request cannot be extracted or the target cluster type of the data search request cannot be determined, a request prompt message is displayed on the data search page to provide the user with the request prompt message. The request prompt message can be a pre-set text to inform the user that there is an anomaly in the data search request.
[0050] Step 102: After determining that the target cluster type is a local cluster and a remote cluster, data search is performed in the target remote cluster and local cluster of the data search request according to the search feature information through the remote search component and the local search component, respectively, to obtain the remote search results and the local search results of the data search request.
[0051] Optionally, the remote search component may be a software module or hardware module provided in the electronic device for performing data search in a remote cluster. The local search component may be a software module or hardware module provided in the electronic device for performing data search in a local cluster. The remote search results of the data search request may refer to business data required by the user obtained from the remote cluster. The local search results of the data search request may refer to business data required by the user obtained from the local cluster.
[0052] Optionally, a remote search component and a local search component are used to perform data searches in the target remote cluster and the local cluster of the data search request, respectively, based on the search feature information, to obtain remote search results and local search results of the data search request, including: determining the target remote cluster of the data search request through the remote search component, obtaining business data related to the search feature information in the target remote cluster, and obtaining the remote search results of the data search request. The data search operation of determining the target remote cluster of the data search request, obtaining business data related to the search feature information in the target remote cluster, and obtaining the remote search results of the data search request can be performed by sending the identification information of the target remote cluster extracted from the data search request and the search feature information in the data search request to the remote search component, and calling the remote search component to perform the data search operation. The remote search results of the data search request obtained by the remote search component can be obtained.
[0053] Optionally, determining the target remote cluster of the data search request includes: determining the remote cluster to which the identification information of the target remote cluster extracted from the data search request belongs as the target remote cluster of the data search request.
[0054] Optionally, the extracted search feature information is a target keyword, a target time interval, or a target data type. When the extracted search feature information is a target keyword, the business data associated with the search feature information refers to the business data containing the target keyword. When the extracted search feature information is a target time interval, the business data associated with the search feature information refers to the business data whose generation time falls within the target time interval. When the extracted search feature information is a target data type, the business data associated with the search feature information refers to the business data whose data type is the same as the target data type.
[0055] Optionally, business data related to the search feature information in the target remote cluster is obtained to obtain the remote search result of the data search request, including: when the search feature information is a target keyword, business data containing the target keyword in the target remote cluster is obtained, and the obtained business data is determined as the remote search result of the data search request; when the search feature information is a target time interval, business data in the target remote cluster whose generation time is within the target time interval is obtained, and the obtained business data is determined as the remote search result of the data search request; when the search feature information is a target data type, business data in the target remote cluster whose data type is the same as the target data type is obtained, and the obtained business data is determined as the remote search result of the data search request.
[0056] Optionally, a remote search component and a local search component are used to perform data searches in the target remote cluster and local cluster of the data search request, respectively, based on the search feature information, to obtain remote search results and local search results for the data search request, including: obtaining business data related to the search feature information in the local cluster through the local search component to obtain the local search results for the data search request. The data search operation can be performed by sending the extracted search feature information from the data search request to the local search component, invoking the local search component to obtain business data related to the search feature information in the local cluster to obtain the local search results for the data search request. The local search results for the data search request obtained by the local search component can be obtained.
[0057] Optionally, business data related to the search feature information is obtained in the local cluster to obtain the local search results of the data search request, including: when the search feature information is a target keyword, business data containing the target keyword is obtained in the local cluster, and the obtained business data is determined as the local search result of the data search request; when the search feature information is a target time interval, business data in the local cluster whose generation time is within the target time interval is obtained, and the obtained business data is determined as the local search result of the data search request; when the search feature information is a target data type, business data in the local cluster whose data type is the same as the target data type is obtained, and the obtained business data is determined as the local search result of the data search request.
[0058] Step 103: Aggregate the remote search results and the local search results to obtain search results for the data search request, and provide the search results to the user.
[0059] Optionally, the search result of the data search request may be business data that the user needs to use and is searched according to the data search request.
[0060] Optionally, the remote search results and the local search results are aggregated to obtain the search results of the data search request, including: deduplicating and merging the various business data in the remote search results and the local search results; sorting the various business data after deduplication and merging to obtain a business data sequence, and determining the business data sequence as the search results of the data search request.
[0061] Optionally, deduplication and merging processing is performed on each business data in the remote search results and the local search results, including: detecting whether there are multiple identical business data in each business data in the remote search results and the local search results, and for the multiple identical business data detected, retaining one of the multiple identical business data and deleting the other business data.
[0062] Optionally, the generation times included in the various business data in the remote search results and the local search results after de-duplication and merging are usually different. The business data sequence may refer to a sequence obtained by sorting the various business data in the remote search results and the local search results after de-duplication and merging in order from front to back of the generation times included. Sorting the various business data after de-duplication and merging to obtain a business data sequence, and determining the business data sequence as the search result of the data search request, including: sorting the various business data in the remote search results and the local search results after de-duplication and merging in order from front to back of the generation times included to obtain a sequence, and determining the obtained sequence as the search result of the data search request.
[0063] Optionally, a local search component may aggregate the remote search results and the local search results to obtain the search results for the data search request. The remote search component may send the remote search results for the data search request to the local search component. The local search component may aggregate the remote search results and the local search results to obtain the search results for the data search request. The search results for the data search request obtained by the local search component may be obtained.
[0064] Optionally, after aggregating the remote search results and the local search results to obtain the search results of the data search request, it also includes: detecting whether the user has access rights to the target remote cluster to obtain the user's permission detection result; after determining that the permission detection result is no permission, filtering out business data related to the target remote cluster in the search results of the data search request.
[0065] Optionally, the user's permission check result may be information indicating whether the user has access rights to the target remote cluster. The user's permission check result can be either authorized or unauthorized. If the user's permission check result is authorized, it indicates that the user has access rights to the target remote cluster. If the user's permission check result is unauthorized, it indicates that the user does not have access rights to the target remote cluster.
[0066] Optionally, detecting whether the user has access rights to the target remote cluster and obtaining the permission detection result of the user includes: extracting the user's identification information in the data search request; obtaining the permission information of the target remote cluster from the preset storage component; detecting whether the permission information of the target remote cluster in the preset storage component contains the user's identification information; if the permission information of the target remote cluster contains the user's identification information, determining that the user's permission detection result is authorized; if the permission information of the target remote cluster does not contain the user's identification information, determining that the user's permission detection result is not authorized.
[0067] Optionally, the user identification information in the data search request includes user identification information. The user identification information may be information used to identify the user. The business data related to the target remote cluster may refer to business data obtained from the target remote cluster. After aggregating the remote search results and the local search results to obtain the search results for the data search request, the user identification information in the data search request may be extracted, the permission information of the target remote cluster may be obtained from a preset storage component, and then a test may be performed to determine whether the permission information of the target remote cluster includes the user identification information. If the permission information of the target remote cluster includes the user identification information, the permission test result for the user is determined to be authorized. If the permission information of the target remote cluster does not include the user identification information, the permission test result for the user is determined to be unauthorized. After determining that the user's permission test result is unauthorized, all business data obtained from the target remote cluster in the search results of the data search request may be deleted, thereby filtering out the business data related to the target remote cluster from the search results of the data search request. The filtered search results of the data search request are then provided to the user. After determining that the user's permission test result is authorized, the search results of the data search request may be directly provided to the user.
[0068] Optionally, after obtaining the remote search results and local search results of the data search request, the method further includes: when the remote search results are empty and the local search results are not empty, determining the local search results as the search results of the data search request and providing the search results to the user; when the remote search results are not empty and the local search results are empty, determining the remote search results as the search results of the data search request and providing the search results to the user; when the remote search results are empty and the local search results are empty, determining preset prompt information as the search results of the data search request and providing the search results to the user. The preset prompt information can be pre-set information used to indicate that the business data required by the user does not exist.
[0069] Optionally, it also includes: after determining that the target cluster type is a local cluster, obtaining business data related to the search feature information in the local cluster through a local search component to obtain local search results of the data search request; determining the local search results as the search results of the data search request, and providing the search results to the user.
[0070] Optionally, it also includes: after determining that the target cluster type is a remote cluster, determining the target remote cluster of the data search request through a remote search component, obtaining business data related to the search feature information in the target remote cluster, and obtaining the remote search results of the data search request; determining the remote search results as the search results of the data search request, and providing the search results to the user.
[0071] Optionally, providing the search results of the data search request to the user includes displaying the search results of the data search request on a data search page. The user can view the search results of the data search request on the data search page and, as needed, further filter, sort, or export the search results of the data search request displayed on the data search page. After providing the search results of the data search request to the user, the user can confirm that the data search process has ended.
[0072] Optionally, the data search request, the recorded time of obtaining the data search request, and the total amount of business data included in the search results of the data search request can be determined as data search request log information, and the data search request log information can be stored. The data search request log information can be information used to describe the process of searching for business data required by the user based on the data search request.
[0073] The technical solution of the embodiment of the present invention is to determine the target cluster type of the data search request after obtaining the user's data search request, and extract the search feature information in the data search request; after determining that the target cluster type is a local cluster and a remote cluster, through the remote search component and the local search component, respectively perform data search in the target remote cluster and the local cluster of the data search request according to the search feature information, and obtain the remote search result and the local search result of the data search request; aggregate the remote search result and the local search result to obtain the search result of the data search request, and provide the search result to the user, thereby solving the problems of low search efficiency, high labor cost and time cost, and difficult accuracy of the data search scheme in the related technology. It can automatically search for the business data that the user needs to use in the local cluster corresponding to the business system and the specified cluster in multiple remote clusters based on the user's data search request, and provide the searched business data that the user needs to use to the user, thereby reducing the time cost and labor cost of the data search process and improving the accuracy and intelligence of the data search process.
[0074] The technical solution of the embodiment of the present invention can realize cross-cluster intelligent search, so that users can search for data in a remote cluster just like searching locally. The technical solution of the embodiment of the present invention can aggregate remote search results and local search results together to ensure that users obtain complete results and guarantee the consistency and integrity of search results. The technical solution of the embodiment of the present invention can decompose the data search process into two parts: a local processing process and a remote processing process, and process them in parallel to improve search efficiency. The technical solution of the embodiment of the present invention can further simplify the permission management process of the remote cluster based on the permission information of the remote cluster.
[0075] Optionally, in a specific example, Figure 2 A schematic diagram of a data search process provided in Example 1 of the present invention. The user enters a data search request on the data search page. After the electronic device obtains the user's data search request through the data search page, it determines the target cluster type of the data search request and extracts the search feature information in the data search request. After the electronic device determines that the target cluster type is a local cluster and a remote cluster, it uses the remote search component and the local search component to perform data search in the target remote cluster and the local cluster of the data search request according to the search feature information, respectively, to obtain the remote search results and the local search results of the data search request. The electronic device aggregates the remote search results and the local search results to obtain the search results of the data search request, and displays the search results on the data search page. The user views the search results of the data search request on the data search page, and further filters, sorts or exports the search results displayed on the data search page as needed.
[0076] Example 2
[0077] Figure 3 This is a flow chart of a data search method provided by the second embodiment of the present invention. This embodiment of the present invention can be combined with each optional solution in one or more of the above embodiments. Figure 3 As shown, the method includes:
[0078] Step 201: After obtaining a data search request from a user, determine the target cluster type of the data search request and extract search feature information in the data search request.
[0079] Step 202: After determining that the target cluster type is a local cluster and a remote cluster, data search is performed in the target remote cluster and local cluster of the data search request according to the search feature information through the remote search component and the local search component, respectively, to obtain the remote search results and local search results of the data search request.
[0080] Step 203: Aggregate the remote search results and the local search results to obtain the search results of the data search request.
[0081] Step 204: Detect whether the user has access rights to the target remote cluster, and obtain a result of the user's permission detection.
[0082] Step 205: After determining that the permission detection result is no permission, filter out the business data related to the target remote cluster in the search results of the data search request, and provide the filtered search results to the user.
[0083] The technical solution of the embodiment of the present invention can automatically search for business data that users need to use in the local cluster corresponding to the business system and the specified cluster in multiple remote clusters based on the user's data search request, and provide the searched business data that users need to use to the user. The searched business data can be managed based on the access rights of the remote cluster, which reduces the time and labor costs of the data search process and improves the accuracy and intelligence of the data search process.
[0084] Example 3
[0085] Figure 4 This is a schematic diagram of the structure of a data search device provided by the third embodiment of the present invention. The device can be configured in an electronic device. Figure 4 As shown, the device includes: a request processing module 301, a data search module 302 and a result aggregation module 303.
[0086] Among them, the request processing module 301 is used to determine the target cluster type of the data search request after obtaining the user's data search request, and extract the search feature information in the data search request; the data search module 302 is used to, after determining that the target cluster type is a local cluster and a remote cluster, perform data search in the target remote cluster and local cluster of the data search request according to the search feature information through the remote search component and the local search component, respectively, to obtain the remote search results and local search results of the data search request; the result aggregation module 303 is used to aggregate the remote search results and the local search results to obtain the search results of the data search request, and provide the search results to the user.
[0087] The technical solution of the embodiment of the present invention is to determine the target cluster type of the data search request after obtaining the user's data search request, and extract the search feature information in the data search request; after determining that the target cluster type is a local cluster and a remote cluster, through the remote search component and the local search component, respectively perform data search in the target remote cluster and the local cluster of the data search request according to the search feature information, and obtain the remote search result and the local search result of the data search request; aggregate the remote search result and the local search result to obtain the search result of the data search request, and provide the search result to the user, thereby solving the problems of low search efficiency, high labor cost and time cost, and difficult accuracy of the data search scheme in the related technology. It can automatically search for the business data that the user needs to use in the local cluster corresponding to the business system and the specified cluster in multiple remote clusters based on the user's data search request, and provide the searched business data that the user needs to use to the user, thereby reducing the time cost and labor cost of the data search process and improving the accuracy and intelligence of the data search process.
[0088] In an optional implementation of an embodiment of the present invention, optionally, the data search device further includes: an information storage module for storing remote index information and permission information of each remote cluster in a preset storage component; wherein the remote index information includes identification information and configuration information.
[0089] In an optional implementation of an embodiment of the present invention, optionally, when executing the operation of determining the target cluster type of the data search request, the request processing module 301 is specifically used to: when the data search request contains hybrid search indication information and identification information of a remote cluster, determine that the target cluster type of the data search request is a local cluster and a remote cluster, and extract the identification information of the target remote cluster in the data search request; when the data search request does not contain hybrid search indication information and identification information of a remote cluster, determine that the target cluster type of the data search request is a local cluster; when the data search request does not contain hybrid search indication information and identification information of a remote cluster, determine that the target cluster type of the data search request is a remote cluster, and extract the identification information of the target remote cluster in the data search request.
[0090] In an optional implementation of an embodiment of the present invention, optionally, when the data search module 302 performs an operation of performing a data search in the target remote cluster and the local cluster of the data search request according to the search feature information through the remote search component and the local search component, and obtains the remote search results and the local search results of the data search request, it is specifically used to: determine the target remote cluster of the data search request through the remote search component, obtain the business data related to the search feature information in the target remote cluster, and obtain the remote search results of the data search request.
[0091] In an optional implementation of an embodiment of the present invention, optionally, when the data search module 302 performs an operation of performing a data search in the target remote cluster and the local cluster of the data search request respectively according to the search feature information through the remote search component and the local search component to obtain the remote search results and the local search results of the data search request, it is specifically used to: obtain the business data related to the search feature information in the local cluster through the local search component, and obtain the local search results of the data search request.
[0092] In an optional implementation of an embodiment of the present invention, optionally, when the result aggregation module 303 performs the operation of aggregating the remote search results and the local search results to obtain the search results of the data search request, it is specifically used to: deduplicate and merge the various business data in the remote search results and the local search results; sort the various business data after deduplication and merging to obtain a business data sequence, and determine the business data sequence as the search results of the data search request.
[0093] In an optional implementation of the embodiment of the application, optionally, the result aggregation module 303 is further configured to: detect whether the user has access permission of the target remote cluster, to obtain a permission detection result of the user; and after determining that the permission detection result is no permission, filter out the business data related to the target remote cluster in the search result of the data search request.
[0094] The data search apparatus provided by the embodiment of the application can execute the data search method provided by any of the embodiments of the application, and has the corresponding function modules and beneficial effects of the execution method.
[0095] Embodiment Four
[0096] Figure 5 A structural schematic diagram of an electronic device 10 that can be used to implement the data search method of the embodiment of the application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, electronic devices, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (such as headsets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the application described and / or claimed in this document.
[0097] As shown in Figure 5 The electronic device 10 includes at least one processor 11, and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is in communication connection with the at least one processor 11, wherein the memory stores a computer program that can be executed by the at least one processor, and the processor 11 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0098] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0099] The processor 11 may be any general-purpose and / or specialized processing component with processing and computing capabilities. Examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors for running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the data search method.
[0100] In some embodiments, the data search method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit. In some embodiments, part or all of the computer program can be loaded and / or installed on a heterogeneous hardware accelerator via a ROM and / or a communication unit. When the computer program is loaded into RAM and executed by a processor, one or more steps of the data search method described above can be performed. Alternatively, in other embodiments, the processor can be configured to perform the data search method by any other appropriate means (e.g., by means of firmware).
[0101] Various embodiments of the systems and techniques described 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 a chip (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes 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.
[0102] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or electronic device.
[0103] In the context of the present invention, computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage medium can include but is not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can 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.
[0104] To provide interaction with a user, the systems and techniques described herein can be implemented on a heterogeneous hardware accelerator that has: 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 heterogeneous hardware accelerator. 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).
[0105] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as data electronics), or a computing system that includes middleware components (e.g., application electronics), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or 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 can 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), a blockchain network, and the Internet.
[0106] A computing system may include a client and an electronic device. The client and electronic device are generally remote from each other and typically interact via a communication network. The client-electronic device relationship is established by computer programs running on the respective computers and establishing a client-electronic device relationship. The electronic device may be a cloud electronic device, also known as a cloud computing electronic device or cloud host, a host product within a cloud computing service ecosystem that addresses the management difficulties and limited business scalability of traditional physical hosts and VPS services.
[0107] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.
[0108] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A data search method, characterized in that: include: After obtaining a data search request from a user, determining a target cluster type of the data search request and extracting search feature information in the data search request; After determining that the target cluster type is a local cluster and a remote cluster, performing data searches in the target remote cluster and the local cluster of the data search request according to the search feature information by using a remote search component and a local search component, respectively, to obtain remote search results and local search results of the data search request; The remote search results and the local search results are aggregated to obtain search results for the data search request, and the search results are provided to the user.
2. The data search method according to claim 1, characterized in that: Also includes: The remote index information and permission information of each remote cluster are stored in a preset storage component; wherein the remote index information includes identification information and configuration information.
3. The data search method according to claim 1, characterized in that: Determining the target cluster type of the data search request includes: When the data search request includes hybrid search indication information and identification information of a remote cluster, determining that the target cluster type of the data search request is a local cluster and a remote cluster, and extracting the identification information of the target remote cluster in the data search request; When the data search request does not include the hybrid search indication information and the identification information of the remote cluster, determining that the target cluster type of the data search request is a local cluster; When the data search request does not include the hybrid search indication information but includes identification information of a remote cluster, it is determined that the target cluster type of the data search request is a remote cluster, and the identification information of the target remote cluster in the data search request is extracted.
4. The data search method according to claim 1, characterized in that: By using a remote search component and a local search component, data is searched in the target remote cluster and the local cluster of the data search request according to the search feature information, respectively, to obtain remote search results and local search results of the data search request, including: The remote search component determines the target remote cluster of the data search request, obtains the business data related to the search feature information in the target remote cluster, and obtains the remote search results of the data search request.
5. The data search method according to claim 1, characterized in that: By using a remote search component and a local search component, data is searched in the target remote cluster and the local cluster of the data search request according to the search feature information, respectively, to obtain remote search results and local search results of the data search request, including: The business data related to the search feature information in the local cluster is acquired through the local search component to obtain the local search results of the data search request.
6. The data search method according to claim 1, characterized in that: Aggregating the remote search results and the local search results to obtain search results for the data search request includes: De-duplication and merging of various business data in the remote search results and the local search results; The business data after de-duplication and merging are sorted to obtain a business data sequence, and the business data sequence is determined as the search result of the data search request.
7. The data search method according to claim 1, characterized in that: Also includes: Detecting whether the user has access rights to the target remote cluster, and obtaining a permission detection result of the user; After determining that the permission detection result is no permission, the business data related to the target remote cluster in the search results of the data search request is filtered out.
8. A data search device, characterized in that: include: A request processing module is used to determine the target cluster type of the data search request after obtaining the user's data search request, and extract the search feature information in the data search request; A data search module is configured to, after determining that the target cluster type is a local cluster or a remote cluster, perform data searches in the target remote cluster and the local cluster of the data search request according to the search feature information through a remote search component and a local search component, respectively, to obtain remote search results and local search results of the data search request; A result aggregation module is used to aggregate the remote search results and the local search results to obtain the search results of the data search request, and provide the search results to the user.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data search method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data search method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Search based on client, used for intention analysis and scheduling and performing relevance processing of local and remote data sources
CN103049531A
Identifying search results from local and remote search of communications in parallel
CN108140176A
Simulation trademark query system and method, electronic equipment and storage medium
CN112417196A
Client intent in integrated search environment
IN201647031134A
System and method for facilitating a distributed search of local and remote systems
US7330846B1