CN114020989A - Data retrieval method and device - Google Patents

Data retrieval method and device Download PDF

Info

Publication number
CN114020989A
CN114020989A CN202111302105.9A CN202111302105A CN114020989A CN 114020989 A CN114020989 A CN 114020989A CN 202111302105 A CN202111302105 A CN 202111302105A CN 114020989 A CN114020989 A CN 114020989A
Authority
CN
China
Prior art keywords
retrieval
algorithm model
retrieval algorithm
index data
data
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
CN202111302105.9A
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.)
Shandong Kurui Technology Co ltd
Beijing Qury Technology Co ltd
Original Assignee
Shandong Kurui Technology Co ltd
Beijing Qury 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 Shandong Kurui Technology Co ltd, Beijing Qury Technology Co ltd filed Critical Shandong Kurui Technology Co ltd
Priority to CN202111302105.9A priority Critical patent/CN114020989A/en
Publication of CN114020989A publication Critical patent/CN114020989A/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/951Indexing; Web crawling techniques

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 Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a data retrieval method and device, and relates to the technical field of data retrieval. The method comprises the following steps: sending request information to a server; receiving a first retrieval algorithm model sent by the server and an index data template corresponding to the first retrieval algorithm model; creating a retrieval interface corresponding to the first retrieval algorithm model, and mapping data in a data set to be retrieved according to an index data template corresponding to the first retrieval algorithm model to obtain an index data set corresponding to the first retrieval algorithm model; receiving a retrieval request input by a user through a retrieval interface corresponding to the first retrieval algorithm model; and acquiring and outputting a retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model. The embodiment of the invention is used for avoiding uploading data to the cloud when the data retrieval is realized.

Description

Data retrieval method and device
Technical Field
The present invention relates to the field of data retrieval technologies, and in particular, to a data retrieval method and apparatus.
Background
Data Retrieval (Data Retrieval) is a process or technique that stores selected, collated and evaluated Data in some sort of carrier and retrieves valid Data from a collection of Data as needed. With the continuous development of network technology, the total amount of data is explosively increased, and when massive data is faced, if effective data cannot be retrieved from the data, the data becomes chaotic and difficult to use, and the value of the data cannot be played, so that data retrieval becomes a core technology and an important foundation in the field of data processing.
At present, a large amount of data is accumulated inside a plurality of enterprises, and when such enterprises want to retrieve the internal data, the commonly adopted scheme is as follows: the internal data are uploaded to the cloud end, and the internal data are retrieved by utilizing cloud search products provided by cloud manufacturers. However, although the data retrieval method can simply and quickly implement data retrieval, enterprises need to upload internal data to the cloud, and a certain risk of data leakage exists, and the method is not suitable for data with high confidentiality requirements.
Disclosure of Invention
In view of this, the present invention provides a data retrieval method and apparatus, which are used to avoid uploading data to a cloud end when data retrieval is implemented.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides a data retrieval method, which is applied to a terminal device, and the method includes:
sending request information to a server;
receiving a first retrieval algorithm model sent by the server and an index data template corresponding to the first retrieval algorithm model;
creating a retrieval interface corresponding to the first retrieval algorithm model, and mapping data in a data set to be retrieved according to an index data template corresponding to the first retrieval algorithm model to obtain an index data set corresponding to the first retrieval algorithm model;
receiving a retrieval request input by a user through a retrieval interface corresponding to the first retrieval algorithm model;
and acquiring and outputting a retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model.
As an optional implementation manner of the embodiment of the present invention, the method further includes:
obtaining a self-defined second retrieval algorithm model and an index data template corresponding to the second retrieval algorithm model;
and creating a retrieval interface corresponding to the second retrieval algorithm model, and mapping data in the data set to be retrieved according to the index data template corresponding to the second retrieval algorithm model to obtain an index data set corresponding to the second retrieval algorithm model.
As an optional implementation manner of the embodiment of the present invention, the method further includes:
and uploading the second retrieval algorithm model and the index data template corresponding to the second retrieval algorithm model to the server.
As an optional implementation manner of the embodiment of the present invention, the method further includes:
receiving operation of a user on a third retrieval algorithm model and/or an index data template corresponding to the third retrieval algorithm model;
and in response to the operation, modifying the model parameters of the third retrieval algorithm model and/or the index data template corresponding to the third retrieval algorithm model.
As an optional implementation manner of the embodiment of the present invention, the mapping data in a to-be-retrieved data set according to an index data template corresponding to the first retrieval algorithm model to obtain an index data set corresponding to the first retrieval algorithm model includes:
acquiring data attributes required to be contained in index data corresponding to the first retrieval algorithm model according to the index data template corresponding to the first retrieval algorithm model;
generating a mapping rule for mapping the data in the data set to be retrieved to the index data corresponding to the first retrieval algorithm model according to the data attribute which is required to be contained in the index data corresponding to the first retrieval algorithm model;
and mapping the data in the data set to be retrieved according to the mapping rule to obtain an index data set corresponding to the first retrieval algorithm model.
In a second aspect, an embodiment of the present invention provides a data retrieval method, which is applied to a server, and the method includes:
receiving request information sent by terminal equipment;
responding to the request information, sending a first retrieval algorithm model and an index data template corresponding to the first retrieval algorithm model to the terminal device, so that the terminal device creates a retrieval interface corresponding to the first retrieval algorithm model, maps data in a data set to be retrieved according to the index data template corresponding to the first retrieval algorithm model, obtains the index data set corresponding to the first retrieval algorithm model, and obtains and outputs a retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model when receiving the retrieval request input by a user through the retrieval interface corresponding to the first retrieval algorithm model.
As an alternative implementation of the embodiment of the present invention,
receiving a second retrieval algorithm model sent by the terminal equipment and an index data template corresponding to the second retrieval algorithm model;
and saving the second retrieval algorithm model and the index data template corresponding to the second retrieval algorithm model.
In a third aspect, an embodiment of the present invention provides a terminal device, including:
a sending unit, configured to send request information to a server;
a receiving unit, configured to receive a first retrieval algorithm model sent by the server and an index data template corresponding to the first retrieval algorithm model;
the processing unit is used for creating a retrieval interface corresponding to the first retrieval algorithm model, mapping data in a data set to be retrieved according to an index data template corresponding to the first retrieval algorithm model, and acquiring an index data set corresponding to the first retrieval algorithm model;
the user input unit is used for receiving a retrieval request input by a user through a retrieval interface corresponding to the first retrieval algorithm model;
and the output unit is used for acquiring and outputting the retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model.
As an alternative implementation of the embodiment of the present invention,
the user input unit is also used for receiving a self-defined second retrieval algorithm model and an index data template corresponding to the second retrieval algorithm model;
the processing unit is further configured to create a retrieval interface corresponding to the second retrieval algorithm model, and map data in the data set to be retrieved according to the index data template corresponding to the second retrieval algorithm model to obtain an index data set corresponding to the second retrieval algorithm model.
As an optional implementation manner of the embodiment of the present invention, the sending unit is further configured to upload the second search algorithm model and the index data template corresponding to the second search algorithm model to the server.
As an alternative implementation of the embodiment of the present invention,
the user input unit is also used for receiving the operation of a user on a third retrieval algorithm model and/or an index data template corresponding to the third retrieval algorithm model;
and the processing unit is further used for responding to the operation and modifying the model parameters of the third retrieval algorithm model and/or the index data template corresponding to the third retrieval algorithm model.
As an optional implementation manner of the embodiment of the present invention, the processing unit is specifically configured to obtain, according to the index data template corresponding to the first search algorithm model, a data attribute that needs to be included in the index data corresponding to the first search algorithm model; generating a mapping rule for mapping the data in the data set to be retrieved to the index data corresponding to the first retrieval algorithm model according to the data attribute which is required to be contained in the index data corresponding to the first retrieval algorithm model; and mapping the data in the data set to be retrieved according to the mapping rule to obtain an index data set corresponding to the first retrieval algorithm model.
In a fourth aspect, an embodiment of the present invention provides a server, including:
the receiving unit is used for receiving request information sent by the terminal equipment;
and the sending unit is used for responding to the request information, sending a first retrieval algorithm model and an index data template corresponding to the first retrieval algorithm model to the terminal equipment, so that the terminal equipment creates a retrieval interface corresponding to the first retrieval algorithm model, mapping data in a data set to be retrieved according to the index data template corresponding to the first retrieval algorithm model, acquiring an index data set corresponding to the first retrieval algorithm model, and acquiring and outputting a retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model when receiving the retrieval request input by a user through the retrieval interface corresponding to the first retrieval algorithm model.
As an optional implementation manner of the embodiment of the present invention, the receiving unit is further configured to receive a second retrieval algorithm model sent by the terminal device and an index data template corresponding to the second retrieval algorithm model; and storing the second retrieval algorithm model and the index data template corresponding to the second retrieval algorithm model.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including: a memory for storing a computer program and a processor; the processor is configured to, when executing the computer program, cause the electronic device to implement the data retrieval method according to any of the above embodiments.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer program is executed by a computing device, so that the computing device implements the data retrieval method described in any of the foregoing embodiments.
In a seventh aspect, an embodiment of the present invention provides a computer program product, which when run on a computer, causes the computer to implement the data retrieval method described in any of the above embodiments.
When data in a data set to be retrieved needs to be retrieved, first sending request information to a server, and receiving a first retrieval algorithm model sent by the server and an index data template corresponding to the first retrieval algorithm model; then creating a retrieval interface corresponding to the first retrieval algorithm model, and mapping data in a data set to be retrieved according to an index data template corresponding to the first retrieval algorithm model to obtain an index data set corresponding to the first retrieval algorithm model; and then receiving a retrieval request input by a user through a retrieval interface corresponding to the first retrieval algorithm model, and acquiring and outputting a retrieval result corresponding to the retrieval request through the first retrieval algorithm model and an index data set corresponding to the first retrieval algorithm model. According to the data retrieval method provided by the embodiment of the invention, the first retrieval algorithm model and the index data template which can be privately deployed to the terminal equipment can be obtained from the server, the retrieval of the data in the data set to be retrieved is realized based on the first retrieval algorithm model and the index data template, and the data in the data set to be retrieved is not required to be uploaded to the server, so that the data can be prevented from being uploaded to a cloud end during the data retrieval, and the safety of the data is further ensured.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic structural diagram of a data retrieval system according to an embodiment of the present invention;
FIG. 2 is an interaction flow diagram of a data retrieval method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention may be more clearly understood, a solution of the present invention will be further described below. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those described herein; it is to be understood that the embodiments described in this specification are only some embodiments of the invention, and not all embodiments.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion. Further, in the description of the embodiments of the present invention, "a plurality" means two or more unless otherwise specified.
First, a system architecture of the data retrieval system according to the embodiment of the present invention will be described below.
Referring to fig. 1, a data retrieval system provided in an embodiment of the present invention includes: the system comprises a server 11 and a terminal device 12, wherein a network connection is established between the server 11 and the terminal device 12, and data transmission can be carried out between the server 11 and the terminal device 12 through the established network connection.
The server 11 includes: a management module 111, a search algorithm model library 112, an index data template library 113, a version management module 114, a receiving module 115, and a sending module 116. The management module 111 is configured to receive a retrieval algorithm model uploaded by a developer and/or a terminal device and an index data template corresponding to the retrieval algorithm model, store the retrieval algorithm model and the index data template corresponding to the retrieval algorithm model in the retrieval algorithm model library 112 and the index data template library 113, and store a corresponding relationship between the retrieval algorithm model and the index data template. The version management library 114 is used for version management of the search algorithm model. When the receiving unit 115 receives the request information sent by the terminal device 12, the sending module 116 sends the corresponding retrieval algorithm model and the index data template to the client. It should be noted that the functions implemented by the management module 111 in the above implementation can also be implemented by a plurality of functional modules, for example: the receiving of the uploaded retrieval algorithm model and the index data template corresponding to the retrieval algorithm model, the management of the retrieval algorithm model library 112 and the management of the index data template library 113 can be realized by three functional modules respectively.
The client 12 includes: a sending module 121, a receiving module 122, a retrieval interface management module 123, a retrieval algorithm model library 124, an index database 125, an index data template library 126 and an index data management module 127. The sending module 121 is configured to send request information to the server 11, and the receiving module 122 is configured to receive a retrieval algorithm model sent by the server and an index data template corresponding to the retrieval algorithm model; the retrieval interface management module 123 is configured to create and manage a retrieval interface corresponding to the retrieval algorithm model; the retrieval algorithm model cluster 124 is configured to store retrieval algorithm models obtained from the server 11 and user-automated retrieval algorithm models, the index data cluster 125 is configured to store index data corresponding to each retrieval algorithm model, the index data template library 126 is configured to store index data template sets corresponding to each retrieval algorithm model, and the index data management module 127 is configured to generate retrieval data sets according to each index data template and a data set to be retrieved.
The server 11 provided by the embodiment of the present invention may be a cloud server. The terminal device provided in the embodiment of the present invention may be a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or other types of terminal devices, and the embodiment of the present invention is not limited in this application.
Based on the above, the embodiment of the present invention provides a data retrieval method, and as shown in fig. 2, the data retrieval method includes the following steps:
and S21, the terminal equipment sends the request information to the server.
Correspondingly, the server receives the request information sent by the terminal equipment.
Optionally, the request information may carry identification information of a retrieval algorithm model to be downloaded and/or an index data template to be downloaded, so that the server sends the corresponding retrieval algorithm model and the index data template to the terminal device. The identification information may be a name of the retrieval algorithm model, an index number of the retrieval algorithm model, a download address of the retrieval algorithm model, a name of the index data template, an index number of the index data template, a download address of the index data template, and the like.
Specifically, when a user corresponding to the terminal device wants to implement a certain retrieval function, the terminal device may first determine a retrieval algorithm model and an index number template that need to be used, search whether the retrieval algorithm model is stored in a local retrieval algorithm model library, search whether the index number template is stored in a local index number template database, and send request information carrying identification information of the retrieval algorithm model and/or the index number template that need to be used but is not stored locally to the server according to a search result, so as to obtain the corresponding retrieval algorithm model and/or the index number template from the server.
For example: the server discloses function descriptions corresponding to the algorithm models, the terminal equipment displays the function descriptions and identification information corresponding to the algorithm models, and when touch click operation of a user on the first algorithm model is received, request information carrying the identification of the first algorithm model is sent to the server.
Optionally, the request information may carry a data type of data to be retrieved, so that the server sends a corresponding retrieval algorithm model to the terminal device according to the data type.
For example: if a user corresponding to the terminal device wants to download a retrieval algorithm model for retrieving audio data, the request information may carry "audio data" so that the server sends the retrieval algorithm model for retrieving audio data.
S22, the server sends the first retrieval algorithm model and the index data template corresponding to the first retrieval algorithm model to the terminal equipment.
Correspondingly, the terminal equipment receives the first retrieval algorithm model sent by the server and the index data template corresponding to the first retrieval algorithm model.
It should be noted that, in the embodiment of the present invention, the correspondence between the search algorithm model and the index data template may be one-to-one, may also be one-to-many, and may also be many-to-many. For example: the index data template corresponding to the first retrieval algorithm model may be one retrieval data template or a plurality of data templates, and the index data template corresponding to the first retrieval algorithm model may be only applicable to the first retrieval algorithm model, or may be applicable to not only the first retrieval algorithm model but also other retrieval algorithm models.
S23, the terminal device creates a retrieval interface corresponding to the first retrieval algorithm model, and maps data in the data set to be retrieved according to the index data template corresponding to the first retrieval algorithm model to obtain the index data set corresponding to the first retrieval algorithm model.
Specifically, the retrieval Interface in the embodiment of the present invention may be an Application Programming Interface (AIP). That is, the terminal device generates and displays a user interface for inputting a search request, and the user inputs the search request in the user interface.
As an optional implementation manner of the embodiment of the present invention, in the step S23, mapping data in a to-be-retrieved data set according to the index data template corresponding to the first retrieval algorithm model to obtain the index data set corresponding to the first retrieval algorithm model, includes the following steps a and b:
step a, acquiring data attributes required to be contained in index data corresponding to the first retrieval algorithm model according to the index data template corresponding to the first retrieval algorithm model.
Illustratively, the index data template corresponding to the first search algorithm model is shown in table 1 below:
TABLE 1
Figure BDA0003338792140000101
Then, the data attributes that the index data corresponding to the first search algorithm model needs to contain include: attribute 1, attribute 2, attribute 3, attribute 4, attribute 5, attribute 6, and attribute 7.
And 2, generating a mapping rule for mapping the data in the data set to be retrieved to the index data corresponding to the first retrieval algorithm model according to the data attribute required to be contained in the index data corresponding to the first retrieval algorithm model.
Illustratively, the data format in the data set to be retrieved is shown in table 2 below:
TABLE 2
Figure BDA0003338792140000102
Then, the mapping rule may be: and sequentially reading the 2 nd, 5 th, 7 th, 1 st, 3 rd, 6 th and 8 th attributes in the data set to be retrieved.
And 3, mapping the data in the data set to be retrieved according to the mapping rule to obtain an index data set corresponding to the first retrieval algorithm model.
As described in the above example: sequentially reading the 2 nd, 5 th, 7 th, 1 st, 3 rd, 6 th and 8 th attributes in the data set to be retrieved, wherein the read data attributes sequentially are as follows: and the attribute 1, the attribute 2, the attribute 3, the attribute 4, the attribute 5, the attribute 6 and the attribute 7 are inserted into the index data template corresponding to the first retrieval algorithm model one by one, so that the index data set corresponding to the first retrieval algorithm model can be obtained.
And S24, the terminal equipment receives a retrieval request input by a user through a retrieval interface corresponding to the first retrieval algorithm model.
Specifically, when the terminal device receives the retrieval request, the corresponding retrieval algorithm model may be determined according to the address of the retrieval interface.
For example, the search request may be a search keyword entered in the search box.
And S25, the terminal equipment obtains and outputs the retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model.
Namely, the index data set corresponding to the first retrieval algorithm model is called through the first retrieval algorithm model, and the retrieval result corresponding to the retrieval request is obtained and output through the corresponding retrieval algorithm.
When data in a data set to be retrieved needs to be retrieved, first sending request information to a server, and receiving a first retrieval algorithm model sent by the server and an index data template corresponding to the first retrieval algorithm model; then creating a retrieval interface corresponding to the first retrieval algorithm model, and mapping data in a data set to be retrieved according to an index data template corresponding to the first retrieval algorithm model to obtain an index data set corresponding to the first retrieval algorithm model; and then receiving a retrieval request input by a user through a retrieval interface corresponding to the first retrieval algorithm model, and acquiring and outputting a retrieval result corresponding to the retrieval request through the first retrieval algorithm model and an index data set corresponding to the first retrieval algorithm model. According to the data retrieval method provided by the embodiment of the invention, the first retrieval algorithm model and the index data template which can be privately deployed to the terminal equipment can be obtained from the server, the retrieval of the data in the data set to be retrieved is realized based on the first retrieval algorithm model and the index data template, and the data in the data set to be retrieved is not required to be uploaded to the server, so that the data can be prevented from being uploaded to a cloud end during the data retrieval, and the safety of the data is further ensured.
As an optional implementation manner in the embodiment of the present invention, the data retrieval method provided in the embodiment of the present invention further includes: the above steps S21 to S25 are executed again to realize the retrieval of the data in the other data sets to be retrieved.
For example: the terminal device originally only downloads the retrieval algorithm model and the corresponding index data template for realizing the audio data retrieval through the steps S21 to S25 to provide the audio data service, and then only needs to execute the steps S21 to S25 again to download one retrieval algorithm model for realizing the video data and the data structure template compatible with the model if the video data retrieval service is to be expanded, and the video search service capability can be provided after the index data is imported.
As an optional implementation manner in the embodiment of the present invention, the data retrieval method provided in the embodiment of the present invention further includes:
obtaining a self-defined second retrieval algorithm model and an index data template corresponding to the second retrieval algorithm model;
and creating a retrieval interface corresponding to the second retrieval algorithm model, and mapping data in the data set to be retrieved according to the index data template corresponding to the second retrieval algorithm model to obtain an index data set corresponding to the second retrieval algorithm model.
Optionally, the second search algorithm model in the embodiment of the present invention may be a completely self-developed algorithm model, or may be a new search algorithm model obtained by a user through improvement based on a downloaded search algorithm model.
For example: a user wants to construct a retrieval service for simultaneously retrieving audio data and video data, but a proper retrieval algorithm model is not found in a server, the user can select to develop a retrieval algorithm model meeting the service requirement by himself, and then the developed retrieval algorithm model and a data template are led into terminal equipment, so that the retrieval service for simultaneously retrieving the audio data and the video data is realized.
Further, after a retrieval interface corresponding to the second retrieval algorithm model is created, and data in the data set to be retrieved is mapped according to the index data template corresponding to the second retrieval algorithm model to obtain the index data set corresponding to the second retrieval algorithm model, if the terminal device receives a retrieval request input by a user through the retrieval interface corresponding to the second retrieval algorithm model, a retrieval result corresponding to the retrieval request is obtained and output through the second retrieval algorithm model and the index data set corresponding to the second retrieval algorithm model.
As an optional implementation manner in the embodiment of the present invention, the data retrieval method provided in the embodiment of the present invention further includes:
and uploading the second retrieval algorithm model and the index data template corresponding to the second retrieval algorithm model to the server.
Correspondingly, the server receives a second retrieval algorithm model sent by the terminal equipment and an index data template corresponding to the second retrieval algorithm model; and saving the second retrieval algorithm model and the index data template corresponding to the second retrieval algorithm model.
Namely, the client can also upload the customized retrieval algorithm model and the corresponding index data template to the server, so that the customized retrieval algorithm model is shared by other users for use.
The data retrieval method provided by the embodiment also supports the client to upload the custom retrieval algorithm model and the corresponding index data template to the server, so that the embodiment can strengthen the ecology of the data retrieval system in a manner of uploading the retrieval algorithm model by the client, and the quality and quantity of the ecology of the whole platform are improved.
As an optional implementation manner in the embodiment of the present invention, the data retrieval method provided in the embodiment of the present invention further includes:
receiving operation of a user on a third retrieval algorithm model and/or an index data template corresponding to the third retrieval algorithm model;
and in response to the operation, modifying the model parameters of the third retrieval algorithm model and/or the index data template corresponding to the third retrieval algorithm model.
That is, if the retrieval effect of the downloaded and acquired retrieval algorithm model is not ideal, the model can be automatically adjusted and optimized according to some self-defined parameters of the model.
Based on the same inventive concept, as an implementation of the foregoing method, an embodiment of the present invention further provides a terminal device and a server, where the embodiment corresponds to the foregoing method embodiment, and for convenience of reading, details in the foregoing method embodiment are not described in detail again in this embodiment, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiment.
An embodiment of the present invention provides a terminal device, fig. 3 is a schematic structural diagram of the terminal device, and as shown in fig. 3, the terminal device 300 includes:
a sending unit 31 for sending request information to the server;
a receiving unit 32, configured to receive a first retrieval algorithm model sent by the server and an index data template corresponding to the first retrieval algorithm model;
the processing unit 33 is configured to create a retrieval interface corresponding to the first retrieval algorithm model, and map data in a to-be-retrieved data set according to an index data template corresponding to the first retrieval algorithm model to obtain an index data set corresponding to the first retrieval algorithm model;
a user input unit 34, configured to receive a retrieval request input by a user through a retrieval interface corresponding to the first retrieval algorithm model;
and the output unit 35 is configured to obtain and output a retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model.
As an alternative implementation of the embodiment of the present invention,
the user input unit 34 is further configured to receive a customized second retrieval algorithm model and an index data template corresponding to the second retrieval algorithm model;
the processing unit 33 is further configured to create a retrieval interface corresponding to the second retrieval algorithm model, and map data in the data set to be retrieved according to the index data template corresponding to the second retrieval algorithm model to obtain an index data set corresponding to the second retrieval algorithm model.
As an optional implementation manner of the embodiment of the present invention, the sending unit 31 is further configured to upload the second retrieval algorithm model and the index data template corresponding to the second retrieval algorithm model to the server.
As an alternative implementation of the embodiment of the present invention,
the user input unit 34 is further configured to receive a user operation on a third retrieval algorithm model and/or an index data template corresponding to the third retrieval algorithm model;
the processing unit 33 is further configured to modify, in response to the operation, the model parameters of the third search algorithm model and/or the index data template corresponding to the third search algorithm model.
As an optional implementation manner of the embodiment of the present invention, the processing unit 33 is specifically configured to obtain, according to the index data template corresponding to the first search algorithm model, a data attribute that needs to be included in the index data corresponding to the first search algorithm model; generating a mapping rule for mapping the data in the data set to be retrieved to the index data corresponding to the first retrieval algorithm model according to the data attribute which is required to be contained in the index data corresponding to the first retrieval algorithm model; and mapping the data in the data set to be retrieved according to the mapping rule to obtain an index data set corresponding to the first retrieval algorithm model.
The terminal device provided in this embodiment may execute the data retrieval method provided in the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
An embodiment of the present invention provides a server, fig. 4 is a schematic structural diagram of the terminal device, and as shown in fig. 4, the server 400 includes:
a receiving unit 41, configured to receive request information sent by a terminal device;
a sending unit 42, configured to send, in response to the request information, a first retrieval algorithm model and an index data template corresponding to the first retrieval algorithm model to the terminal device, so that the terminal device creates a retrieval interface corresponding to the first retrieval algorithm model, and maps data in a to-be-retrieved data set according to the index data template corresponding to the first retrieval algorithm model to obtain an index data set corresponding to the first retrieval algorithm model, and when a retrieval request input by a user through the retrieval interface corresponding to the first retrieval algorithm model is received, obtain and output a retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model.
As an optional implementation manner of the embodiment of the present invention, the receiving unit 41 is further configured to receive a second retrieval algorithm model sent by the terminal device and an index data template corresponding to the second retrieval algorithm model; and storing the second retrieval algorithm model and the index data template corresponding to the second retrieval algorithm model.
The server provided in this embodiment may execute the data retrieval method provided in the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Based on the same inventive concept, the embodiment of the invention also provides electronic equipment. Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device according to the embodiment includes: a memory 501 and a processor 502, the memory 501 being used for storing computer programs; the processor 502 is configured to execute the data retrieval method provided by the above-mentioned embodiments when executing the computer program.
Based on the same inventive concept, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program enables the computing device to implement the data retrieval method provided by the above-mentioned embodiment.
Based on the same inventive concept, the embodiment of the present invention further provides a computer program product, which, when running on a computer, enables the computing device to implement the data retrieval method provided by the above embodiment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied in the medium.
The processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer readable media include both permanent and non-permanent, removable and non-removable storage media. Storage media may implement information storage by any method or technology, and the information may be computer-readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transmyedia) such as modulated data signals and carrier waves.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A data retrieval method is applied to terminal equipment, and the method comprises the following steps:
sending request information to a server;
receiving a first retrieval algorithm model sent by the server and an index data template corresponding to the first retrieval algorithm model;
creating a retrieval interface corresponding to the first retrieval algorithm model, and mapping data in a data set to be retrieved according to an index data template corresponding to the first retrieval algorithm model to obtain an index data set corresponding to the first retrieval algorithm model;
receiving a retrieval request input by a user through a retrieval interface corresponding to the first retrieval algorithm model;
and acquiring and outputting a retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model.
2. The method of claim 1, further comprising:
obtaining a self-defined second retrieval algorithm model and an index data template corresponding to the second retrieval algorithm model;
and creating a retrieval interface corresponding to the second retrieval algorithm model, and mapping data in the data set to be retrieved according to the index data template corresponding to the second retrieval algorithm model to obtain an index data set corresponding to the second retrieval algorithm model.
3. The method of claim 2, further comprising:
and uploading the second retrieval algorithm model and the index data template corresponding to the second retrieval algorithm model to the server.
4. The method of claim 1, further comprising:
receiving operation of a user on a third retrieval algorithm model and/or an index data template corresponding to the third retrieval algorithm model;
and in response to the operation, modifying the model parameters of the third retrieval algorithm model and/or the index data template corresponding to the third retrieval algorithm model.
5. The method according to any one of claims 1 to 4, wherein the mapping data in the data set to be retrieved according to the index data template corresponding to the first retrieval algorithm model to obtain the index data set corresponding to the first retrieval algorithm model comprises:
acquiring data attributes required to be contained in index data corresponding to the first retrieval algorithm model according to the index data template corresponding to the first retrieval algorithm model;
generating a mapping rule for mapping the data in the data set to be retrieved to the index data corresponding to the first retrieval algorithm model according to the data attribute which is required to be contained in the index data corresponding to the first retrieval algorithm model;
and mapping the data in the data set to be retrieved according to the mapping rule to obtain an index data set corresponding to the first retrieval algorithm model.
6. A data retrieval method is applied to a server, and the method comprises the following steps:
receiving request information sent by terminal equipment;
responding to the request information, sending a first retrieval algorithm model and an index data template corresponding to the first retrieval algorithm model to the terminal device, so that the terminal device creates a retrieval interface corresponding to the first retrieval algorithm model, maps data in a data set to be retrieved according to the index data template corresponding to the first retrieval algorithm model, obtains the index data set corresponding to the first retrieval algorithm model, and obtains and outputs a retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model when receiving the retrieval request input by a user through the retrieval interface corresponding to the first retrieval algorithm model.
7. The method of claim 6, further comprising:
receiving a second retrieval algorithm model sent by the terminal equipment and an index data template corresponding to the second retrieval algorithm model;
and saving the second retrieval algorithm model and the index data template corresponding to the second retrieval algorithm model.
8. A terminal device, comprising:
a sending unit, configured to send request information to a server;
a receiving unit, configured to receive a first retrieval algorithm model sent by the server and an index data template corresponding to the first retrieval algorithm model;
the processing unit is used for creating a retrieval interface corresponding to the first retrieval algorithm model, mapping data in a data set to be retrieved according to an index data template corresponding to the first retrieval algorithm model, and acquiring an index data set corresponding to the first retrieval algorithm model;
the user input unit is used for receiving a retrieval request input by a user through a retrieval interface corresponding to the first retrieval algorithm model;
and the output unit is used for acquiring and outputting the retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model.
9. A server, comprising:
the receiving unit is used for receiving request information sent by the terminal equipment;
and the sending unit is used for responding to the request information, sending a first retrieval algorithm model and an index data template corresponding to the first retrieval algorithm model to the terminal equipment, so that the terminal equipment creates a retrieval interface corresponding to the first retrieval algorithm model, mapping data in a data set to be retrieved according to the index data template corresponding to the first retrieval algorithm model, acquiring an index data set corresponding to the first retrieval algorithm model, and acquiring and outputting a retrieval result corresponding to the retrieval request through the first retrieval algorithm model and the index data set corresponding to the first retrieval algorithm model when receiving the retrieval request input by a user through the retrieval interface corresponding to the first retrieval algorithm model.
10. An electronic device, comprising: a memory for storing a computer program and a processor; the processor is adapted to cause the electronic device, when executing the computer program, to implement the data retrieval method of any of claims 1-7.
CN202111302105.9A 2021-11-04 2021-11-04 Data retrieval method and device Pending CN114020989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111302105.9A CN114020989A (en) 2021-11-04 2021-11-04 Data retrieval method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111302105.9A CN114020989A (en) 2021-11-04 2021-11-04 Data retrieval method and device

Publications (1)

Publication Number Publication Date
CN114020989A true CN114020989A (en) 2022-02-08

Family

ID=80061002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111302105.9A Pending CN114020989A (en) 2021-11-04 2021-11-04 Data retrieval method and device

Country Status (1)

Country Link
CN (1) CN114020989A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117539837A (en) * 2024-01-10 2024-02-09 暗物智能科技(广州)有限公司 Model file storage method and device, electronic equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117539837A (en) * 2024-01-10 2024-02-09 暗物智能科技(广州)有限公司 Model file storage method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US11461388B2 (en) Generating a playlist
CN102214208B (en) Method and equipment for generating structured information entity based on non-structured text
CN105808753B (en) A kind of regionality digital resources system
CN110673839B (en) Distributed tool configuration construction generation method and system
CN110413634A (en) Data query method, system, device and computer readable storage medium
WO2022083436A1 (en) Data processing method and apparatus, and device and readable storage medium
WO2012102761A1 (en) Method and system for providing detailed information in an interactive manner in a short message service (sms) environment
KR20170054754A (en) Method and System for Providing Virtual Reality Service based on 360 Degree Image
JP7439186B2 (en) Coordinating overlapping audio queries
CN105573734A (en) Method and device for providing SDK file
US11036797B2 (en) Efficient storage and utilization of a hierarchical data set
Patroumpas et al. Exposing points of interest as linked geospatial data
CN114020989A (en) Data retrieval method and device
CN102811167A (en) Methods and apparatuses for a network based on hierarchical name structure
US11223692B2 (en) Service execution methods and apparatuses
CN110741366B (en) Coordinating parallel processing of audio queries across multiple devices
CN103403713B (en) File variant in file system
CN112035555B (en) Information display method, device and equipment
Szekely et al. Exploiting semantics of web services for geospatial data fusion
CN106294417A (en) A kind of data reordering method, device and electronic equipment
Selonen et al. Experiences in building a RESTful mixed reality web service platform
CN108228604B (en) Model construction method based on memory object, information query method and device
US20150088874A1 (en) Exposing relationships between universe objects
Hu et al. CAMO: Integration of Linked Open Data for multimedia metadata enrichment
CN113535817B (en) Feature broad table generation and service processing model training 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