[go: up one dir, main page]

CN109918405A - A kind of search method and device based on multi-tenant multi-data source - Google Patents

A kind of search method and device based on multi-tenant multi-data source Download PDF

Info

Publication number
CN109918405A
CN109918405A CN201910071872.XA CN201910071872A CN109918405A CN 109918405 A CN109918405 A CN 109918405A CN 201910071872 A CN201910071872 A CN 201910071872A CN 109918405 A CN109918405 A CN 109918405A
Authority
CN
China
Prior art keywords
target
tenant
database
search result
label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910071872.XA
Other languages
Chinese (zh)
Other versions
CN109918405B (en
Inventor
敬睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910071872.XA priority Critical patent/CN109918405B/en
Publication of CN109918405A publication Critical patent/CN109918405A/en
Application granted granted Critical
Publication of CN109918405B publication Critical patent/CN109918405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Storage Device Security (AREA)

Abstract

The embodiment of the invention provides a kind of search method and device based on multi-tenant multi-data source.The present invention relates to network safety fileds, this method comprises: receiving the target retrieval label of target tenant input, it is retrieved in target database according to target retrieval label, target database is the individual database of target tenant, and the individual database of target tenant is the database that only target tenant has access authority;Judge in target database with the presence or absence of search result;If there are search results in target database, search result is returned to target tenant;If search result is not present in target database, retrieval is carried out in shared data source according to target retrieval label and returns to search result to target tenant, shared data source is the public resource that all tenants have access authority.Therefore, technical solution provided in an embodiment of the present invention, which is able to solve multi-tenant shared data source, leads to the problem that data isolation rank is low, Information Security is lower.

Description

A kind of search method and device based on multi-tenant multi-data source
[technical field]
The present invention relates to network safety filed more particularly to a kind of search methods and dress based on multi-tenant multi-data source It sets.
[background technique]
Multi-tenant technology (English: multi-tenancy technology) or multiple leasing techniques, are a kind of software Architecture technology.
In multi-tenant technology, tenant (tenant) refers to the client using system or computer calculation resources.Tenant uses Supplier development or the application system or calculation resources built, application system designed by supplier can accommodate several users same It uses under one environment, in order to which multiple user environments can be used in the same application program and computing environment, then applies Program has to be specifically designed with computing environment, in addition to system platform can be allowed to allow more parts of identical application programs while being run Outside, the privacy of tenant data and one of the key of safety and multi-tenant technology are protected.
Multi-tenant mainly retrieves data by way of shared data source, and degree of share is high, but data isolation rank It is low, Information Security is lower.
[summary of the invention]
In view of this, the embodiment of the invention provides a kind of search method and device based on multi-tenant multi-data source, is used To solve the problems, such as that multi-tenant shared data source leads to that data isolation rank is low, Information Security is lower.
On the one hand, the embodiment of the invention provides a kind of search method based on multi-tenant multi-data source, the method packets It includes: receiving the target retrieval label of target tenant input, retrieved in target database according to the target retrieval label, The target database is the individual database of the target tenant, and the individual database of the target tenant is the only described mesh Mark the database that tenant has access authority;Judge in the target database with the presence or absence of search result;If the target There are search results in database, then return to search result to the target tenant;If be not present in the target database Search result then carries out retrieval and returns to the target tenant to retrieve in shared data source according to the target retrieval label As a result, the shared data source is the public resource that all tenants have access authority.
Further, before the target retrieval label of the reception target tenant input, the method also includes: it obtains The registration information of the target tenant;The target database is created according to the registration information of the target tenant;Described in acquisition The personal settings label of target tenant, the personal settings label are the personalized marks that the target tenant is arranged according to demand Label;It is retrieved in shared data source according to the personal settings label of the target tenant;Judge in the shared data source With the presence or absence of the search result of the personal settings label of the target tenant;If there is the personal settings mark of the target tenant The search result of the personal settings label of the target tenant is then synchronized to the target database by the search result of label.
Further, described after the target database according to the creation of the registration information of the target tenant Method further include: receive the operational order that the target tenant sends, the operational order includes at least following one: for referring to Show the instruction of storing data, be used to indicate and delete the instruction of data, be used to indicate and modify the instruction of data, be used to indicate inquiry number According to instruction;The target database is operated according to the operational order.
Further, the number of targets is synchronized in the search result of the personal settings label by the target tenant After library, the method also includes: the shared data source is updated every preset time;Update the shared data source it Afterwards, the data in the target database are obtained, the data in the target database are analyzed, the target is obtained and rents The demand business at family;It is inquired in the shared data source according to the demand business of the target tenant, obtains related inspection Hitch fruit;Recommend the coordinate indexing result to the target tenant;The store instruction that the target tenant sends is received, it is described Store instruction is used to indicate coordinate indexing result storage to the target database.
Further, the number of targets is synchronized in the search result of the personal settings label by the target tenant After library, the method also includes: the encrypted instruction of the target tenant transmission is received, the encrypted instruction, which is used to indicate, to be added Data in the close target database;If there are search results in the target database, rented to the target Family returns to search result, comprising: if there are search result in the target database, judge the search result whether include Encryption data;If the search result includes encryption data, place is decrypted to the encryption data in the search result Reason, Xiang Suoshu target tenant return to the search result after decryption processing.
On the one hand, the embodiment of the invention provides a kind of retrieval device based on multi-tenant multi-data source, described device packets It includes: the first receiving unit, for receiving the target retrieval label of target tenant input, according to the target retrieval label in target It is retrieved in database, the target database is the individual database of the target tenant, the individual of the target tenant Database is the database that the only described target tenant has access authority;First judging unit, for judging the number of targets According in library whether there is search result;First return unit, if in the target database there are search result, to The target tenant returns to search result;Second return unit, if for search result to be not present in the target database, Retrieval is then carried out in shared data source according to the target retrieval label and returns to search result to the target tenant, it is described Shared data source is the public resource that all tenants have access authority.
Further, described device further include: first acquisition unit is rented for receiving target in first receiving unit Before the target retrieval label of family input, the registration information of the target tenant is obtained;Creating unit, for according to the target The registration information of tenant creates the target database;Second acquisition unit, for obtaining the personal settings label of target tenant, The personal settings label is the personalized labels that the target tenant is arranged according to demand;Retrieval unit, for according to The personal settings label of target tenant is retrieved in shared data source;Second judgment unit, for judging the shared number According to the search result for the personal settings label that whether there is the target tenant in source;Synchronization unit, for if there is described The search result of the personal settings label of target tenant, then it is the search result of the personal settings label of the target tenant is synchronous To the target database.
Further, described device further include: the second receiving unit, for creating the number of targets in the creating unit After library, the operational order that the target tenant sends is received, the operational order includes at least following one: being used to indicate The instruction of storing data is used to indicate and deletes the instruction of data, is used to indicate and modifies the instruction of data, be used to indicate inquiry data Instruction;Operating unit, for operating the target database according to the operational order.
Further, described device further include: the first updating unit, in the synchronization unit by the target tenant The search result of personal settings label be synchronized to after the target database, update the shared data every preset time Source;Determination unit obtains the data in the target database after updating the shared data source, to the target Data in database are analyzed, and the demand business of the target tenant is obtained;Query unit, for being rented according to the target The demand business at family is inquired in the shared data source, obtains coordinate indexing result;Recommendation unit is used for the mesh It marks tenant and recommends the coordinate indexing result;Third receiving unit, the store instruction sent for receiving the target tenant, institute Store instruction is stated to be used to indicate coordinate indexing result storage to the target database.
Further, described device further include: the 4th receiving unit, in the synchronization unit by the target tenant The search result of personal settings label be synchronized to after the target database, receive the encryption that the target tenant sends and refer to It enables, the encrypted instruction is used to indicate the data encrypted in the target database;First return unit includes: judgement Unit, if for, there are search result, judging whether the search result includes encryption data in the target database;Solution Close subelement solves the encryption data in the search result if including encryption data for the search result Close processing, Xiang Suoshu target tenant return to the search result after decryption processing.
On the one hand, the embodiment of the invention provides a kind of storage medium, the storage medium includes the program of storage, In, equipment where controlling the storage medium in described program operation executes the above-mentioned retrieval based on multi-tenant multi-data source Method.
On the one hand, the embodiment of the invention provides a kind of computer equipment, including memory and processor, the memories For storing the information including program instruction, the processor is used to control the execution of program instruction, and described program instruction is located The step of reason device loads and realizes the above-mentioned search method based on multi-tenant multi-data source when executing.
In the embodiment of the present invention, individual database is provided for target tenant, and the individual database of target tenant is only mesh The database that tenant has access authority is marked, the personalized setting data of target tenant is synchronized to the personal data of target tenant The data of different tenants have been carried out effective isolation by the design in library, individual database, are avoided multi-tenant shared data source and are led The problem that data isolation rank is low, Information Security is lower is caused, the safety of data isolation rank and data is improved.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field For those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow chart of search method optionally based on multi-tenant multi-data source according to embodiments of the present invention;
Fig. 2 is a kind of schematic diagram of retrieval device optionally based on multi-tenant multi-data source according to embodiments of the present invention;
Fig. 3 is a kind of schematic diagram of optional computer equipment provided in an embodiment of the present invention.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the" It is also intended to including most forms, unless the context clearly indicates other meaning.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Fig. 1 is a kind of flow chart of search method optionally based on multi-tenant multi-data source according to embodiments of the present invention, As shown in Figure 1, this method comprises:
Step S110 receives the target retrieval label of target tenant input, according to target retrieval label in target database In retrieved, target database be target tenant individual database, the individual database of target tenant be only target rent Family has the database of access authority.
Step S112 judges in target database with the presence or absence of search result.
Step S114 returns to search result to target tenant if there are search results in target database.
Step S116, if search result is not present in target database, according to target retrieval label in shared data Retrieval is carried out in source and returns to search result to target tenant, and shared data source is that all tenants have the public of access authority Resource.
Individual database refers to the database independently created for each tenant, only stores the personal data of each tenant's configuration Information, the access of other tenant's lacks of competence.
In the embodiment of the present invention, individual database is provided for target tenant, and the individual database of target tenant is only mesh The database that tenant has access authority is marked, the personalized setting data of target tenant is synchronized to the personal data of target tenant The data of different tenants have been carried out effective isolation by the design in library, individual database, are avoided multi-tenant shared data source and are led The problem that data isolation rank is low, Information Security is lower is caused, the safety of data isolation rank and data is improved.
Optionally, before the target retrieval label for receiving target tenant input, method further include: obtain target tenant's Registration information;Target database is created according to the registration information of target tenant;The personal settings label of target tenant is obtained, it is personal It is the personalized labels that target tenant is arranged according to demand that label, which is arranged,;According to the personal settings label of target tenant in shared number According to being retrieved in source;Judge in shared data source with the presence or absence of the search result of the personal settings label of target tenant;If There are the search results of the personal settings label of target tenant, then the search result of the personal settings label of target tenant is synchronous To target database.
According to the registration information of target tenant, tenant's name, password, target tenant identification are distributed for target tenant, and create The individual database of target tenant.
By creating individual database for all tenants, the personal data information between all tenants has been carried out effectively Isolation, it is faulty for the individual database of some tenant that data is caused to have the case where loss, other tenants are not influenced, And the individual database for restoring a tenant is fairly simple.
By providing independent individual database for different tenants, the scalability of service is improved.
Optionally, after creating target database according to the registration information of target tenant, method further include: receive target The operational order that tenant sends, operational order include at least following one: being used to indicate the instruction of storing data, are used to indicate and delete Except the instruction of data, it is used to indicate the instruction modified the instruction of data, be used to indicate inquiry data;Mesh is operated according to operational order Mark database.
After creating target database, target tenant has the permission of operation target database, and permission includes increasing number According to, delete data, modification data, inquiry data etc..For the search result of the personal settings label of target tenant, if retrieval As a result certain data information is discontented with foot-eye tenant demand in multiple data informations, and target tenant, which has, deletes the data information Permission;If not having certain data information in search result, target tenant, which has, adds the data information into target database Permission.Target tenant has the permission for accessing and operating target database, but other tenants do not access or operate target data The permission in library is isolated by the data to different tenants, ensure that Information Security, also, tenant is to the data of oneself Library, which has, to be increased data, deletes data, modification data, the permission for inquiring data, and the personal settings to database have been reached.
Optionally, after the search result of the personal settings label of target tenant is synchronized to target database, method Further include: shared data source is updated every preset time;After updating shared data source, the data in target database are obtained, Data in target database are analyzed, the demand business of target tenant is obtained;Existed according to the demand business of target tenant Shared data is inquired in source, obtains coordinate indexing result;Recommend coordinate indexing result to target tenant;Receive target tenant The store instruction of transmission, store instruction are used to indicate coordinate indexing result storage to target database.
Preset time can be configured according to the actual situation, can be set to 1 hour, 4 hours, 24 hours etc., at interval of Preset time updates shared data source, makes tenant that can retrieve the data letter newer than more comprehensively in time in shared data source Breath can recommend the corresponding data letter updated after updating shared data source according to the demand of different tenants, Xiang Butong tenant Breath, for example, the target tenant of garment industry has paid close attention to the shop B after registering A software in personal settings, then has new in the shop B When garment data information, A software can recommend the new garment data information in the shop B to target tenant in time.
In the reasonable range of tenant's authorization, in the individual database of the available tenant of the manager in shared data source Content shared retrieval source is updated according to tenant's demand, better clothes can be provided for tenant to analyze the demand of tenant Business.
Optionally, after the search result of the personal settings label of target tenant is synchronized to target database, method Further include: the encrypted instruction that target tenant sends is received, encrypted instruction is used to indicate the data in encryption target database;If There are search results in target database, then return to search result to target tenant, comprising: if there is inspection in target database Rope is as a result, judge whether search result includes encryption data;If search result includes encryption data, in search result Encryption data is decrypted, the search result after returning to decryption processing to target tenant.
After creating target database for target tenant, target tenant can be according to demand to the data in target database Stored after encryption, other tenants getting target tenant encrypted data information can not normal read data, The process of encrypting and decrypting data is carried out in client, and avoiding server by network attack leads to tenant's leakage of private information Problem improves the safety of tenant data.
Optionally, after shared data source updates, each history retrieval in the history Checking label of target tenant is counted The retrieval number of label;If the retrieval number of the first history Checking label is greater than preset threshold, examined in shared data source The first Checking label of rope, wherein the first history Checking label is any one history in the history Checking label of target tenant Checking label;Judge the search result that whether there is the first history Checking label in updated shared data source;If updated There are the search results of the first history Checking label in shared data source afterwards, then push search result to target tenant.
Preset threshold can be configured according to actual needs.After tenant inputs Checking label every time, the inspection of tenant is stored The number of rope label is greater than default threshold according to number is retrieved in the history Checking label of tenant after shared data source updates The Checking label of value determines the demand of client, recommends to tenant the number in updated shared data source according to the demand of client According to, for example, preset threshold is 20, it the use of the number that the target tenant of A software retrieves fashion type clothes is 50, it is determined that target Tenant is to prefer fashion type clothes, after updating fashion type garment data information in the shared data source of A software, It can recommend newest fashion type garment data information to target tenant.
Fig. 2 is a kind of schematic diagram of retrieval device optionally based on multi-tenant multi-data source according to embodiments of the present invention, The device is for executing the above-mentioned search method based on multi-tenant multi-data source, as shown in Fig. 2, the device includes: the first reception Unit 10, the first judging unit 20, the first return unit 30, the second return unit 40.
First receiving unit 10 exists for receiving the target retrieval label of target tenant input according to target retrieval label It is retrieved in target database, target database is the individual database of target tenant, and the individual database of target tenant is Only database of the target tenant with access authority.
First judging unit 20, for judging in target database with the presence or absence of search result.
First return unit 30, if returning and retrieving to target tenant for there are search results in target database As a result.
Second return unit 40, if for search result to be not present in target database, according to target retrieval label Retrieval is carried out in shared data source and returns to search result to target tenant, and shared data source is that all tenants have access The public resource of permission.
In the embodiment of the present invention, individual database is provided for target tenant, and the individual database of target tenant is only mesh The database that tenant has access authority is marked, the personalized setting data of target tenant is synchronized to the personal data of target tenant The data of different tenants have been carried out effective isolation by the design in library, individual database, are avoided multi-tenant shared data source and are led The problem that data isolation rank is low, Information Security is lower is caused, the safety of data isolation rank and data is improved.
Optionally, device further include: first acquisition unit, creating unit, second acquisition unit, retrieval unit, second are sentenced Disconnected unit, synchronization unit.First acquisition unit, for receiving the target retrieval mark of target tenant input in the first receiving unit 10 Before label, the registration information of target tenant is obtained.Creating unit, for creating target data according to the registration information of target tenant Library.Second acquisition unit, for obtaining the personal settings label of target tenant, personal settings label be target tenant according to demand The personalized labels of setting.Retrieval unit, for being examined in shared data source according to the personal settings label of target tenant Rope.Second judgment unit, for judging in shared data source with the presence or absence of the search result of the personal settings label of target tenant. Synchronization unit, for the search result of the personal settings label if there is target tenant, then by the personal settings of target tenant The search result of label is synchronized to target database.
Optionally, device further include: the second receiving unit, operating unit.Second receiving unit, for being created in creating unit It builds after target database, receives the operational order that target tenant sends, operational order includes at least following one: being used to indicate The instruction of storing data is used to indicate and deletes the instruction of data, is used to indicate and modifies the instruction of data, be used to indicate inquiry data Instruction.Operating unit, for operating target database according to operational order.
Optionally, device further include: the first updating unit, determination unit, query unit, recommendation unit, third receive single Member.First updating unit, for the search result of the personal settings label of target tenant to be synchronized to number of targets in synchronization unit After library, shared data source is updated every preset time.Determination unit obtains target after updating shared data source Data in database analyze the data in target database, obtain the demand business of target tenant.Query unit, For inquiring in shared data source according to the demand business of target tenant, coordinate indexing result is obtained.Recommendation unit is used In to target tenant recommend coordinate indexing result.Third receiving unit, for receiving the store instruction of target tenant transmission, storage Instruction is used to indicate coordinate indexing result storage to target database.
Optionally, device further include: the 4th receiving unit.4th receiving unit, in synchronization unit by target tenant The search result of personal settings label be synchronized to after target database, receive the encrypted instruction that target tenant sends, encryption Instruction is used to indicate the data in encryption target database.First return unit 30 includes: judgment sub-unit, decryption subelement. Judgment sub-unit, if for, there are search result, judging whether search result includes encryption data in target database.Decryption Subelement is decrypted the encryption data in search result, if including encryption data for search result to mesh It marks tenant and returns to the search result after decryption processing.
On the one hand, the embodiment of the invention provides a kind of storage medium, storage medium includes the program of storage, wherein Equipment where control storage medium executes following steps when program is run: receiving the target retrieval label of target tenant input, root It is retrieved in target database according to target retrieval label, target database is the individual database of target tenant, and target is rented The individual database at family is the database that only target tenant has access authority;Judge in target database with the presence or absence of retrieval As a result;If there are search results in target database, search result is returned to target tenant;If in target database not There are search results, then carry out retrieval in shared data source according to target retrieval label and return to retrieval knot to target tenant Fruit, shared data source are the public resources that all tenants have access authority.
Optionally, when program is run, equipment where control storage medium also executes following steps: receiving target tenant Before the target retrieval label of input, the registration information of target tenant is obtained;Target is created according to the registration information of target tenant Database;The personal settings label of target tenant is obtained, personal settings label is the personalization that target tenant is arranged according to demand Label;It is retrieved in shared data source according to the personal settings label of target tenant;Judge whether deposit in shared data source In the search result of the personal settings label of target tenant;If there is the search result of the personal settings label of target tenant, The search result of the personal settings label of target tenant is then synchronized to target database.
Optionally, when program is run, equipment where control storage medium also executes following steps: according to target tenant Registration information creation target database after, receive target tenant send operational order, operational order include at least it is following One of: it is used to indicate the instruction of storing data, is used to indicate and is deleted the instruction of data, is used to indicate and modifies the instruction of data, use In the instruction of instruction inquiry data;Target database is operated according to operational order.
Optionally, when program is run, equipment where control storage medium also executes following steps: by target tenant's The search result of personal settings label is synchronized to after target database, updates shared data source every preset time;It updates altogether After enjoying data source, the data in target database are obtained, the data in target database are analyzed, target tenant is obtained Demand business;It is inquired in shared data source according to the demand business of target tenant, obtains coordinate indexing result;To mesh It marks tenant and recommends coordinate indexing result;The store instruction that target tenant sends is received, store instruction is used to indicate coordinate indexing As a result target database is arrived in storage.
Optionally, when program is run, equipment where control storage medium also executes following steps: by target tenant's The search result of personal settings label is synchronized to after target database, receives the encrypted instruction that target tenant sends, and encryption refers to Enable the data being used to indicate in encryption target database;If there are search results in target database, to target, tenant is returned Return search result, comprising: if judging whether search result includes encryption data there are search result in target database;Such as Fruit search result includes encryption data, then the encryption data in search result is decrypted, and returns and solves to target tenant Close treated search result.
On the one hand, the embodiment of the invention provides a kind of computer equipments, including memory and processor, memory to be used for Storage includes the information of program instruction, and processor is used to control the execution of program instruction, and program instruction is loaded and held by processor The target retrieval label for receiving target tenant input is performed the steps of when row, according to target retrieval label in target database In retrieved, target database be target tenant individual database, the individual database of target tenant be only target rent Family has the database of access authority;Judge in target database with the presence or absence of search result;If existed in target database Search result then returns to search result to target tenant;If search result is not present in target database, examined according to target Rope label carries out retrieval in shared data source and returns to search result to target tenant, and shared data source is that all tenants have There is the public resource of access authority.
Optionally, it is also performed the steps of when program instruction is loaded and executed by processor and is receiving target tenant input Target retrieval label before, obtain target tenant registration information;Target data is created according to the registration information of target tenant Library;The personal settings label of target tenant is obtained, personal settings label is the personalized labels that target tenant is arranged according to demand; It is retrieved in shared data source according to the personal settings label of target tenant;Judge in shared data source with the presence or absence of target The search result of the personal settings label of tenant;If there is the search result of the personal settings label of target tenant, then by mesh The search result for marking the personal settings label of tenant is synchronized to target database.
Optionally, it also performs the steps of when program instruction is loaded and executed by processor in the note according to target tenant After volume information creating target database, the operational order that target tenant sends is received, operational order includes at least following one: It is used to indicate the instruction of storing data, is used to indicate and is deleted the instruction of data, is used to indicate and modifies the instruction of data, be used to indicate Inquire the instruction of data;Target database is operated according to operational order.
Optionally, it is also performed the steps of when program instruction is loaded and executed by processor by the individual of target tenant The search result that label is arranged is synchronized to after target database, updates shared data source every preset time;Update shared number After source, the data in target database are obtained, the data in target database are analyzed, the need of target tenant are obtained Seek business;It is inquired in shared data source according to the demand business of target tenant, obtains coordinate indexing result;It is rented to target Recommend coordinate indexing result in family;The store instruction that target tenant sends is received, store instruction is used to indicate coordinate indexing result Store target database.
Optionally, it is also performed the steps of when program instruction is loaded and executed by processor by the individual of target tenant The search result that label is arranged is synchronized to after target database, receives the encrypted instruction that target tenant sends, and encrypted instruction is used Data in instruction encryption target database;If there are search results in target database, returns and examine to target tenant Hitch fruit, comprising: if judging whether search result includes encryption data there are search result in target database;If inspection Hitch fruit includes encryption data, then the encryption data in search result is decrypted, and is returned at decryption to target tenant Search result after reason.
Fig. 3 is a kind of schematic diagram of computer equipment provided in an embodiment of the present invention.As shown in figure 3, the meter of the embodiment Machine equipment 50 is calculated to include: processor 51, memory 52 and be stored in the meter that can be run in memory 52 and on processor 51 Calculation machine program 53 realizes the inspection based on multi-tenant multi-data source in embodiment when the computer program 53 is executed by processor 51 Suo Fangfa is not repeated one by one herein to avoid repeating.Alternatively, the computer program realizes embodiment when being executed by processor 51 In in the retrieval device based on multi-tenant multi-data source the function of each model/unit do not repeated one by one herein to avoid repeating.
Computer equipment 50 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment. Computer equipment may include, but be not limited only to, processor 51, memory 52.It will be understood by those skilled in the art that Fig. 3 is only It is the example of computer equipment 50, does not constitute the restriction to computer equipment 50, may include more more or fewer than illustrating Component perhaps combines certain components or different components, such as computer equipment can also include input-output equipment, net Network access device, bus etc..
Alleged processor 51 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
Memory 52 can be the internal storage unit of computer equipment 50, such as the hard disk or interior of computer equipment 50 It deposits.Memory 52 is also possible to the plug-in type being equipped on the External memory equipment of computer equipment 50, such as computer equipment 50 Hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, memory 52 can also both including computer equipment 50 internal storage unit and also including External memory equipment.Memory 52 is for storing other programs and data needed for computer program and computer equipment.It deposits Reservoir 52 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of search method based on multi-tenant multi-data source, which is characterized in that the described method includes:
The target retrieval label for receiving target tenant input, is examined in target database according to the target retrieval label Rope, the target database be the target tenant individual database, the individual database of the target tenant be only State the database that target tenant has access authority;
Judge in the target database with the presence or absence of search result;
If there are search results in the target database, search result is returned to the target tenant;
If in the target database be not present search result, according to the target retrieval label in shared data source into Row retrieval simultaneously returns to search result to the target tenant, and the shared data source is the public affairs that all tenants have access authority Resource altogether.
2. the method according to claim 1, wherein in the target retrieval label of the reception target tenant input Before, the method also includes:
Obtain the registration information of the target tenant;
The target database is created according to the registration information of the target tenant;
The personal settings label of the target tenant is obtained, the personal settings label is that the target tenant is arranged according to demand Personalized labels;
It is retrieved in the shared data source according to the personal settings label of the target tenant;
Judge in the shared data source with the presence or absence of the search result of the personal settings label of the target tenant;
If there is the search result of the personal settings label of the target tenant, then by the personal settings mark of the target tenant The search result of label is synchronized to the target database.
3. according to the method described in claim 2, it is characterized in that, being created described according to the registration information of the target tenant After the target database, the method also includes:
The operational order that the target tenant sends is received, the operational order includes at least following one: being used to indicate storage The instruction of data is used to indicate and deletes the instruction of data, is used to indicate the finger modified the instruction of data, be used to indicate inquiry data It enables;
The target database is operated according to the operational order.
4. according to the method described in claim 2, it is characterized in that, in the personal settings label by the target tenant Search result is synchronized to after the target database, the method also includes:
The shared data source is updated every preset time;
After updating the shared data source, the data in the target database are obtained, to the number in the target database According to being analyzed, the demand business of the target tenant is obtained;
It is inquired in the shared data source according to the demand business of the target tenant, obtains coordinate indexing result;
Recommend the coordinate indexing result to the target tenant;
The store instruction that the target tenant sends is received, the store instruction, which is used to indicate, stores the coordinate indexing result To the target database.
5. according to the described in any item methods of claim 2 to 4, which is characterized in that in the individual by the target tenant The search result that label is arranged is synchronized to after the target database, the method also includes:
The encrypted instruction that the target tenant sends is received, the encrypted instruction is used to indicate in the encryption target database Data;
If there are search results in the target database, search result is returned to the target tenant, comprising:
If judging whether the search result includes encryption data there are search result in the target database;
If the search result includes encryption data, the encryption data in the search result is decrypted, to The target tenant returns to the search result after decryption processing.
6. a kind of retrieval device based on multi-tenant multi-data source, which is characterized in that described device includes:
First receiving unit, for receiving the target retrieval label of target tenant input, according to the target retrieval label in mesh It is retrieved in mark database, the target database is the individual database of the target tenant, of the target tenant Personal data library is the database that the only described target tenant has access authority;
First judging unit, for judging in the target database with the presence or absence of search result;
First return unit, if returning and examining to the target tenant for there are search results in the target database Hitch fruit;
Second return unit, if for search result to be not present in the target database, according to the target retrieval mark Label carry out retrieval in shared data source and return to search result to the target tenant, and the shared data source is all tenants All with the public resource of access authority.
7. device according to claim 6, which is characterized in that described device further include:
First acquisition unit, for obtaining before the target retrieval label that first receiving unit receives target tenant input Take the registration information of the target tenant;
Creating unit, for creating the target database according to the registration information of the target tenant;
Second acquisition unit, for obtaining the personal settings label of the target tenant, the personal settings label is the mesh The personalized labels that mark tenant is arranged according to demand;
Retrieval unit, for being retrieved in shared data source according to the personal settings label of the target tenant;
Second judgment unit, for judging in the shared data source with the presence or absence of the personal settings label of the target tenant Search result;
Synchronization unit then rents the target for the search result of the personal settings label if there is the target tenant The search result of the personal settings label at family is synchronized to the target database.
8. device according to claim 7, which is characterized in that described device further include:
Second receiving unit, for after the creating unit creates the target database, receiving the target tenant hair The operational order sent, the operational order include at least following one: being used to indicate the instruction of storing data, are used to indicate deletion The instruction of data, the instruction for being used to indicate modification data, the instruction for being used to indicate inquiry data;
Operating unit, for operating the target database according to the operational order.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require any one of 1 to 5 described in based on multi-tenant multi-data source Search method.
10. a kind of computer equipment, including memory and processor, the memory is for storing the letter including program instruction Breath, the processor are used to control the execution of program instruction, it is characterised in that: described program instruction is loaded and executed by processor The step of search method described in Shi Shixian claim 1 to 5 any one based on multi-tenant multi-data source.
CN201910071872.XA 2019-01-25 2019-01-25 Retrieval method and device based on multi-tenant multi-data source Active CN109918405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910071872.XA CN109918405B (en) 2019-01-25 2019-01-25 Retrieval method and device based on multi-tenant multi-data source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910071872.XA CN109918405B (en) 2019-01-25 2019-01-25 Retrieval method and device based on multi-tenant multi-data source

Publications (2)

Publication Number Publication Date
CN109918405A true CN109918405A (en) 2019-06-21
CN109918405B CN109918405B (en) 2024-07-12

Family

ID=66960745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910071872.XA Active CN109918405B (en) 2019-01-25 2019-01-25 Retrieval method and device based on multi-tenant multi-data source

Country Status (1)

Country Link
CN (1) CN109918405B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543514A (en) * 2019-07-19 2019-12-06 国网能源研究院有限公司 Method and system for managing personal database
CN112084209A (en) * 2020-09-27 2020-12-15 中国银行股份有限公司 Knowledge base retrieval method and device, readable medium and equipment
CN112948260A (en) * 2021-03-29 2021-06-11 中信银行股份有限公司 Test data storage method, device, system, electronic equipment and medium
CN114168717A (en) * 2020-09-10 2022-03-11 株式会社东芝 Dialogue apparatus, dialogue method, and information recording medium
CN114372041A (en) * 2022-01-10 2022-04-19 中国民航信息网络股份有限公司 Multi-tenant API gateway data management method and system
CN114791907A (en) * 2022-03-30 2022-07-26 北京柏睿数据技术股份有限公司 Method and system for processing multi-tenant shared data

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7233975B1 (en) * 2002-08-19 2007-06-19 Juniper Networks, Inc. Private configuration of network devices
US20080270459A1 (en) * 2007-04-26 2008-10-30 Microsoft Corporation Hosted multi-tenant application with per-tenant unshared private databases
CN101777047A (en) * 2009-01-08 2010-07-14 国际商业机器公司 System, equipment and method for accessing database under multiple-tenant environment
CN102456028A (en) * 2010-10-27 2012-05-16 金蝶软件(中国)有限公司 Multi-tenant oriented data acquisition method, device and system
CN104160381A (en) * 2012-03-08 2014-11-19 国际商业机器公司 Managing tenant-specific data sets in a multi-tenant environment
CN104182414A (en) * 2013-05-24 2014-12-03 国际商业机器公司 Method and equipment for managing database in multi-tenant system
US20160292236A1 (en) * 2015-04-01 2016-10-06 International Business Machines Corporation Supporting multi-tenant applications on a shared database using pre-defined attributes
CN106503163A (en) * 2016-10-31 2017-03-15 用友网络科技股份有限公司 Based on the global configuration multi-tenant dynamic data origin system that SaaS is applied
CN107203575A (en) * 2016-03-18 2017-09-26 北京京东尚科信息技术有限公司 A kind of system, apparatus and method for being used to isolate multi-tenant data
US20180053210A1 (en) * 2016-08-17 2018-02-22 Adobe Systems Incorporated Personalization of Digital Content Recommendations

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7233975B1 (en) * 2002-08-19 2007-06-19 Juniper Networks, Inc. Private configuration of network devices
US20080270459A1 (en) * 2007-04-26 2008-10-30 Microsoft Corporation Hosted multi-tenant application with per-tenant unshared private databases
CN101777047A (en) * 2009-01-08 2010-07-14 国际商业机器公司 System, equipment and method for accessing database under multiple-tenant environment
CN102456028A (en) * 2010-10-27 2012-05-16 金蝶软件(中国)有限公司 Multi-tenant oriented data acquisition method, device and system
CN104160381A (en) * 2012-03-08 2014-11-19 国际商业机器公司 Managing tenant-specific data sets in a multi-tenant environment
CN104182414A (en) * 2013-05-24 2014-12-03 国际商业机器公司 Method and equipment for managing database in multi-tenant system
US20160292236A1 (en) * 2015-04-01 2016-10-06 International Business Machines Corporation Supporting multi-tenant applications on a shared database using pre-defined attributes
CN107203575A (en) * 2016-03-18 2017-09-26 北京京东尚科信息技术有限公司 A kind of system, apparatus and method for being used to isolate multi-tenant data
US20180053210A1 (en) * 2016-08-17 2018-02-22 Adobe Systems Incorporated Personalization of Digital Content Recommendations
CN106503163A (en) * 2016-10-31 2017-03-15 用友网络科技股份有限公司 Based on the global configuration multi-tenant dynamic data origin system that SaaS is applied

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543514A (en) * 2019-07-19 2019-12-06 国网能源研究院有限公司 Method and system for managing personal database
CN114168717A (en) * 2020-09-10 2022-03-11 株式会社东芝 Dialogue apparatus, dialogue method, and information recording medium
CN114168717B (en) * 2020-09-10 2025-07-08 株式会社东芝 Dialogue device, dialogue method, and information recording medium
CN112084209A (en) * 2020-09-27 2020-12-15 中国银行股份有限公司 Knowledge base retrieval method and device, readable medium and equipment
CN112084209B (en) * 2020-09-27 2023-11-14 中国银行股份有限公司 Knowledge base retrieval method, device, readable medium and equipment
CN112948260A (en) * 2021-03-29 2021-06-11 中信银行股份有限公司 Test data storage method, device, system, electronic equipment and medium
CN112948260B (en) * 2021-03-29 2024-08-20 中信银行股份有限公司 Test data storage method, device, system, electronic equipment and medium
CN114372041A (en) * 2022-01-10 2022-04-19 中国民航信息网络股份有限公司 Multi-tenant API gateway data management method and system
CN114791907A (en) * 2022-03-30 2022-07-26 北京柏睿数据技术股份有限公司 Method and system for processing multi-tenant shared data
CN114791907B (en) * 2022-03-30 2023-01-06 北京柏睿数据技术股份有限公司 Method and system for processing multi-tenant shared data
WO2023184908A1 (en) * 2022-03-30 2023-10-05 北京柏睿数据技术股份有限公司 Processing method and system for multi-tenant shared data

Also Published As

Publication number Publication date
CN109918405B (en) 2024-07-12

Similar Documents

Publication Publication Date Title
CN109918405A (en) A kind of search method and device based on multi-tenant multi-data source
US9787706B1 (en) Modular architecture for analysis database
US9697352B1 (en) Incident response management system and method
US8656161B2 (en) Information sharing system, information sharing method, group management program and compartment management program
CN111641627A (en) User role authority management method and device, computer equipment and storage medium
CN110532799B (en) Data desensitization control method, electronic device and computer readable storage medium
CN109871689A (en) Hold-up interception method and device, storage medium, the electronic device of operation behavior
CN106911770A (en) A kind of data sharing method and system based on many cloud storages
CN108196879A (en) Method for processing business, device, equipment and computer readable storage medium
CN107851153A (en) Use asynchronous abnormal computer safety system and the method for testing oneself
CN110442458A (en) Scaling calculates cluster
US20180336021A1 (en) Package installation on a host file system using a container
CN104050201A (en) Method and equipment for managing data in multi-tenant distributive environment
WO2017058876A1 (en) Architecture to facilitate organizational data sharing and consumption while maintaining data governance
CN109635581A (en) A kind of data processing method, equipment, system and storage medium
CN109598140A (en) A kind of guard method of webpage information and device
CN113360800A (en) Method and device for processing featureless data, computer equipment and storage medium
WO2013061213A1 (en) Passive monitoring of virtual systems using extensible indexing
CN113282630B (en) Data query method and device based on interface switching
CN110201393A (en) Configuration data storage method and device and electronic equipment
CN113722730B (en) Data desensitization processing method, device and storage medium
CN112651041A (en) Authority control method, device, equipment and storage medium
CN113778442A (en) System menu generating method, device, equipment and storage medium
KR20110084288A (en) Methods and systems for retrieving and storing information
CN118245170B (en) Container communication management method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant