CN104778244B - The searching method and device of data - Google Patents
The searching method and device of data Download PDFInfo
- Publication number
- CN104778244B CN104778244B CN201510167056.0A CN201510167056A CN104778244B CN 104778244 B CN104778244 B CN 104778244B CN 201510167056 A CN201510167056 A CN 201510167056A CN 104778244 B CN104778244 B CN 104778244B
- Authority
- CN
- China
- Prior art keywords
- tenant
- data resource
- data
- search
- searched
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of searching method of data and devices, are related to data fields.The searching method of the data, including:Obtain the keyword of tenant's ID inputs;Judge whether the tenant ID inputs the control instruction of specified search range, generates judging result;According to the judging result, data resource to be searched is determined;According to the keyword, scanned in the corresponding index of the determining data resource to be searched.The invention enables the data resources that tenant ID can easily search oneself needs.
Description
Technical field
The present invention relates to database technical field, more particularly to the searching method and device of a kind of data.
Background technology
Multi-tenant technology is a kind of software architecture technology in cloud computing, it is intended to solve how in the environment of multi-user (to compare
Such as cloud computing environment) identical system or program assembly are shared, also ensure that the isolation of data between each user.
In multi-tenant technology, tenant (Tenant) refers to the user using system or computing resource, including in systems
It can recognize that all data for designated user, such as the account created in systems and statistical information (Accounting Data),
And the customization application environment etc. set by the various data being arranged in systems and user, belong to the model of tenant
It encloses.
Under the frame, the data how tenant is able to conveniently find oneself needs become problem to be solved.
Invention content
The present invention provides a kind of searching method and device of data so that tenant can be able to conveniently find the number of oneself needs
According to.
On the one hand, a kind of searching method of data is provided, including:
Obtain the keyword of tenant's ID inputs;
Judge whether the tenant ID inputs the control instruction of specified search range, generates judging result;
According to the judging result, data resource to be searched is determined;
According to the keyword, scanned in the corresponding index of the determining data resource to be searched.
It is described according to the judging result, the step of determining data resource to be searched includes:
When the judging result is to be, the control instruction determines data resource to be searched;
When the judging result is no, the subscription data type of the tenant ID is obtained;Described in the tenant ID
The data resource of predetermined data types is data resource to be searched.
It is described according to the control instruction, the step of determining data resource to be searched includes:
When the control instruction of the tenant ID is the shared data type of search, provided with the data of the tenant ID
Source and with the tenant ID have shared relationship other tenant ID data resource together as data resource to be searched;Or
When the control instruction of the tenant ID is that search specifies search for the data type of example, with the finger of the tenant ID
Surely the data resource of search example is data resource to be searched.
When the control instruction of the tenant ID is that search is shared and when specifying search for the data type of example, with described
The data resource for specifying search for example of tenant ID and with the tenant ID have shared relationship the specified of other tenant ID search
The data resource of rope example is together as data resource to be searched.
The step according to the keyword, scanned in the corresponding index of the determining data resource to be searched
It is rapid to be specially:
According to the keyword, scanned in the index of the determining data resource to be searched.
Before the step of keyword for obtaining tenant's ID inputs, the method includes:
The index of data resource is established, the index field of the data resource includes:Title, the data resource of data resource
Abstract, the video address of data resource, the tenant ID of data resource, data resource User ID in one or more.
On the other hand, a kind of searcher of data is provided, including:
Acquiring unit obtains the keyword of tenant's ID inputs;
Judging unit, judges whether the tenant ID inputs the control instruction of specified search range, generates judging result;
Determination unit determines data resource to be searched according to the judging result;
Search unit is searched in the corresponding index of the determining data resource to be searched according to the keyword
Rope.
The determination unit includes:
First determination subelement, according to the control instruction, determines data money to be searched when the judging result is to be
Source;
Second determination subelement obtains the subscription data type of the tenant ID when the judging result is no;With institute
The data resource for stating the predetermined data types of tenant ID is data resource to be searched.
Third determining module, when the control instruction of the tenant ID is to search for data that are shared and specifying search for example
When type, there are other rents of shared relationship with the data resource for specifying search for example of the tenant ID and with the tenant ID
The data resource for specifying search for example of family ID is together as data resource to be searched.
First determination subelement includes:
First determining module, when the control instruction of the tenant ID is the shared data type of search, with described
The data resource of tenant ID and have the data resource of other tenant ID of shared relationship together as waiting searching with the tenant ID
Rope data resource;Or
Second determining module, when the control instruction of the tenant ID is that search specifies search for the data type of example, with
The data resource for specifying search for example of the tenant ID is data resource to be searched.
Described search unit is specially:According to the keyword, in the index of the determining data resource to be searched
It scans for.
The device further includes:
Unit is established, the index of data resource is established, the index field of the data resource includes:The mark of data resource
One in topic, the User ID of the tenant ID of the abstract of data resource, the video address of data resource, data resource, data resource
It is a or multiple.
The invention has the advantages that:
It is to be searched to determine by judging whether tenant ID inputs the control instruction of specified search range in the present invention
Data resource;Then, it according to keyword, is scanned in the corresponding index of the determining data resource to be searched so that
Tenant can be able to conveniently find the data of oneself needs.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages can be by the explanations write
Specifically noted structure is realized and is obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Description of the drawings
Attached drawing is used to provide further understanding of the present invention, and a part for constitution instruction, the reality with the present invention
It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of an embodiment of the searching method of data in the embodiment of the present invention;
Fig. 2 is a kind of flow chart of another embodiment of the searching method of data in the embodiment of the present invention;
Fig. 3 is a kind of connection diagram of the searcher of data in the embodiment of the present invention.
Specific implementation mode
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Fig. 1 is a kind of searching method of an embodiment of data of the present invention.As shown in Figure 1, the method includes:
Step S11 after tenant logs in, obtains the keyword of tenant's ID inputs;
Step S12, judges whether the tenant ID inputs the control instruction of specified search range, generates judging result;
In the step, some search range options can be provided and selected for tenant ID.For example, search range, which is some, searches for example (such as
TV data example, picture example, document examples) or search range be:Other tenants share to the tenant data or
The data etc. of tenant oneself.In the step, user can also be inputted by the form of parameter.
Step S13 determines data resource to be searched according to the judging result;
Step S14 is searched in the corresponding index of the determining data resource to be searched according to the keyword
Rope.
For example, if user has selected some to search for example, searched in the corresponding index of search example.If with
The non-selected search example in family, then can be with default search example for tv data resources.In search, the search field of TV data resources can
Think:Title, abstract, vocabulary of data etc..
It is to be searched to determine by judging whether tenant ID inputs the control instruction of specified search range in the present invention
Data resource, naturally it is also possible to not have to input any control instruction, system provides default search example and acquiescence, and only search belongs to
Data under the tenant;Then, it according to keyword, is searched in the corresponding index of the determining data resource to be searched
Rope, in numerous search data type instances so that tenant can conveniently and efficiently find the data of oneself needs.
Optionally, in one embodiment, before step S11, the method includes:
Step S10 establishes the index of data resource, wherein the index field of the data resource may include:Data provide
The User ID of the title in source, the abstract of data resource, the video address of data resource, the tenant ID of data resource, data resource
In one or more.
Fig. 2 is a kind of another embodiment of the searching method of data of the present invention.As shown in Fig. 2, the method packet
It includes:
Step S20 establishes the index of data resource, wherein the index field of the data resource may include:Data provide
The User ID of the title in source, the abstract of data resource, the video address of data resource, the tenant ID of data resource, data resource
In one or more.
Step S21 obtains the keyword of tenant's ID inputs;
Step S22, judges whether the tenant ID inputs the control instruction of specified search range, generates judging result;
In the step, some search range options can be provided and selected for tenant ID.For example, search range is some data search examples
(such as:Tv TV datas) or search range be:Shared data etc..In the step, user can also pass through the form of parameter
Input.
Step S23, according to the control instruction, determines data resource to be searched when the judging result is to be.It determines
Data resource to be searched includes:It determines search example and determines whether to search for shared data;
Step S24 obtains the subscription data type of the tenant ID when the judging result is no;With the tenant
The data resource of the predetermined data types of ID is data resource to be searched.That is, in the example of system default, only
Search for the data of tenant oneself.
Step S25 is searched in the corresponding index of the determining data resource to be searched according to the keyword
Rope.
In above-described embodiment, user can select search range.Such as search example to be searched is selected, such as select tv numbers
According to or album data.When selecting tv data, parameter i=tv can be added, can also default search search example be tv data.
Optionally, step S23 may include:
Step S231, when the control instruction of the tenant ID is the shared data type of search, in system default
It searches in example, there are the data of other tenant ID of shared relationship with the data resource of the tenant ID and with the tenant ID
Resource is together as data resource to be searched;Or
Step S232, when the control instruction of the tenant ID is that search specifies search for example, with the finger of the tenant ID
Surely the data resource of search example is data resource to be searched, and only searches for the tenant data of oneself.
Step S233, when the control instruction of the tenant ID is shared for search and specifies search for example, with described
The data resource for specifying search for example of tenant ID and with the tenant ID have shared relationship the specified of other tenant ID search
The data resource of rope example is together as data resource to be searched.
For example, after obtaining the keyword of tenant ID inputs, according to the identification field of tenant ID, acquiescence only searches for tenant
Data resource.If the control instruction of tenant's input is:It searches for the data of oneself and others is shared with his data, then basis
Tenant ID's shares identification field, has shared tenant ID corresponding in the corresponding scope of resource of tenant ID and with the tenant ID
Scope of resource in, the resource and the other tenant that search for oneself are shared with the resource of the tenant ID, it is also possible to select to search for
Example, it is video resource example such as to search for example.
In above-described embodiment, the data resource of tenant ID is not only may search for, other tenant ID can also be searched for and shared to
The data resource of tenant ID expands the search range of data resource.
The application scenarios of the present invention are described below.
By taking example as an example, different data types corresponds to different search examples.Also, different search examples has not
Same structure, so index structure is also different, the field that can be indexed is also different.
For different search examples, search engine is supported when establishing index to configured index field under each example
Establish index.Such as:Configured index field includes:Title, abstract, video address, tenant ID, User ID or index name
Deng.
When scanning for, user inputs keyword.Optionally, user is also an option that the search example of search, such as tv
Data or album data.When select search search example for tv data when, parameter i=tv can be added.It can also default search
Example is the data of tv data types.
That is, if user has selected search example, searched in the corresponding index of search example.If with
The non-selected data type in family, then default search tv data resources example.The search field of TV data resources can be:The mark of data
Topic, abstract, vocabulary etc..
By taking the tenant ID of login as an example, after obtaining the keyword of tenant ID inputs, according to the identification field of tenant ID,
Acquiescence only searches for the data resource of tenant.If the control instruction of tenant's input is:It searches for the data of oneself and others is shared with
His data, then according to the identification field of sharing of tenant ID, (field record tenant oneself ID and other sharing data are to it
Tenant ID, with separated by commas), have shared tenant ID corresponding in the corresponding scope of resource of tenant ID and with the tenant ID
Scope of resource in, the resource and the other tenant that search for oneself are shared with the resource of the tenant ID, it is also possible to select to search for
Search example be video resource example.
Fig. 3 is of the present invention to a kind of searcher of data.As shown in figure 3, the method includes:
Acquiring unit 31 obtains the keyword of tenant's ID inputs;
Judging unit 32, judges whether the tenant ID inputs the control instruction of specified search range, generates and judges knot
Fruit;
Determination unit 33 determines data resource to be searched according to the judging result.Determine that data resource to be searched includes
Two aspects:It determines search example and determines whether to search for shared data;
Search unit 34 is scanned for according to the keyword in the index of determining described search example.
The determination unit 33 includes:
First determination subelement, according to the control instruction, determines data money to be searched when the judging result is to be
Source;
Second determination subelement in system default example, only searches for tenant's oneself when the judging result is no
Data.Obtain the subscription data type of the tenant ID;Data resource with the predetermined data types of the tenant ID is
Data resource to be searched.
First determination subelement includes:
First determining module, when the control instruction of the tenant ID is the shared data type of search, with described
The data resource of tenant ID and have the data resource of other tenant ID of shared relationship together as waiting searching with the tenant ID
Rope data resource;Or
Second determining module, when the control instruction of the tenant ID is that search specifies search for the data type of example, with
The data resource for specifying search for example of the tenant ID is data resource to be searched;
Third determining module, when the control instruction of the tenant ID is to search for data that are shared and specifying search for example
When type, there are other rents of shared relationship with the data resource for specifying search for example of the tenant ID and with the tenant ID
The data resource for specifying search for example of family ID is together as data resource to be searched.
The device further includes:
Unit 35 is established, the index of data resource is established, the index field of the data resource includes:The mark of data resource
One in topic, the User ID of the tenant ID of the abstract of data resource, the video address of data resource, data resource, data resource
It is a or multiple.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (4)
1. a kind of searching method of data, which is characterized in that including:
Obtain the keyword of tenant's ID inputs;
Judge whether the tenant ID inputs the control instruction of specified search range, generates judging result;
According to the judging result, data resource to be searched is determined;
According to the keyword, scanned in the corresponding index of the determining data resource to be searched;
It is described according to the judging result, the step of determining data resource to be searched includes:
When the judging result is to be, according to the control instruction, data resource to be searched is determined;
When the judging result is no, the predetermined data types of the tenant ID are obtained;With the described predetermined of the tenant ID
The data resource of data type is data resource to be searched;
It is described according to the control instruction, the step of determining data resource to be searched includes:
When the control instruction of the tenant ID is the shared data type of search, with the data resource of the tenant ID and
Have the data resource of other tenant ID of shared relationship together as data resource to be searched with the tenant ID;Or
When the control instruction of the tenant ID is that search specifies search for the data type of example, searched with the specified of tenant ID
The data resource of rope example is data resource to be searched;
When the control instruction of the tenant ID is that search is shared and when specifying search for the data type of example, with the tenant
The data resource for specifying search for example of ID and with the tenant ID there are other tenant ID of shared relationship to specify search for reality
The data resource of example is together as data resource to be searched.
2. according to the method described in claim 1, it is characterized in that, the step of the keyword for obtaining a tenant ID input it
Before, the method includes:
The index of data resource is established, the index field of the data resource includes:The title of data resource, data resource are plucked
It wants, one or more in the User ID of the tenant ID of the video address of data resource, data resource, data resource.
3. a kind of searcher of data, which is characterized in that including:
Acquiring unit obtains the keyword of tenant's ID inputs;
Judging unit, judges whether the tenant ID inputs the control instruction of specified search range, generates judging result;
Determination unit determines data resource to be searched according to the judging result;
Search unit is scanned in the corresponding index of the determining data resource to be searched according to the keyword;
The determination unit includes:
First determination subelement, according to the control instruction, determines data resource to be searched when the judging result is to be;
Second determination subelement obtains the predetermined data types of the tenant ID when the judging result is no;With described
The data resource of the predetermined data types of tenant ID is data resource to be searched;
First determination subelement includes:
First determining module, when the control instruction of the tenant ID is the shared data type of search, with the tenant
The data resource of ID and with the tenant ID have shared relationship other tenant ID data resource together as number to be searched
According to resource;Or
Second determining module, when the control instruction of the tenant ID is that search specifies search for the data type of example, with described
The data resource for specifying search for example of tenant ID is data resource to be searched;
Third determining module, when the control instruction of the tenant ID is to search for data type that is shared and specifying search for example
When, there are other tenant ID of shared relationship with the data resource for specifying search for example of the tenant ID and with the tenant ID
The data resource for specifying search for example together as data resource to be searched.
4. device according to claim 3, which is characterized in that further include:
Unit is established, the index of data resource is established, the index field of the data resource includes:Title, the number of data resource
According to the abstract of resource, the video address of data resource, the tenant ID of data resource, data resource User ID in one or
It is multiple.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510167056.0A CN104778244B (en) | 2015-04-09 | 2015-04-09 | The searching method and device of data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510167056.0A CN104778244B (en) | 2015-04-09 | 2015-04-09 | The searching method and device of data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104778244A CN104778244A (en) | 2015-07-15 |
CN104778244B true CN104778244B (en) | 2018-08-24 |
Family
ID=53619708
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510167056.0A Expired - Fee Related CN104778244B (en) | 2015-04-09 | 2015-04-09 | The searching method and device of data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104778244B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653373A (en) * | 2016-02-25 | 2016-06-08 | 腾讯科技(深圳)有限公司 | Resource distributing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102937901A (en) * | 2012-10-17 | 2013-02-20 | 武汉钢铁(集团)公司 | Multi-tenant architecture design method |
CN103136272A (en) * | 2011-12-02 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Searching method and device based on network community searching |
CN104252454A (en) * | 2013-06-25 | 2014-12-31 | 广州中国科学院软件应用技术研究所 | Method and system for multi-tenant mode data authority control oriented to cloud calculation |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013025556A1 (en) * | 2011-08-12 | 2013-02-21 | Splunk Inc. | Elastic scaling of data volume |
-
2015
- 2015-04-09 CN CN201510167056.0A patent/CN104778244B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103136272A (en) * | 2011-12-02 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Searching method and device based on network community searching |
CN102937901A (en) * | 2012-10-17 | 2013-02-20 | 武汉钢铁(集团)公司 | Multi-tenant architecture design method |
CN104252454A (en) * | 2013-06-25 | 2014-12-31 | 广州中国科学院软件应用技术研究所 | Method and system for multi-tenant mode data authority control oriented to cloud calculation |
Non-Patent Citations (1)
Title |
---|
基于ElasticSearch的元数据搜索与共享平台;姜康等;《计算机与现代化》;20150228;第119-121页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104778244A (en) | 2015-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3188006B1 (en) | Composite graphical interface with shareable data-objects | |
US9292181B2 (en) | Filtering objects in a multi-tenant environment | |
CN103942319B (en) | A kind of method and device of search | |
CN109829287A (en) | Api interface permission access method, equipment, storage medium and device | |
EP3093809B1 (en) | Systems and methods for state machine management | |
US10175954B2 (en) | Method of processing big data, including arranging icons in a workflow GUI by a user, checking process availability and syntax, converting the workflow into execution code, monitoring the workflow, and displaying associated information | |
US11132358B2 (en) | Candidate name generation | |
US10509843B2 (en) | Systems and methods for managing tabs in web applications | |
CN108255689A (en) | A kind of Apache Spark application automation tuning methods based on historic task analysis | |
JP5844895B2 (en) | Distributed data search system, distributed data search method, and management computer | |
EP3182298A2 (en) | Smart elastic scaling based on application scenarios | |
US9367592B2 (en) | Using metaphors to present concepts across different intellectual domains | |
US9465658B1 (en) | Task distribution over a heterogeneous environment through task and consumer categories | |
CN104778244B (en) | The searching method and device of data | |
US20210344779A1 (en) | Combined local and server context menus | |
US10262061B2 (en) | Hierarchical data classification using frequency analysis | |
US10902461B2 (en) | Environmental modification using tone model analysis | |
US10528625B2 (en) | Client cloud synchronizer | |
WO2015016133A1 (en) | Information management device, and information management method | |
US20180054471A1 (en) | Hardware Bus Redirection | |
JP6483580B2 (en) | Image processing apparatus, image processing method, image processing program, and recording medium storing the program | |
CN112789830A (en) | A robotic platform for multi-mode channel-agnostic rendering of channel responses | |
JP6256079B2 (en) | Search program, search method, and search device | |
US10789206B2 (en) | System and method for parallel storage transformation | |
US20150142979A1 (en) | Equipment for mobile cloud cooperation and system including the equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Data search method and device Effective date of registration: 20210104 Granted publication date: 20180824 Pledgee: Inner Mongolia Huipu Energy Co.,Ltd. Pledgor: TVMINING (BEIJING) MEDIA TECHNOLOGY Co.,Ltd. Registration number: Y2020990001527 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180824 Termination date: 20210409 |
|
CF01 | Termination of patent right due to non-payment of annual fee |