CN109063215A - Data retrieval method and device - Google Patents

Data retrieval method and device Download PDF

Info

Publication number
CN109063215A
CN109063215A CN201811204939.4A CN201811204939A CN109063215A CN 109063215 A CN109063215 A CN 109063215A CN 201811204939 A CN201811204939 A CN 201811204939A CN 109063215 A CN109063215 A CN 109063215A
Authority
CN
China
Prior art keywords
index
data object
data
attribute
configuration
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
CN201811204939.4A
Other languages
Chinese (zh)
Other versions
CN109063215B (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.)
Chengdu Sefon Software Co Ltd
Original Assignee
Chengdu Sefon Software 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 Chengdu Sefon Software Co Ltd filed Critical Chengdu Sefon Software Co Ltd
Priority to CN201811204939.4A priority Critical patent/CN109063215B/en
Publication of CN109063215A publication Critical patent/CN109063215A/en
Application granted granted Critical
Publication of CN109063215B publication Critical patent/CN109063215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to data retrieval technology field, a kind of data retrieval method and device are provided.Wherein, data retrieval method is applied to the backstage connecting with front end communication, specifically includes: obtaining retrieval content and index classification from front end, index classification records in index classification configuration;At least one index obtained with index category associations is searched, the incidence relation for indexing classification and index records in index configurations;It searches and obtains and index at least one associated data object, index and recorded in index strategy configuration with the incidence relation of data object;Lookup obtains and at least one associated attribute of data object, and the incidence relation of data object and attribute records in data object configuration;Judge at least one attribute with the presence or absence of the attribute to match with retrieval content.This method recall precision is high, supports the retrieval that data are carried out with various dimensions, many condition, while supporting the Classification Management of data.

Description

Data retrieval method and device
Technical field
The present invention relates to data retrieval technology fields, in particular to a kind of data retrieval method and device.
Background technique
Now there are many data storage methods on the market, such as traditional relevant database ORACLE is novel HADOOP etc., in face of different data storage methods, the method for data retrieval is also different, and good data retrieval method can have Effect provides retrieval rate, brings more convenience for people.
In the prior art, it is usually directly inquired in all data according to retrieval content, need to inquire When data volume is larger, under search efficiency is very low.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of data retrieval method and device, by object-oriented data and it is set Attribute realizes the quick-searching to data by the matching of attribute.
To achieve the above object, the invention provides the following technical scheme:
In a first aspect, the embodiment of the present invention provides a kind of data retrieval method, applied to the backstage being connect with front end communication, Method includes:
Retrieval content and index classification are obtained from front end, wherein index classification records in index classification configuration;
Search at least one index obtained with index category associations, wherein the incidence relation of index classification and index exists It is recorded in index configurations;
It searches and obtains and index at least one associated data object, wherein the incidence relation of index and data object exists It is recorded in index strategy configuration;
It searches and obtains and at least one associated attribute of data object, wherein the incidence relation of data object and attribute exists It is recorded in data object configuration;
Judge at least one attribute with the presence or absence of the attribute to match with retrieval content;
The attribute to match if it exists, before determining that data object is matched data object and is back to matched data object End is shown.
In a kind of possible implementation of first aspect, judges any attribute of data object and whether retrieve content After matching, method further include:
If matching, front end displaying will be back to the associated attribute of matched data object.
In a kind of possible implementation of first aspect, from front end obtain retrieval content and index classification it Before, method further include:
After data memory interface is called, obtains the data object incoming as call parameters and closed with data object At least one attribute of connection;
By data object and at least one attribute according to data object configure in relationship store;
It is searched from index strategy configuration and obtains the corresponding index of data object, and by data object and index according to index Relationship storage in strategy configuration;
It is searched from index configurations and obtains the corresponding index classification of index, and will indexed with index classification according to index configurations In relationship storage.
In a kind of possible implementation of first aspect, the data object being passed to as call parameters includes object name Title and initial data.
In a kind of possible implementation of first aspect, index classification configuration, index configurations, index strategy configure with And data object configuration is maintained in database, before obtaining retrieval content and index classification from front end, method is also wrapped It includes:
Index classification configuration, index configurations, the configuration of index strategy and data object configuration are loaded into from database Caching.
In a kind of possible implementation of first aspect, method further include:
The configuration modification operation for responding front end updates corresponding configuration in the database and is synchronized to updated configuration Caching.
Second aspect, the embodiment of the present invention provide a kind of data searcher, are integrated in the backstage connecting with front end communication, Device includes:
Data obtaining module is retrieved, for obtaining retrieval content and index classification from front end, wherein
Index classification records in index classification configuration;
Index searching module, for searches obtain with index category associations at least one index, wherein index classification and The incidence relation of index records in index configurations;
Data object searching module obtains for searching and indexes associated at least one data object, wherein index with The incidence relation of data object records in index strategy configuration;
Attribute searching module, for search obtain at least one associated attribute of data object, wherein data object with The incidence relation of attribute records in data object configuration;
Matching judgment module, for judging at least one attribute with the presence or absence of the attribute to match with retrieval content;
First display module, the attribute for matching if it exists determine that data object is matched data object and general Front end is back to data object to show.
In a kind of possible implementation of second aspect, device further include:
Second display module, the attribute for matching if it exists will be back to the associated attribute of matched data object Front end is shown.
In a kind of possible implementation of second aspect, device further include:
Call parameters obtain module, for obtaining the number being passed to as call parameters after data memory interface is called According to object and at least one associated attribute of data object;
First memory module, for by data object and at least one attribute according to data object configure in relationship Storage;
Second memory module obtains the corresponding index of data object for searching from index strategy configuration, and by data Object and index are stored according to the relationship in index strategy configuration;
Third memory module obtains the corresponding index classification of index for searching from index configurations, and will index and rope Draw classification to store according to the relationship in index configurations.
The third aspect, the embodiment of the present invention provide a kind of computer readable storage medium, on computer readable storage medium Computer program instructions are stored with, when computer program instructions are read out by the processor and run, execute first aspect or first party The step of method that the possible implementation of any one of face provides.
Technical solution provided by the invention includes at least following the utility model has the advantages that data retrieval side provided in an embodiment of the present invention Data to be retrieved are carried out the definition of objectification by method and device in data object configuration, and are provided with the uncommon of data object Hope the attribute for being used for retrieving.When carrying out data retrieval, backstage obtains retrieval content and index classification from front end first, then At least one index associated with it is found according to index classification, further finds associated with it at least one according to index A data object further finds at least one attribute associated with it, the attribute of final data object according to data object The middle matching for carrying out retrieval content.Wherein, attribute can be regarded as the label of data object, be retrieved in these labels, Its efficiency far is higher than to be retrieved in all data in the prior art.Simultaneously as attribute can be configured in data object In customized setting, therefore can support to data carry out various dimensions, many condition retrieval.In addition, passing through setting index and index Classification has carried out classification to a certain extent to data, has both improved the efficiency of data retrieval, is also convenient for user and carries out to data Classification Management.
To enable above-mentioned purpose of the invention, technical scheme and beneficial effects to be clearer and more comprehensible, special embodiment below, and Cooperate appended attached drawing, is described in detail below.
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 understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of structural block diagram that can be applied to the electronic equipment in the embodiment of the present invention;
Fig. 2 shows the embodiment of the present invention to provide the flow chart of data retrieval method;
Fig. 3 shows the flow chart of the step S20 to step S23 of data retrieval method provided in an embodiment of the present invention;
Fig. 4 shows the functional block diagram of data searcher provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention In description, term " first ", " second " etc. are only used for distinguishing one entity or operation from another entity or operation, It is not understood to indicate or imply relative importance, can not be understood as require that or imply and be deposited between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Fig. 1 shows a kind of structural block diagram of electronic equipment 100 that can be applied in the embodiment of the present invention.Referring to Fig.1, electric Sub- equipment 100 includes one or more processors 102, one or more storage devices 104, input unit 106 and output dress 108 are set, these components pass through the interconnection of bindiny mechanism's (not shown) of bus system 112 and/or other forms.
Processor 102 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution capability Other forms processing unit, and can control the other assemblies in electronic equipment 100 to execute desired function.
Storage device 104 can with various forms of computer readable storage mediums, such as volatile memory and/or it is non-easily The property lost memory.Volatile memory for example may include random access memory (RAM) and/or cache memory (cache) etc..Nonvolatile memory for example may include read-only memory (ROM), hard disk, flash memory etc..Computer-readable Can store one or more computer program instructions on storage medium, processor 102 can run computer program instructions, with Realize the method and/or other desired functions in the embodiment of the present invention hereafter.In a computer-readable storage medium Various application programs and various data, such as application program use and/or the various data generated etc. can also be stored.
Input unit 106 can be the device that user is used to input instruction, and may include keyboard, mouse, microphone One or more of with touch screen etc..
Output device 108 can export various information (for example, image or sound) to external (for example, user), and can To include one or more of display, loudspeaker etc..
It is appreciated that structure shown in FIG. 1 is only to illustrate, electronic equipment 100 may also include it is more than shown in Fig. 1 or Less component, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can using hardware, software or its Combination is realized.In the embodiment of the present invention, electronic equipment 100 can be server, personal computer, mobile device, intelligence and wear The equipment such as equipment, mobile unit are worn, physical equipment can also be not limited to, such as can be virtual machine, Cloud Server etc..
Fig. 2 shows the embodiment of the present invention to provide the flow chart of data retrieval method.This method is applied to and front end communication The backstage of connection, this can be implemented as above-mentioned electronic equipment 100 from the background, the step in method by electronic equipment 100 processing Device 102 executes.Front end and backstage collectively form data retrieval system, and user inputs the content for needing to retrieve in front-end interface, These contents are sent to backstage, and after retrieving from the background to data, forward end returns to search result, and front end is by search result exhibition Show to user.In embodiments of the present invention, data are not limited in the specific storage mode on backstage, for example, data can store In the database, it also can store in file system (including local file system and distributed file system).
In data retrieval method provided in an embodiment of the present invention, need using index classification configuration, index configurations, index Strategy configuration and data object configuration totally four kinds of configurations, wherein have recorded index item name in index classification configuration, index Index is had recorded in configuration and indexes the incidence relation (there can be one or more indexes under an index classification) of classification, index The incidence relation (there can be one or more data objects under an index) of index and data object is had recorded in strategy configuration, Having recorded data object and the incidence relation of attribute in data object configuration (can have one or more categories under a data object Property).
In one embodiment, contents of these configurations can be with are as follows:
Index classification configuration: index item name;
Index configurations: index name, index item name;
Index strategy configuration: index policy name, index name, data object title;
Data object configuration: object oriented, Property Name.
Above-mentioned configuration can be implemented as the table in database, also can be implemented as configuring in some implementations certainly The forms such as file illustrate to simplify below, might as well assume that these configuration informations are stored in the database on backstage, but this Kind is assumed to be not to be construed as limiting the scope of the invention.
Data object may include initial data and object oriented, be a kind of abstract representation to initial data, and attribute is Description to certain features of initial data, or it is considered as the customized label added for initial data, usual attribute is answered It is defined when according to specific Search Requirement.Index is a kind of data structure, for accelerating the retrieval rate to data.Index Classification is for classifying to index, and since data are always by index accesses, indexing classification simultaneously is also to data Classification.
Above-mentioned concept is exemplified below.Assuming that there is the file of a 1.MP4 to be retrieved, it can be in data object Increase a record in configuration, object oriented is " file ", object properties entitled " extension name " and " file size ", in rope Draw and also increase a record in classification configuration, index item name is " video ", also increases a record, rope in index configurations Drawing entitled " MP4 video file ", also increases a record in index strategy configuration, index name is " MP4 video file ", Object oriented is " file ".In this way, just completing the foundation for the 1.MP4 configuration information retrieved.
These configuration informations can be edited on the interface of front end by user, store in the database, need after editor It is read from database when using.It certainly, can be in data in retrieval in order to accelerate the access speed for these configurations These configurations are loaded into caching by searching system when starting, subsequent to be directly read out from caching in retrieval.
It should be understood that these configuration can front end by user change, including to configuration item increase, delete or Person's modification.Backstage response user updates corresponding configuration item in the configuration modification operation of front end made in the database.If Configuration information is already loaded into caching, then the content in caching needs synchronously to modify, and avoids the occurrence of the inconsistency of data.
It currently assumes and has been stored with data in data retrieval system, and and retrieve relevant index classification configuration, index Configuration, the configuration of index strategy and data object configuration are configured good.Referring to Fig. 2, data retrieval method is specifically included:
Step S10: retrieval content and index classification are obtained from front end.
Retrieval content is inputted in front-end interface by user, and is sent to backstage, while user should also in retrieval Assigned indexes classification.Wherein, specified index classification should be defined in index classification configuration.
Step S11: at least one index obtained with index category associations is searched.
The incidence relation of index classification and index records in index configurations, but should be noted that and remember in index configurations The only description to incidence relation of record really indexes bottom of the classification with index in data retrieval system and be associated with depositing Storage indexes classification by available arrive that record in index configurations, and then gets the index being associated.
Step S12: it searches and obtains and index at least one associated data object.
It indexes and is recorded in index configurations with the incidence relation of data object, but should be noted that index strategy configuration The only description to incidence relation of middle record, really index and data object are closed in the bottom of data retrieval system Join and store, is indexed by available arrive that record in index strategy configuration, and then get the data object being associated.
Step S13: it searches and obtains and at least one associated attribute of data object.
The incidence relation of data object and attribute records in data object configuration, but should be noted that data object The only description to incidence relation recorded in configuration, real data object and attribute are carried out in the bottom of data retrieval system Associated storage, by data object configure in record available to data object, and then get the category being associated Property.
Step S14: judge at least one attribute with the presence or absence of the attribute to match with retrieval content.
Matching in step S14, which refers to, meets search condition, for example, it may be it is equal, comprising etc. conditions.According to retrieval The difference of content, step S14 can be retrieved in each attribute, are also possible to combine multiple attributes while be examined Rope.It should be pointed out that the retrieval in the embodiment of the present invention only carries out in attribute, and no longer carried out in data itself, therefore Attribute needs appropriate definition, is allowed to the demand of retrieval be adaptable
Step S15: the attribute to match if it exists determines that data object is matched data object and by matched data object It is back to front end displaying.
In one implementation, as soon as front-end interface displaying is returned it to after can building and retrieving matching object, Realize the real-time exhibition of search result.It in another embodiment, can also be after retrieving a matched data object first It being cached, continuation is retrieved in other data objects, until retrieval finishes, all coupling numbers that then will be retrieved Front-end interface is back to simultaneously according to object to show.
It should be understood that can also show other information, such as matched data simultaneously other than display data object The attribute of object to match or with the associated whole attributes of matched data object.
By taking the example of the 1.MP4 mentioned before as an example, it is assumed that the retrieval content that user inputs in data retrieval system is " MP4 ", search condition is equal, while specified index classification is " video ", and backstage is looked into according to index classification " video " first Index " MP4 video file " is found, data object " file ", data object are then found according to index " MP4 video file " " file " is exactly file 1.MP4 in the particular content that bottom stores, and then finds attribute " extension according to data object " file " Name " and " file size ", attribute " extension name " are exactly " MP4 " in the particular content that bottom stores, therefore in the attribute and retrieval Appearance be it is matched, the corresponding data object of file 1.MP4 is back to front end and is shown, at the same can also show its " extension name " and " file size ".
Above-mentioned data retrieval method carries out the definition of objectification in data object configuration to data to be retrieved, and is arranged The hope of data object is used for the attribute retrieved.Wherein, attribute can be regarded as the label of data object, in these labels In retrieved, efficiency far is higher than to be retrieved in all data in the prior art, therefore can be realized efficient number According to retrieval.Simultaneously as attribute can data object configuration in customized setting, freedom degree is very high, therefore can prop up It holds and various dimensions, many condition retrieval is carried out to data.Quite data have been carried out centainly in addition, classification is indexed and indexed by setting Classification in degree had both improved the efficiency of data retrieval, is also convenient for user and carries out Classification Management to data.
It in one embodiment of the invention, can be by executing step S20 to step S23 before step S10 execution The storing data into data retrieval system retrieves these data so as to subsequent.Referring to Fig. 3:
Step S20: after data memory interface is called, obtain the data object incoming as call parameters and with number According at least one associated attribute of object.
Backstage externally provides data memory interface, which can be called by foreground or other third party systems, be used for Data are stored into data retrieval system.Note that storage mentioned here refers to that data are in the management of data retrieval system Under, as data retrieval system bottom how storing data, be not construed as limiting.
The parameter of data memory interface includes data object and wishes and the associated attribute of data object, wherein data Object also may further include two parameters, the i.e. object oriented of the initial data of data object and data object.
Step S21: by data object and at least one attribute according to data object configure in relationship store.
Firstly, data object has to be stored, meanwhile, in order to find attribute by data object, need by Data object and attribute actual association, the associated storage in step S21, refer to carried out in the bottom of data retrieval system it is true Associated storage.
Step S22: the corresponding index of data object is obtained from indexing to search in strategy configuration, and by data object and is indexed According to the relationship storage in index strategy configuration.
After data object is stored, in order to retrieve data object by index, need to index and number According to object actual association.Associated storage in step S22 also refers to really be associated in the bottom of data retrieval system Storage.
Index can just be automatically generated when carrying out the configuration of configuration information, but index at this time is empty index, and is not related to Join any data object, establishes and be associated with index during data object is stored, while index data is updated.
Step S23: searching from index configurations and obtain the corresponding index classification of index, and will index and index classification according to Relationship storage in index configurations.
After index storage, in order to find index by indexing classification, need to index practical with index classification Association.Associated storage in step S23 refers to and carries out true associated storage in the bottom of data retrieval system.
After executing the step S20 to step S23, data are stored to data retrieval system, while realizing attribute, number According to object, index, the actual association for indexing classification, subsequent data retrieval step, step can be executed at this time.
The embodiment of the present invention also provides a kind of data searcher, and Fig. 4 shows the functional module of data searcher 200 Figure.Referring to Fig. 4, which includes:
Data obtaining module 210 is retrieved, for obtaining retrieval content and index classification from front end, wherein index classification It is recorded in index classification configuration;
Searching module 220 is indexed, for searching at least one index obtained with index category associations, wherein index class It is not recorded in index configurations with the incidence relation of index;
Data object searching module 230 obtains and at least one associated data object of index, wherein rope for searching Draw and is recorded in index strategy configuration with the incidence relation of data object;
Attribute searching module 240 obtains and at least one associated attribute of data object, wherein data pair for searching As the incidence relation with attribute records in data object configuration;
Matching judgment module 250, for judging at least one attribute with the presence or absence of the attribute to match with retrieval content;
First display module 260, the attribute for matching if it exists determine that data object is matched data object and incites somebody to action Matched data object is back to front end displaying.
In a kind of implementation of the present embodiment, data searcher 200 further include:
Second display module, the attribute for matching if it exists will be back to the associated attribute of matched data object Front end is shown.
In a kind of implementation of the present embodiment, data searcher 200 further include:
Call parameters obtain module, for obtaining the number being passed to as call parameters after data memory interface is called According to object and at least one associated attribute of data object;
First memory module, for by data object and at least one attribute according to data object configure in relationship Storage;
Second memory module obtains the corresponding index of data object for searching from index strategy configuration, and by data Object and index are stored according to the relationship in index strategy configuration;
Third memory module obtains the corresponding index classification of index for searching from index configurations, and will index and rope Draw classification to store according to the relationship in index configurations.
The technical effect of data searcher 200 provided in an embodiment of the present invention, realization principle and generation is in aforementioned side By the agency of in method embodiment, to briefly describe, Installation practice part does not refer to that place, the method for can refer to are applied in corresponding in example Hold.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program instruction when computer program instructions are read out by the processor and run, executes method provided in an embodiment of the present invention Step.The computer readable storage medium can be implemented as, but be not limited to storage device 104 shown in fig. 1.
The embodiment of the present invention also provides a kind of electronic equipment, including memory and processor, is stored with meter in memory Calculation machine program instruction when computer program instructions are read out by the processor and run, executes method provided in an embodiment of the present invention Step.The electronic equipment can be implemented as, but be not limited to electronic equipment 100 shown in fig. 1.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through it His mode is realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are aobvious The device of multiple embodiments according to the present invention, architectural framework in the cards, the function of method and computer program product are shown It can and operate.In this regard, each box in flowchart or block diagram can represent one of a module, section or code Point, a part of the module, section or code includes one or more for implementing the specified logical function executable Instruction.It should also be noted that function marked in the box can also be attached to be different from some implementations as replacement The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used To execute in the opposite order, this depends on the function involved.It is also noted that each of block diagram and or flow chart The combination of box in box and block diagram and or flow chart can be based on the defined function of execution or the dedicated of movement The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in computer-readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing Having the part for the part or the technical solution that technology contributes can be embodied in the form of software products, the computer Software product is stored in a storage medium, including some instructions are used so that computer equipment executes each embodiment institute of the present invention State all or part of the steps of method.Computer equipment above-mentioned includes: personal computer, server, mobile device, intelligently wears The various equipment with execution program code ability such as equipment, the network equipment, virtual unit are worn, storage medium above-mentioned includes: U Disk, mobile hard disk, read-only memory, random access memory, magnetic disk, tape or CD etc. are various to can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of data retrieval method, which is characterized in that applied to the backstage being connect with front end communication, which comprises
Retrieval content and index classification are obtained from the front end, wherein the index classification records in index classification configuration;
Search at least one index obtained with the index category associations, wherein the pass of the index classification and the index Connection relationship records in index configurations;
It searches and obtains and described at least one associated data object of index, wherein the pass of the index and the data object Connection relationship records in index strategy configuration;
It searches and obtains and at least one associated attribute of the data object, wherein the pass of the data object and the attribute Connection relationship records in data object configuration;
Judge at least one described attribute with the presence or absence of the attribute to match with the retrieval content;
The attribute to match if it exists determines that the data object is matched data object and returns to the matched data object It is shown to the front end.
2. data retrieval method according to claim 1, which is characterized in that any category of the judgement data object After whether property matches with the retrieval content, the method also includes:
If matching, it will be back to the front end with the associated attribute of matched data object and show.
3. data retrieval method according to claim 1 or 2, which is characterized in that retrieved described from the front end Before content and index classification, the method also includes:
After data memory interface is called, obtain the data object incoming as call parameters and with the data pair As at least one associated described attribute;
The data object and at least one described attribute are stored according to the relationship in data object configuration;
Searched from index strategy configuration and obtain the corresponding index of the data object, and by the data object with The index is stored according to the relationship in the index strategy configuration;
It is searched from index configurations and obtains the corresponding index classification of the index, and indexed described and the index classification According to the relationship storage in the index configurations.
4. data retrieval method according to claim 3, which is characterized in that the data pair being passed to as call parameters As including object oriented and initial data.
5. data retrieval method according to claim 1 or 2, which is characterized in that the index classification configuration, the index Configuration, the configuration of index strategy and data object configuration are maintained in database, are obtained described from the front end Before content and index classification must be retrieved, the method also includes:
Index classification configuration, the index configurations, the configuration of index strategy and the data object are configured from institute It states and is loaded into caching in database.
6. data retrieval method according to claim 5, which is characterized in that the method also includes:
The configuration modification operation for responding the front end updates corresponding configuration in the database and configures updated together Walk the caching.
7. a kind of data searcher, which is characterized in that be integrated in the backstage connecting with front end communication, described device includes:
Data obtaining module is retrieved, for obtaining retrieval content and index classification from the front end, wherein index classification is in rope Draw in classification configuration and records;
Searching module is indexed, for searching at least one index obtained with the index category associations, wherein the index class Incidence relation not with the index records in index configurations;
Data object searching module obtains and described at least one associated data object of index, wherein the rope for searching Draw and is recorded in index strategy configuration with the incidence relation of the data object;
Attribute searching module obtains and at least one associated attribute of the data object, wherein the data pair for searching As the incidence relation with the attribute records in data object configuration;
Matching judgment module, for judging at least one described attribute with the presence or absence of the category to match with the retrieval content Property;
First display module, the attribute for matching if it exists determine the data object for matched data object and by institute It states matched data object and is back to the front end displaying.
8. data searcher according to claim 7, which is characterized in that described device further include:
Second display module, the attribute for matching if it exists will be back to the associated attribute of matched data object The front end is shown.
9. data searcher according to claim 7 or 8, which is characterized in that described device further include:
Call parameters obtain module, for obtaining the number being passed to as call parameters after data memory interface is called According to object and at least one associated described attribute of the data object;
First memory module, for by the data object and at least one described attribute according in data object configuration Relationship storage;
Second memory module obtains the corresponding index of the data object for searching from the index strategy configuration, And the data object and the index are stored according to the relationship in the index strategy configuration;
Third memory module obtains the corresponding index classification of the index for searching from index configurations, and will be described Index is stored with the index classification according to the relationship in the index configurations.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program instruction, when the computer program instructions are read out by the processor and run, perform claim is required described in any one of 1-6 Method the step of.
CN201811204939.4A 2018-10-16 2018-10-16 Data retrieval method and device Active CN109063215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811204939.4A CN109063215B (en) 2018-10-16 2018-10-16 Data retrieval method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811204939.4A CN109063215B (en) 2018-10-16 2018-10-16 Data retrieval method and device

Publications (2)

Publication Number Publication Date
CN109063215A true CN109063215A (en) 2018-12-21
CN109063215B CN109063215B (en) 2020-10-30

Family

ID=64764970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811204939.4A Active CN109063215B (en) 2018-10-16 2018-10-16 Data retrieval method and device

Country Status (1)

Country Link
CN (1) CN109063215B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399374A (en) * 2019-07-05 2019-11-01 东软集团股份有限公司 Data retrieval method, device, storage medium and electronic equipment
CN111430009A (en) * 2020-03-23 2020-07-17 上海联影医疗科技有限公司 Protocol matching search method, device, equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510197A (en) * 2008-02-15 2009-08-19 冲电气工业株式会社 Information retrieving system
CN102456055A (en) * 2010-10-28 2012-05-16 腾讯科技(深圳)有限公司 Method and device for retrieving interest points
CN102682036A (en) * 2011-03-18 2012-09-19 新奥特(北京)视频技术有限公司 Non-editing based method and system for searching media assets
CN102930060A (en) * 2012-11-27 2013-02-13 孙振辉 Method and device for performing fast indexing of database
CN102999367A (en) * 2012-12-14 2013-03-27 北京四方继保自动化股份有限公司 Method for rapidly initializing client communication of IEC61850 intelligent device
CN103348344A (en) * 2010-12-30 2013-10-09 脸谱公司 Composite term index for graph data
CN103886081A (en) * 2014-03-26 2014-06-25 海信集团有限公司 Information sending method and system
US20140208059A1 (en) * 2013-01-23 2014-07-24 Emu Solutions, Inc. Highly configurable memory architecture for partitioned global address space memory systems
CN104915449A (en) * 2015-06-30 2015-09-16 河海大学 Faceted search system and method based on water conservancy object classification labels
CN105069020A (en) * 2015-07-14 2015-11-18 国家信息中心 3D visualization method and system of natural resource data
CN105447105A (en) * 2015-11-13 2016-03-30 福建农林大学 NoSQL-based single field section index query method for distributed Internet of things data
CN105718184A (en) * 2014-12-05 2016-06-29 北京搜狗科技发展有限公司 Data processing method and apparatus
CN105893531A (en) * 2016-03-31 2016-08-24 武汉虹信技术服务有限责任公司 PostgreSQL database mass data management method and system
CN106407276A (en) * 2016-08-26 2017-02-15 广州神马移动信息科技有限公司 Text direct-broadcast content display method and apparatus
CN106611000A (en) * 2015-10-26 2017-05-03 北京神州泰岳软件股份有限公司 Method, device and system for searching resource object

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510197A (en) * 2008-02-15 2009-08-19 冲电气工业株式会社 Information retrieving system
CN102456055A (en) * 2010-10-28 2012-05-16 腾讯科技(深圳)有限公司 Method and device for retrieving interest points
CN103348344A (en) * 2010-12-30 2013-10-09 脸谱公司 Composite term index for graph data
CN102682036A (en) * 2011-03-18 2012-09-19 新奥特(北京)视频技术有限公司 Non-editing based method and system for searching media assets
CN102930060A (en) * 2012-11-27 2013-02-13 孙振辉 Method and device for performing fast indexing of database
CN102999367A (en) * 2012-12-14 2013-03-27 北京四方继保自动化股份有限公司 Method for rapidly initializing client communication of IEC61850 intelligent device
US20140208059A1 (en) * 2013-01-23 2014-07-24 Emu Solutions, Inc. Highly configurable memory architecture for partitioned global address space memory systems
CN103886081A (en) * 2014-03-26 2014-06-25 海信集团有限公司 Information sending method and system
CN105718184A (en) * 2014-12-05 2016-06-29 北京搜狗科技发展有限公司 Data processing method and apparatus
CN104915449A (en) * 2015-06-30 2015-09-16 河海大学 Faceted search system and method based on water conservancy object classification labels
CN105069020A (en) * 2015-07-14 2015-11-18 国家信息中心 3D visualization method and system of natural resource data
CN106611000A (en) * 2015-10-26 2017-05-03 北京神州泰岳软件股份有限公司 Method, device and system for searching resource object
CN105447105A (en) * 2015-11-13 2016-03-30 福建农林大学 NoSQL-based single field section index query method for distributed Internet of things data
CN105893531A (en) * 2016-03-31 2016-08-24 武汉虹信技术服务有限责任公司 PostgreSQL database mass data management method and system
CN106407276A (en) * 2016-08-26 2017-02-15 广州神马移动信息科技有限公司 Text direct-broadcast content display method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
冯钧 等: ""面向海量水利数据的索引方法研究"", 《计算机与现代化》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399374A (en) * 2019-07-05 2019-11-01 东软集团股份有限公司 Data retrieval method, device, storage medium and electronic equipment
CN111430009A (en) * 2020-03-23 2020-07-17 上海联影医疗科技有限公司 Protocol matching search method, device, equipment and storage medium
CN111430009B (en) * 2020-03-23 2023-09-01 上海联影医疗科技股份有限公司 Method, device, equipment and storage medium for searching protocol matching

Also Published As

Publication number Publication date
CN109063215B (en) 2020-10-30

Similar Documents

Publication Publication Date Title
US11941017B2 (en) Event driven extract, transform, load (ETL) processing
US11036690B2 (en) Global namespace in a heterogeneous storage system environment
US10733211B2 (en) Optimizing faceted classification through facet range identification
CN110688348A (en) File management system
CN106407303A (en) Data storage method and apparatus, and data query method and apparatus
CN109189782A (en) A kind of indexing means in block chain commodity transaction inquiry
CN106970958B (en) A kind of inquiry of stream file and storage method and device
CN105550228A (en) Intelligent storage device and storage and take-out identification method and system based on intelligent storage device
CN107122429A (en) The method and apparatus and mobile terminal of a kind of file management
CN108509437A (en) A kind of ElasticSearch inquiries accelerated method
US20190179933A1 (en) Generating sub-indexes from an index to compress the index
CN103310025A (en) Unstructured-data description method and device
US10133762B2 (en) Technology for providing content of a publish-subscribe topic tree
US20150074085A1 (en) Associative search systems and methods
US7861154B2 (en) Integration of annotations to dynamic data sets
CN109063215A (en) Data retrieval method and device
US20140258823A1 (en) Intelligent categorization of bookmarks
CN102187340A (en) Breakpoint information management method and breakpoint information manager
CN109710743A (en) A kind of access method of storage pool, device and electronic equipment
US8200673B2 (en) System and method for on-demand indexing
CN108984626A (en) A kind of data processing method, device and server
US20140207768A1 (en) Search engine optimization using a find operation
CN112000665A (en) Data storage method of database
CN112868000A (en) Large-scale generation of real-time aggregates for inclusion in one or more modification fields in a subset of data produced
US9852210B2 (en) Bidirectional integration of information between a microblog and a data repository

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