CN112231541A - Data retrieval method, system, computer device and storage medium - Google Patents

Data retrieval method, system, computer device and storage medium Download PDF

Info

Publication number
CN112231541A
CN112231541A CN202011019098.7A CN202011019098A CN112231541A CN 112231541 A CN112231541 A CN 112231541A CN 202011019098 A CN202011019098 A CN 202011019098A CN 112231541 A CN112231541 A CN 112231541A
Authority
CN
China
Prior art keywords
data
data source
retrieval
sources
source
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.)
Pending
Application number
CN202011019098.7A
Other languages
Chinese (zh)
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.)
Suzhou Aitlubao Intelligent Technology Co ltd
Original Assignee
Suzhou Aitlubao Intelligent Technology 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 Suzhou Aitlubao Intelligent Technology Co ltd filed Critical Suzhou Aitlubao Intelligent Technology Co ltd
Priority to CN202011019098.7A priority Critical patent/CN112231541A/en
Publication of CN112231541A publication Critical patent/CN112231541A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The scheme relates to a data retrieval method. The method comprises the following steps: acquiring a condition to be retrieved; according to the condition to be retrieved, simultaneously sending data retrieval information to a plurality of data sources; receiving data structures returned from a plurality of data sources and merging the data structures; and marking each data source of the merged data structure as a target data source, and sequentially displaying the retrieval data according to the target data source. By combining the data of different data sources, the unified query processing can be performed aiming at the data sources with different structures, so that the efficiency of data retrieval is improved.

Description

Data retrieval method, system, computer device and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data retrieval method, a data retrieval system, a computer device, and a storage medium.
Background
With the rapid development of computer technology and society, the retrieval requirements of users are increasing, and users can acquire data wanted by themselves through retrieval. The server may store therein data generated by a computer, data obtained by converting a file into an electronic file, and the like, and the user may search and view the data stored in the server through a terminal connected to the server via a network. Since the server stores a large amount of data, the user can quickly acquire desired data from the data stored in the server. For example, in legal works, there are often a large amount of case data, legal provision data, and the like, and when a user searches, the user usually inputs keywords, and the computer screens more matched data from a large amount of data according to the keywords and pushes the data to the user.
However, the conventional data retrieval method usually queries one data source at a time according to input conditions and then repeatedly queries in a plurality of data sources, and has the problem of low data retrieval efficiency.
Disclosure of Invention
In order to solve the technical problems, a data retrieval method, a system, a computer device and a storage medium are provided, which can improve the efficiency of data retrieval.
A method of data retrieval, the method comprising:
acquiring a condition to be retrieved;
according to the condition to be retrieved, simultaneously sending data retrieval information to a plurality of data sources;
receiving data structures returned from the plurality of data sources and merging the data structures;
and marking each data source of the merged data structure as a target data source, and sequentially displaying the retrieval data according to the target data source.
In one embodiment, the method further comprises:
determining a candidate single data source required by retrieval;
combining a plurality of fields in the data of the candidate single data source into a field to be checked as a single data source;
and taking a plurality of single data sources as the plurality of data sources.
In one embodiment, the field to be searched is used for searching data.
In one embodiment, the marking the respective data sources of the merged data structure as target data sources includes:
acquiring data source names of all data sources of the combined data structure;
and marking the data source name, and taking the data source marked with the data source name as the target data source.
In one embodiment, the sequentially presenting the retrieved data according to the target data source includes:
sending each data source after the data structure is combined to an HTML5 page;
and displaying the retrieval data according to the data source name through the HTML5 page.
A data retrieval system, the system comprising:
the condition acquisition module is used for acquiring the condition to be retrieved;
the information sending module is used for sending data retrieval information to a plurality of data sources simultaneously according to the conditions to be retrieved;
the structure merging module is used for receiving the data structures returned from the plurality of data sources and merging the data structures;
and the data display module is used for marking all the data sources of the combined data structure as target data sources and sequentially displaying the retrieval data according to the target data sources.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a condition to be retrieved;
according to the condition to be retrieved, simultaneously sending data retrieval information to a plurality of data sources;
receiving data structures returned from the plurality of data sources and merging the data structures;
and marking each data source of the merged data structure as a target data source, and sequentially displaying the retrieval data according to the target data source.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a condition to be retrieved;
according to the condition to be retrieved, simultaneously sending data retrieval information to a plurality of data sources;
receiving data structures returned from the plurality of data sources and merging the data structures;
and marking each data source of the merged data structure as a target data source, and sequentially displaying the retrieval data according to the target data source.
According to the data retrieval method, the data retrieval system, the computer equipment and the storage medium, the condition to be retrieved is obtained; according to the condition to be retrieved, simultaneously sending data retrieval information to a plurality of data sources; receiving data structures returned from a plurality of data sources and merging the data structures; and marking each data source of the merged data structure as a target data source, and sequentially displaying the retrieval data according to the target data source. By combining the data of different data sources, the unified query processing can be performed aiming at the data sources with different structures, so that the efficiency of data retrieval is improved.
Drawings
FIG. 1 is a diagram of an exemplary data retrieval system;
FIG. 2 is a flow diagram illustrating a data retrieval method in one embodiment;
FIG. 3 is a schematic flow chart illustrating obtaining multiple data sources in one embodiment;
FIG. 4 is a block diagram of the architecture of one embodiment of a data retrieval system;
FIG. 5 is a block diagram showing the construction of a data retrieval system in another embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data retrieval method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. As shown in FIG. 1, the application environment includes a computer device 110. The computer device 110 may obtain the condition to be retrieved; the computer device 110 may send data retrieval information to a plurality of data sources simultaneously according to the condition to be retrieved; computer device 110 may receive data structures returned from multiple data sources and merge the data structures; computer device 110 may mark each data source of the merged data structure as a target data source and present the retrieved data in sequence according to the target data source. The computer device 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and the like.
In one embodiment, as shown in fig. 2, there is provided a data retrieval method comprising the steps of:
step 202, obtaining the condition to be retrieved.
The condition to be retrieved can be a retrieval keyword input by a user through computer equipment. Specifically, a search box may be displayed in a display interface of the computer device, and a user may input a search keyword through the search box.
And step 204, simultaneously sending data retrieval information to a plurality of data sources according to the conditions to be retrieved.
Various data information may be stored in the data source. Wherein multiple data sources may be used to represent respective data sources with different data structures. After the computer device obtains the condition to be retrieved, the computer device can simultaneously send data retrieval information to the plurality of data sources, namely simultaneously send the data retrieval information to the plurality of data sources for inquiry.
Step 206, receive data structures returned from multiple data sources and merge the data structures.
Since the data structures of the data sources are different, the computer device can merge the data structures of the data sources.
And step 208, marking each data source of the merged data structure as a target data source, and sequentially displaying the retrieval data according to the target data source.
The computer device may mark each data source of the merged data structure as a target data source and display the retrieved data according to the target data source according to the corresponding rules.
In the embodiment, the condition to be retrieved is obtained; according to the condition to be retrieved, simultaneously sending data retrieval information to a plurality of data sources; receiving data structures returned from a plurality of data sources and merging the data structures; and marking each data source of the merged data structure as a target data source, and sequentially displaying the retrieval data according to the target data source. By combining the data of different data sources, the unified query processing can be performed aiming at the data sources with different structures, so that the efficiency of data retrieval is improved.
In an embodiment, as shown in fig. 3, the provided data retrieval method may further include a process of obtaining a plurality of data sources, and the specific steps include:
step 302, determining candidate single data sources required for retrieval.
Step 304, combining a plurality of fields in the data of the candidate single data source into a field to be checked as a single data source.
And step 306, taking the plurality of single data sources as a plurality of data sources.
In one embodiment, the field to be queried is used to query data. Specifically, the field to be searched may be used only for searching data.
In an embodiment, the provided data retrieval method may further include a process of marking each data source as a target data source, where the specific process includes: acquiring data source names of all data sources of the combined data structure; and marking the name of the data source, and taking the data source marked with the name of the data source as a target data source.
In one embodiment, the provided data retrieval method may further include a process of displaying the retrieved data, and the specific process includes: sending each data source after the data structure is combined to an HTML5 page; the retrieved data display is presented by the HTML5 page according to the data source name.
It should be understood that, although the steps in the respective flowcharts described above are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in each of the flowcharts described above may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a data retrieval system comprising: a condition obtaining module 410, an information sending module 420, a structure merging module 430 and a data showing module 440, wherein:
the condition obtaining module 410 is configured to obtain a condition to be retrieved.
And the information sending module 420 is configured to send data retrieval information to multiple data sources simultaneously according to the condition to be retrieved.
A structure merging module 430, configured to receive data structures returned from multiple data sources and merge the data structures.
And the data display module 440 is configured to mark each data source of the merged data structure as a target data source, and sequentially display the retrieved data according to the target data source.
As shown in fig. 5, in one embodiment, a data retrieval system is provided further comprising: a data source determination module 450, a field merging module 460, and a plurality of data source generation modules 470, wherein:
and a data source determining module 450, configured to determine a candidate single data source required for retrieval.
And a field merging module 460, configured to merge multiple fields in the data of the candidate single data source into one field to be checked, as a single data source.
A plurality of data source generating modules 470 for using the plurality of single data sources as the plurality of data sources.
In one embodiment, the field to be queried is used to query data.
In one embodiment, the data presentation module 440 is further configured to obtain data source names of the data sources of the merged data structure; and marking the name of the data source, and taking the data source marked with the name of the data source as a target data source.
In one embodiment, the data presentation module 440 is further configured to send each data source after merging the data structures to the HTML5 page; the retrieved data display is presented by the HTML5 page according to the data source name.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data retrieval method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a condition to be retrieved;
according to the condition to be retrieved, simultaneously sending data retrieval information to a plurality of data sources;
receiving data structures returned from a plurality of data sources and merging the data structures;
and marking each data source of the merged data structure as a target data source, and sequentially displaying the retrieval data according to the target data source.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining a candidate single data source required by retrieval; combining a plurality of fields in the data of the candidate single data source into a field to be checked as a single data source; and taking a plurality of single data sources as a plurality of data sources.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the field to be searched is used for searching data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring data source names of all data sources of the combined data structure; and marking the name of the data source, and taking the data source marked with the name of the data source as a target data source.
In one embodiment, the processor, when executing the computer program, further performs the steps of: sending each data source after the data structure is combined to an HTML5 page; the retrieved data display is presented by the HTML5 page according to the data source name.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a condition to be retrieved;
according to the condition to be retrieved, simultaneously sending data retrieval information to a plurality of data sources;
receiving data structures returned from a plurality of data sources and merging the data structures;
and marking each data source of the merged data structure as a target data source, and sequentially displaying the retrieval data according to the target data source.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining a candidate single data source required by retrieval; combining a plurality of fields in the data of the candidate single data source into a field to be checked as a single data source; and taking a plurality of single data sources as a plurality of data sources.
In one embodiment, the computer program when executed by the processor further performs the steps of: the field to be searched is used for searching data.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring data source names of all data sources of the combined data structure; and marking the name of the data source, and taking the data source marked with the name of the data source as a target data source.
In one embodiment, the computer program when executed by the processor further performs the steps of: sending each data source after the data structure is combined to an HTML5 page; the retrieved data display is presented by the HTML5 page according to the data source name.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for data retrieval, the method comprising:
acquiring a condition to be retrieved;
according to the condition to be retrieved, simultaneously sending data retrieval information to a plurality of data sources;
receiving data structures returned from the plurality of data sources and merging the data structures;
and marking each data source of the merged data structure as a target data source, and sequentially displaying the retrieval data according to the target data source.
2. The method of claim 1, further comprising:
determining a candidate single data source required by retrieval;
combining a plurality of fields in the data of the candidate single data source into a field to be checked as a single data source;
and taking a plurality of single data sources as the plurality of data sources.
3. The method of claim 2, wherein the field to be queried is used to query data.
4. The method of claim 1, wherein marking each data source of the merged data structure as a target data source comprises:
acquiring data source names of all data sources of the combined data structure;
and marking the data source name, and taking the data source marked with the data source name as the target data source.
5. The method of claim 4, wherein said presenting the retrieved data in order according to the target data source comprises:
sending each data source after the data structure is combined to an HTML5 page;
and displaying the retrieval data according to the data source name through the HTML5 page.
6. A data retrieval system, the system comprising:
the condition acquisition module is used for acquiring the condition to be retrieved;
the information sending module is used for sending data retrieval information to a plurality of data sources simultaneously according to the conditions to be retrieved;
the structure merging module is used for receiving the data structures returned from the plurality of data sources and merging the data structures;
and the data display module is used for marking all the data sources of the combined data structure as target data sources and sequentially displaying the retrieval data according to the target data sources.
7. The system of claim 6, further comprising:
the data source determining module is used for determining candidate single data sources required by retrieval;
the field merging module is used for merging a plurality of fields in the data of the candidate single data source into a field to be checked to serve as a single data source;
and the plurality of data source generating modules are used for taking the plurality of single data sources as the plurality of data sources.
8. The system of claim 7, wherein the field to be queried is used to query data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202011019098.7A 2020-09-22 2020-09-22 Data retrieval method, system, computer device and storage medium Pending CN112231541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011019098.7A CN112231541A (en) 2020-09-22 2020-09-22 Data retrieval method, system, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011019098.7A CN112231541A (en) 2020-09-22 2020-09-22 Data retrieval method, system, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN112231541A true CN112231541A (en) 2021-01-15

Family

ID=74108230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011019098.7A Pending CN112231541A (en) 2020-09-22 2020-09-22 Data retrieval method, system, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN112231541A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120197902A1 (en) * 2011-01-28 2012-08-02 International Business Machines Corporation Data ingest optimization
CN108133007A (en) * 2017-12-22 2018-06-08 北京明朝万达科技股份有限公司 A kind of method of data synchronization and system
CN108170731A (en) * 2017-12-13 2018-06-15 腾讯科技(深圳)有限公司 Data processing method, device, computer storage media and server
CN109446253A (en) * 2018-09-25 2019-03-08 平安科技(深圳)有限公司 Data query control method, device, computer equipment and storage medium
CN109783543A (en) * 2019-01-14 2019-05-21 广州虎牙信息科技有限公司 Data query method, apparatus, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120197902A1 (en) * 2011-01-28 2012-08-02 International Business Machines Corporation Data ingest optimization
CN108170731A (en) * 2017-12-13 2018-06-15 腾讯科技(深圳)有限公司 Data processing method, device, computer storage media and server
CN108133007A (en) * 2017-12-22 2018-06-08 北京明朝万达科技股份有限公司 A kind of method of data synchronization and system
CN109446253A (en) * 2018-09-25 2019-03-08 平安科技(深圳)有限公司 Data query control method, device, computer equipment and storage medium
CN109783543A (en) * 2019-01-14 2019-05-21 广州虎牙信息科技有限公司 Data query method, apparatus, equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2020186786A1 (en) File processing method and apparatus, computer device and storage medium
CN109558404B (en) Data storage method, device, computer equipment and storage medium
EP3855324A1 (en) Associative recommendation method and apparatus, computer device, and storage medium
CN112256662B (en) Agricultural product information block chain storage and tracing method, device, equipment and storage medium
CN108664582B (en) Enterprise relation query method and device, computer equipment and storage medium
CN109597979B (en) List table generation method and device, computer equipment and storage medium
CN111666370B (en) Semantic indexing method and device for multi-source heterogeneous space data
CN111078559B (en) Method, device, medium and computer equipment for extracting function call in java code
CN109542962B (en) Data processing method, data processing device, computer equipment and storage medium
CN112000903A (en) Data query method and device, computer equipment and storage medium
CN113407785A (en) Data processing method and system based on distributed storage system
CN110457401B (en) Data storage method and device, computer equipment and storage medium
CN112084403B (en) Data query method, device, computer equipment and storage medium
CN109213775B (en) Search method, search device, computer equipment and storage medium
CN114327435A (en) Technical document generation method and device and computer readable storage medium
CN112699195B (en) Geospatial data processing method, device, computer equipment and storage medium
CN114238334A (en) Heterogeneous data encoding method and device, heterogeneous data decoding method and device, computer equipment and storage medium
CN110555165A (en) information identification method and device, computer equipment and storage medium
CN112783866B (en) Data reading method, device, computer equipment and storage medium
CN114356968A (en) Query statement generation method and device, computer equipment and storage medium
CN108460116B (en) Search method, search device, computer equipment, storage medium and search system
CN114090589A (en) Data query method and device based on HBase and computer equipment
CN112433753A (en) Interface document generation method, device, equipment and medium based on parameter information
CN109460500B (en) Hotspot event discovery method and device, computer equipment and storage medium
CN114003685B (en) Word segmentation position index construction method and device, and document retrieval method and device

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