CN109063215B - Data retrieval method and device - Google Patents

Data retrieval method and device Download PDF

Info

Publication number
CN109063215B
CN109063215B CN201811204939.4A CN201811204939A CN109063215B CN 109063215 B CN109063215 B CN 109063215B CN 201811204939 A CN201811204939 A CN 201811204939A CN 109063215 B CN109063215 B CN 109063215B
Authority
CN
China
Prior art keywords
index
data object
configuration
data
attribute
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.)
Active
Application number
CN201811204939.4A
Other languages
Chinese (zh)
Other versions
CN109063215A (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

Images

Abstract

The invention relates to the technical field of data retrieval, and provides a data retrieval method and device. The data retrieval method is applied to a background in communication connection with a front end, and specifically comprises the following steps: obtaining retrieval content and index categories from a front end, wherein the index categories are recorded in index category configuration; searching for at least one index associated with the index category, wherein the association relationship between the index category and the index is recorded in index configuration; searching and obtaining at least one data object associated with the index, wherein the association relation between the index and the data object is recorded in index policy configuration; searching for at least one attribute associated with the data object, wherein the association relationship between the data object and the attribute is recorded in the data object configuration; and judging whether the attribute matched with the retrieved content exists in the at least one attribute. The method has high retrieval efficiency, supports multi-dimensional and multi-condition retrieval of the data, and supports the classification management of the data.

Description

Data retrieval method and device
Technical Field
The invention relates to the technical field of data retrieval, in particular to a data retrieval method and device.
Background
At present, data storage modes in the market are various, such as a traditional relational database ORACLE, a novel HADOOP and the like, different data storage modes are faced, data retrieval methods are different, a good data retrieval method can effectively provide retrieval speed, and more convenience is brought to people.
In the prior art, query is usually performed directly in all data according to the retrieval content, and when the amount of data to be queried is large, the query efficiency is very low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data retrieval method and apparatus, which objectify data and set attributes thereof, and implement fast retrieval of data through attribute matching.
In order to achieve the purpose, the invention provides the following technical scheme:
in a first aspect, an embodiment of the present invention provides a data retrieval method, which is applied to a background in communication connection with a front end, and the method includes:
obtaining retrieval content and index categories from a front end, wherein the index categories are recorded in index category configuration;
searching and obtaining at least one index associated with the index category, wherein the association relationship between the index category and the index is recorded in index configuration;
searching and obtaining at least one data object associated with the index, wherein the association relation between the index and the data object is recorded in index policy configuration;
searching for at least one attribute associated with the data object, wherein the association relationship between the data object and the attribute is recorded in the data object configuration;
judging whether at least one attribute has an attribute matched with the retrieval content;
and if the matched attributes exist, determining the data object as a matched data object and returning the matched data object to the front end for display.
In a possible implementation manner of the first aspect, after determining whether any attribute of the data object matches the retrieved content, the method further includes:
and if so, returning the attribute associated with the matched data object to the front end for display.
In a possible implementation manner of the first aspect, before obtaining the retrieved content and the index category from the front end, the method further includes:
after the data storage interface is called, obtaining a data object transmitted as a calling parameter and at least one attribute associated with the data object;
storing the data object and at least one attribute in association with a relationship in the data object configuration;
searching and obtaining an index corresponding to the data object from the index strategy configuration, and storing the data object and the index in an associated manner according to the relation in the index strategy configuration;
and searching the index configuration to obtain the index category corresponding to the index, and storing the index and the index category in an associated manner according to the relationship in the index configuration.
In one possible implementation form of the first aspect, the data object that is passed in as a call parameter comprises an object name and raw data.
In a possible implementation manner of the first aspect, the index category configuration, the index policy configuration, and the data object configuration are all stored in a database, and before obtaining the search content and the index category from the front end, the method further includes:
and loading the index category configuration, the index strategy configuration and the data object configuration from the database to a cache.
In a possible implementation manner of the first aspect, the method further includes:
and responding to the configuration modification operation of the front end, updating the corresponding configuration in the database and synchronizing the updated configuration to the cache.
In a second aspect, an embodiment of the present invention provides a data retrieval device, which is integrated in a background communicatively connected to a front end, and the device includes:
a retrieval information obtaining module for obtaining the retrieval content and the index category from the front end, wherein,
the index category is recorded in the index category configuration;
the index searching module is used for searching and obtaining at least one index associated with the index category, wherein the association relationship between the index category and the index is recorded in index configuration;
the data object searching module is used for searching and obtaining at least one data object associated with the index, wherein the association relation between the index and the data object is recorded in the index policy configuration;
the attribute searching module is used for searching and obtaining at least one attribute associated with the data object, wherein the association relation between the data object and the attribute is recorded in the data object configuration;
the matching judgment module is used for judging whether the at least one attribute has an attribute matched with the retrieval content;
and the first display module is used for determining the data object as a matched data object and returning the matched data object to the front end for display if the matched attributes exist.
In a possible implementation manner of the second aspect, the apparatus further includes:
and the second display module is used for returning the attribute associated with the matched data object to the front end for display if the matched attribute exists.
In a possible implementation manner of the second aspect, the apparatus further includes:
the calling parameter acquisition module is used for acquiring a data object transmitted as a calling parameter and at least one attribute associated with the data object after the data storage interface is called;
the first storage module is used for storing the data object and at least one attribute in an associated mode according to the relationship in the data object configuration;
the second storage module is used for searching and obtaining an index corresponding to the data object from the index policy configuration and storing the data object and the index in an associated manner according to the relationship in the index policy configuration;
and the third storage module is used for searching and obtaining the index category corresponding to the index from the index configuration, and storing the index and the index category in an associated manner according to the relationship in the index configuration.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are read and executed by a processor, the computer program instructions perform the steps of the method provided in the first aspect or any one of the possible implementation manners of the first aspect.
The technical scheme provided by the invention at least comprises the following beneficial effects: according to the data retrieval method and device provided by the embodiment of the invention, the data to be retrieved is defined in the data object configuration in an objectification mode, and the attribute of the data object which is expected to be used for retrieval is set. When data retrieval is carried out, the background firstly obtains retrieval content and an index category from the front end, then at least one index associated with the background is found according to the index category, at least one data object associated with the background is further found according to the index, at least one attribute associated with the background is further found according to the data object, and finally the retrieval content is matched in the attributes of the data object. The attributes can be regarded as tags of the data objects, and the retrieval is performed in the tags, which is far more efficient than the retrieval performed in all data in the prior art. Meanwhile, the attribute can be set in a user-defined mode in the configuration of the data object, so that multi-dimensional and multi-condition retrieval of the data can be supported. In addition, the data is classified to a certain extent by setting the index and the index category, so that the efficiency of data retrieval is improved, and the user can conveniently classify and manage the data.
In order to make the above objects, technical solutions and advantages of the present invention more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a block diagram of an electronic device applicable to an embodiment of the present invention;
FIG. 2 illustrates a flow chart of a method of providing data retrieval according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps S20 to S23 of the data retrieval method according to the embodiment of the present invention;
fig. 4 is a functional block diagram of a data retrieval apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Also, in the description of the present invention, the terms "first", "second", and the like are used only to distinguish one entity or operation from another entity or operation, and are not to be construed as indicating or implying any relative importance or order between such entities or operations, nor are they to be construed as requiring or implying any such actual relationship or order between such entities or operations. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Fig. 1 shows a block diagram of an electronic device 100 applicable to an embodiment of the present invention. Referring to FIG. 1, an electronic device 100 includes one or more processors 102, one or more memory devices 104, an input device 106, and an output device 108, which are interconnected by a bus system 112 and/or other form of connection mechanism (not shown).
Processor 102 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in electronic device 100 to perform desired functions.
The storage 104 may be various forms of computer-readable storage media such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, Random Access Memory (RAM), cache memory (or the like). The non-volatile memory may include, for example, Read Only Memory (ROM), a hard disk, flash memory, and the like. One or more computer program instructions may be stored on a computer-readable storage medium and executed by processor 102 to implement the methods of the embodiments of the invention described below and/or other desired functionality. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer-readable storage medium.
The input device 106 may be a device used by a user to input instructions and may include one or more of a keyboard, a mouse, a microphone, a touch screen, and the like.
The output device 108 may output various information (e.g., images or sounds) to the outside (e.g., a user), and may include one or more of a display, a speaker, and the like.
It will be appreciated that the configuration shown in FIG. 1 is merely illustrative and that electronic device 100 may include more or fewer components than shown in FIG. 1 or have a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof. In the embodiment of the present invention, the electronic device 100 may be a server, a personal computer, a mobile device, an intelligent wearable device, a vehicle-mounted device, or other devices, or may not be limited to a physical device, and may be, for example, a virtual machine, a cloud server, or other devices.
FIG. 2 shows a flow chart of a method for providing data retrieval according to an embodiment of the present invention. The method is applied to a background in communication connection with the front end, the background may be implemented as the electronic device 100, and steps in the method are executed by the processor 102 of the electronic device 100. The front end and the background jointly form a data retrieval system, a user inputs contents to be retrieved on a front end interface, the contents are sent to the background, the background retrieves the data and returns a retrieval result to the front end, and the front end displays the retrieval result to the user. In the embodiment of the present invention, a specific storage manner of the data in the background is not limited, for example, the data may be stored in a database, and may also be stored in a file system (including a local file system and a distributed file system).
In the data retrieval method provided in the embodiment of the present invention, four configurations, that is, an index category configuration, an index policy configuration, and a data object configuration, need to be used, where an index category name is recorded in the index category configuration, an association relationship between an index and an index category is recorded in the index configuration (one or more indexes may be provided under one index category), an association relationship between an index and a data object is recorded in the index policy configuration (one or more data objects may be provided under one index), and an association relationship between a data object and an attribute is recorded in the data object configuration (one or more attributes may be provided under one data object).
In one embodiment, the content of these configurations may be:
index category configuration: indexing the category name;
index configuration: index name, index category name;
and (3) index strategy configuration: index strategy name, index name and data object name;
data object configuration: object name, attribute name.
The above configuration may be implemented as a table in a database, and certainly may also be implemented in the form of a configuration file in some implementations, and hereinafter, for simplicity, it is not assumed that the configuration information is stored in a database in the background, but such assumption should not be considered as a limitation to the scope of the present invention.
The data object may include original data and an object name, which is an abstract representation of the original data, and the attribute may be a description of some feature of the original data, or may be regarded as a custom tag added to the original data, and the attribute should be generally defined according to specific retrieval requirements. An index is a data structure used to speed up the retrieval of data. The index class is used to classify the index, and since data is always accessed through the index, the index class is also a classification of the data.
The above concept is exemplified below. Assuming that there is a file of MP4 to be retrieved, a record with an object name of "file", an object attribute name of "extension" and "file size" may be added to the data object configuration, a record with an index category name of "video" may be added to the index category configuration, a record with an index category name of "MP 4 video file" may be added to the index configuration, and a record with an index name of "MP 4 video file" may be added to the index policy configuration, and an object name of "file" may be added to the index policy configuration. Thus, the establishment of the configuration information for retrieval to the 1.MP4 is completed.
The configuration information can be edited by a user on a front-end interface, is stored in the database after being edited, and is read from the database when in use. Of course, in order to speed up the access speed to these configurations during the retrieval, these configurations may be loaded into the cache at the start of the data retrieval system, and may be subsequently read directly from the cache during the retrieval.
It will be appreciated that these configurations are modifiable by the user at the front end, including additions, deletions or modifications to configuration items. And the background responds to the configuration modification operation made by the user at the front end and updates the corresponding configuration item in the database. If the configuration information is already loaded into the cache, the content in the cache needs to be modified synchronously, so that data inconsistency is avoided.
Now, assume that the data retrieval system has stored data, and the index category configuration, index policy configuration, and data object configuration related to retrieval are configured. Referring to fig. 2, the data retrieval method specifically includes:
step S10: the retrieved content and the index category are obtained from the front end.
The retrieval content is input by the user on the front-end interface and is sent to the background, and the user should also specify the index category when retrieving. Wherein the specified index category should be defined in the index category configuration.
Step S11: the lookup obtains at least one index associated with the index category.
The association relationship between the index category and the index is recorded in the index configuration, but it should be noted that only the description of the association relationship is recorded in the index configuration, the real index category and the index are stored in association with each other at the bottom layer of the data retrieval system, and the index category and the index associated therewith can be obtained through the record in the index configuration.
Step S12: the lookup obtains at least one data object associated with the index.
The association relationship between the index and the data object is recorded in the index configuration, but it should be noted that only the description of the association relationship is recorded in the index policy configuration, the real index and the data object are stored in association with each other at the bottom layer of the data retrieval system, and the index and the data object associated therewith can be obtained through the record in the index policy configuration.
Step S13: the lookup obtains at least one attribute associated with the data object.
The association relationship between the data object and the attribute is recorded in the data object configuration, but it should be noted that only the description of the association relationship is recorded in the data object configuration, the real data object and the attribute are stored in association with each other in the bottom layer of the data retrieval system, and the data object and the attribute associated therewith can be acquired through the record in the data object configuration.
Step S14: and judging whether the attribute matched with the retrieved content exists in the at least one attribute.
The matching in step S14 means that the search condition is satisfied, and may be, for example, an equal condition, an inclusive condition, or the like. Depending on the search content, step S14 may search for each attribute, or may search for a plurality of attributes simultaneously. It should be noted that, the retrieval in the embodiment of the present invention is performed only in the attribute, and is not performed in the data itself, so that the attribute needs to be defined appropriately to adapt to the requirement of the retrieval
Step S15: and if the matched attributes exist, determining the data object as a matched data object and returning the matched data object to the front end for display.
In an implementation mode, after a matched object can be searched, the matched object is returned to a front-end interface for displaying, and the real-time display of the search result is realized. In another embodiment, after a matching data object is retrieved, the matching data object may be cached, retrieval is continued in other data objects until the retrieval is completed, and then all the retrieved matching data objects are returned to the front-end interface for display.
It will be appreciated that in addition to presenting data objects, other information may be presented simultaneously, such as matching attributes of the matching data object or all attributes associated with the matching data object.
Taking the aforementioned example of 1.MP4 as an example, assuming that the retrieval content input by the user in the data retrieval system is "MP 4", the retrieval conditions are equal, and the designated index category is "video", the background first finds the index "MP 4 video file" according to the index category "video", then finds the data object "file" according to the index "MP 4 video file", the specific content of the data object "file" stored at the bottom layer is file 1.MP4, then finds the attribute "extension" and "file size" according to the data object "file", and the specific content of the attribute "extension" stored at the bottom layer is "MP 4", so that the attribute is matched with the retrieval content, the data object corresponding to file 1.MP4 is returned to the front end for display, and the "extension" and "file size" thereof may also be displayed at the same time.
The data retrieval method performs objectification definition on data to be retrieved in data object configuration, and sets the attribute of the data object which is expected to be used for retrieval. The attributes can be regarded as tags of the data objects, and the efficiency of searching among the tags is far higher than that of searching among all data in the prior art, so that the efficient data searching can be realized. Meanwhile, the attribute can be set in a self-defined mode in the configuration of the data object, and the degree of freedom is very high, so that the data can be searched in a multi-dimensional and multi-condition mode. In addition, the data are classified to a certain extent by setting the indexes and the index categories, so that the efficiency of data retrieval is improved, and the user can conveniently classify and manage the data.
In one embodiment of the present invention, before step S10 is performed, data may be stored into the data retrieval system by performing steps S20 through S23 for subsequent retrieval of the data. Referring to fig. 3:
step S20: after the data storage interface is invoked, the data object that comes in as an invocation parameter and at least one attribute associated with the data object are obtained.
The background provides a data storage interface for the outside, and the interface can be called by the foreground or other third-party systems and is used for storing data into the data retrieval system. Note that storing as used herein means that data is under the management of the data retrieval system, and how the data retrieval system stores data at the bottom is not limited.
The parameters of the data storage interface comprise a data object and an attribute desired to be associated with the data object, wherein the data object may also further comprise two parameters, namely the original data of the data object and the object name of the data object.
Step S21: and storing the data object and at least one attribute in association with the relationship in the data object configuration.
First, the data object must be stored, and the data object and the attribute must be actually associated in order to find the attribute through the data object, and the association storage in step S21 means that the real association storage is performed at the bottom of the data retrieval system.
Step S22: and searching and obtaining an index corresponding to the data object from the index policy configuration, and storing the data object and the index in association according to the relation in the index policy configuration.
After storing the data object, the index needs to be actually associated with the data object in order to be able to retrieve the data object by the index. The association storage in step S22 also refers to the actual association storage at the bottom of the data retrieval system.
The index can be automatically generated when configuration information is configured, but the index is a null index at the moment, is not associated with any data object, is associated with the index in the process of storing the data object, and meanwhile, the index data is updated.
Step S23: and searching the index configuration to obtain the index category corresponding to the index, and storing the index and the index category in an associated manner according to the relationship in the index configuration.
After storing the index, in order to find the index by the index category, the index needs to be actually associated with the index category. The associative storage in step S23 is to perform real associative storage at the bottom of the data retrieval system.
After steps S20 through S23 are performed, the data is stored in the data retrieval system while the actual association of attributes, data objects, indexes, and index categories is achieved, at which point the subsequent data retrieval steps may be performed.
The embodiment of the invention also provides a data retrieval device, and fig. 4 shows a functional block diagram of the data retrieval device 200. Referring to fig. 4, the apparatus includes:
a retrieval information obtaining module 210, configured to obtain retrieval content and an index category from a front end, where the index category is recorded in index category configuration;
the index searching module 220 is configured to search for at least one index associated with an index category, where an association relationship between the index category and the index is recorded in the index configuration;
a data object searching module 230, configured to search for at least one data object associated with an index, where an association relationship between the index and the data object is recorded in an index policy configuration;
the attribute searching module 240 is configured to search for at least one attribute associated with the data object, where an association relationship between the data object and the attribute is recorded in the data object configuration;
a matching judgment module 250, configured to judge whether an attribute matching the retrieved content exists in the at least one attribute;
the first display module 260 is configured to determine that the data object is a matching data object and return the matching data object to the front-end display if the matching attribute exists.
In one implementation manner of this embodiment, the data retrieval apparatus 200 further includes:
and the second display module is used for returning the attribute associated with the matched data object to the front end for display if the matched attribute exists.
In one implementation manner of this embodiment, the data retrieval apparatus 200 further includes:
the calling parameter acquisition module is used for acquiring a data object transmitted as a calling parameter and at least one attribute associated with the data object after the data storage interface is called;
the first storage module is used for storing the data object and at least one attribute in an associated mode according to the relationship in the data object configuration;
the second storage module is used for searching and obtaining an index corresponding to the data object from the index policy configuration and storing the data object and the index in an associated manner according to the relationship in the index policy configuration;
and the third storage module is used for searching and obtaining the index category corresponding to the index from the index configuration, and storing the index and the index category in an associated manner according to the relationship in the index configuration.
The data retrieval device 200 according to the embodiment of the present invention, the implementation principle and the technical effects thereof have been introduced in the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments for parts that are not mentioned in the apparatus embodiments.
The embodiment of the present invention further provides a computer-readable storage medium, where computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are read and executed by a processor, the steps of the method provided by the embodiment of the present invention are executed. The computer-readable storage medium may be embodied as, but is not limited to, the storage device 104 shown in fig. 1.
The embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores computer program instructions, and the computer program instructions are read by the processor and executed to perform the steps of the method provided by the embodiment of the present invention. The electronic device may be implemented as, but is not limited to, the electronic device 100 shown in fig. 1.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device to execute all or part of the steps of the method according to the embodiments of the present invention. The aforementioned computer device includes: various devices having the capability of executing program codes, such as a personal computer, a server, a mobile device, an intelligent wearable device, a network device, and a virtual device, the storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic disk, magnetic tape, or optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the 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 data retrieval method for use in a back-end communicatively coupled to a front-end, the method comprising:
obtaining retrieval content and an index category from the front end, wherein the index category is recorded in index category configuration;
searching for at least one index associated with the index category, wherein the association relationship between the index category and the index is recorded in index configuration;
searching for at least one data object associated with the index, wherein the association relationship between the index and the data object is recorded in index policy configuration;
searching for at least one attribute associated with the data object, wherein the association relation between the data object and the attribute is recorded in data object configuration;
judging whether the at least one attribute has an attribute matched with the retrieval content;
and if the matched attributes exist, determining the data object as a matched data object and returning the matched data object to the front end for display.
2. The data retrieval method of claim 1, wherein after determining whether any attribute of the data object matches the retrieval content, the method further comprises:
and if so, returning the attribute associated with the matched data object to the front end for display.
3. The data retrieval method of claim 1 or 2, wherein prior to the obtaining of the retrieved content and the index categories from the front end, the method further comprises:
obtaining the data object and the at least one attribute associated with the data object, which are passed in as call parameters, after the data storage interface is called;
storing the data object and the at least one attribute in association with a relationship in the data object configuration;
searching the index corresponding to the data object from the index policy configuration, and storing the data object and the index in association according to the relation in the index policy configuration;
and searching and obtaining the index category corresponding to the index from the index configuration, and storing the index and the index category in an associated manner according to the relation in the index configuration.
4. A data retrieval method as claimed in claim 3 wherein the data object passed in as a call parameter comprises an object name and raw data.
5. The data retrieval method of claim 1 or 2, wherein the index category configuration, the index policy configuration, and the data object configuration are all stored in a database, and before the obtaining of the retrieved content and the index category from the front end, the method further comprises:
loading the index category configuration, the index policy configuration, and the data object configuration from the database to a cache.
6. The data retrieval method of claim 5, wherein the method further comprises:
and responding to the configuration modification operation of the front end, updating the corresponding configuration in the database and synchronizing the updated configuration to the cache.
7. A data retrieval device integrated in a back-end communicatively coupled to a front-end, the device comprising:
the retrieval information acquisition module is used for acquiring retrieval contents and index categories from the front end, wherein the index categories are recorded in index category configuration;
the index searching module is used for searching and obtaining at least one index associated with the index category, wherein the association relation between the index category and the index is recorded in index configuration;
the data object searching module is used for searching and obtaining at least one data object associated with the index, wherein the association relation between the index and the data object is recorded in index policy configuration;
the attribute searching module is used for searching and obtaining at least one attribute associated with the data object, wherein the association relation between the data object and the attribute is recorded in data object configuration;
the matching judgment module is used for judging whether the at least one attribute has an attribute matched with the retrieval content;
and the first display module is used for determining the data object as a matched data object and returning the matched data object to the front end for display if the matched attributes exist.
8. The data retrieval device of claim 7, wherein the device further comprises:
and the second display module is used for returning the attribute associated with the matched data object to the front-end display if the matched attribute exists.
9. The data retrieval device of claim 7 or 8, wherein the device further comprises:
the calling parameter acquisition module is used for acquiring the data object transmitted as a calling parameter and the at least one attribute associated with the data object after the data storage interface is called;
the first storage module is used for storing the data object and the at least one attribute in a correlation mode according to the relationship in the data object configuration;
the second storage module is used for searching and obtaining the index corresponding to the data object from the index policy configuration and storing the data object and the index in an associated manner according to the relationship in the index policy configuration;
and the third storage module is used for searching and obtaining the index category corresponding to the index from the index configuration, and storing the index and the index category in an associated manner according to the relationship in the index configuration.
10. A computer-readable storage medium having stored thereon computer program instructions which, when read and executed by a processor, perform the steps of the method of any one of claims 1-6.
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 CN109063215A (en) 2018-12-21
CN109063215B true 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)

Families Citing this family (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
CN111430009B (en) * 2020-03-23 2023-09-01 上海联影医疗科技股份有限公司 Method, device, equipment and storage medium for searching protocol matching

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069020A (en) * 2015-07-14 2015-11-18 国家信息中心 3D visualization method and system of natural resource data
CN105718184A (en) * 2014-12-05 2016-06-29 北京搜狗科技发展有限公司 Data processing method and apparatus
CN106407276A (en) * 2016-08-26 2017-02-15 广州神马移动信息科技有限公司 Text direct-broadcast content display method and apparatus

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009193448A (en) * 2008-02-15 2009-08-27 Oki Electric Ind Co Ltd Dialog system, method, and program
CN102456055B (en) * 2010-10-28 2014-11-12 腾讯科技(深圳)有限公司 Method and device for retrieving interest points
US8527497B2 (en) * 2010-12-30 2013-09-03 Facebook, Inc. Composite term index for graph data
CN102682036A (en) * 2011-03-18 2012-09-19 新奥特(北京)视频技术有限公司 Non-editing based method and system for searching media assets
CN102930060B (en) * 2012-11-27 2016-05-04 孙振辉 A kind of method of database quick indexing and device
CN102999367B (en) * 2012-12-14 2016-03-30 北京四方继保自动化股份有限公司 A kind of method of fast initialization IEC61850 intelligent apparatus user client communication
US10896127B2 (en) * 2013-01-23 2021-01-19 Lucata Corporation Highly configurable memory architecture for partitioned global address space memory systems
CN103886081A (en) * 2014-03-26 2014-06-25 海信集团有限公司 Information sending method and system
CN104915449B (en) * 2015-06-30 2018-11-09 河海大学 A kind of facet searching system and method based on water conservancy object classification label
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
CN105893531B (en) * 2016-03-31 2019-07-23 武汉虹信技术服务有限责任公司 PostgreSQL database mass data management method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718184A (en) * 2014-12-05 2016-06-29 北京搜狗科技发展有限公司 Data processing method and apparatus
CN105069020A (en) * 2015-07-14 2015-11-18 国家信息中心 3D visualization method and system of natural resource data
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
"面向海量水利数据的索引方法研究";冯钧 等;《计算机与现代化》;20171015(第10期);29-35 *

Also Published As

Publication number Publication date
CN109063215A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
US11941017B2 (en) Event driven extract, transform, load (ETL) processing
US8468146B2 (en) System and method for creating search index on cloud database
CN111339171B (en) Data query method, device and equipment
US20130085987A1 (en) Downloading method and device
CN106970958B (en) A kind of inquiry of stream file and storage method and device
KR101475335B1 (en) Enhancing an inquiry for a search of a database
WO2014110940A1 (en) A method, apparatus and system for storing, reading the directory index
US20140019454A1 (en) Systems and Methods for Caching Data Object Identifiers
CN107861750B (en) Label management method, label management device and intelligent terminal
US20200342029A1 (en) Systems and methods for querying databases using interactive search paths
CN109063215B (en) Data retrieval method and device
US20150134661A1 (en) Multi-Source Media Aggregation
CN114817717A (en) Search method, search device, computer equipment and storage medium
CN112559913B (en) Data processing method, device, computing equipment and readable storage medium
EP3123360A1 (en) Partition filtering using smart index in memory
CN107622090B (en) Object acquisition method, device and system
US11841841B2 (en) Stand in tables
CN110222046B (en) List data processing method, device, server and storage medium
CN111858581A (en) Page query method and device, storage medium and electronic equipment
US10114864B1 (en) List element query support and processing
CN112685557A (en) Visualized information resource management method and device
CN116610703A (en) Data query method, device, computer equipment and storage medium
CN116401245A (en) Data index construction method and system
CN114356946A (en) Data table updating method, device, equipment and readable storage medium
CN115408405A (en) Form processing method and device and computer equipment

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