CN114416781A - Data searching method and device, electronic equipment and storage medium - Google Patents

Data searching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114416781A
CN114416781A CN202210016362.4A CN202210016362A CN114416781A CN 114416781 A CN114416781 A CN 114416781A CN 202210016362 A CN202210016362 A CN 202210016362A CN 114416781 A CN114416781 A CN 114416781A
Authority
CN
China
Prior art keywords
data
search
interface
data search
engine
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
CN202210016362.4A
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.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou 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 Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202210016362.4A priority Critical patent/CN114416781A/en
Publication of CN114416781A publication Critical patent/CN114416781A/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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24549Run-time optimisation

Landscapes

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

Abstract

The embodiment of the invention discloses a data searching method, a data searching device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a data search request; determining a search engine interface corresponding to the data search request by calling a pre-configured data search interface, and transmitting the data search request to an entry parameter of the search engine interface; and after the parameters are transmitted, calling the search engine interface to search and obtain response data corresponding to the data search request, and taking the response data corresponding to the data search request as a search result. The technical scheme of the embodiment of the invention solves the technical problems that in the prior art, the data search can not be realized quickly by a user and the data search consumes a long time, realizes a faster search result and shortens the data search time.

Description

Data searching method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a data searching method and device, electronic equipment and a storage medium.
Background
At present, a data search method generally inputs different data search requests to a search engine corresponding to the data search request to search for corresponding data. However, the searching method has the technical problems that the complexity of data searching is high, the time consumption of data searching is long, and a user cannot obtain a searching result quickly.
Disclosure of Invention
In order to solve the above technical problems and overcome the disadvantages and shortcomings of the prior art, embodiments of the present invention provide a data search method, apparatus, electronic device, and storage medium, so as to achieve faster obtaining of search results, shorten the duration of data search, and further reduce the complexity of data search.
In a first aspect, an embodiment of the present invention provides a data search method, where the method includes:
acquiring a data search request;
determining a search engine interface corresponding to the data search request by calling a pre-configured data search interface, and transmitting the data search request to an entry parameter of the search engine interface;
and after the parameters are transmitted, calling the search engine interface to search and obtain response data corresponding to the data search request, and taking the response data corresponding to the data search request as a search result.
In a second aspect, an embodiment of the present invention further provides a data search apparatus, where the apparatus includes:
the request acquisition module is used for acquiring a data search request;
the request transmission module is used for determining a search engine interface corresponding to the data search request by calling a pre-configured data search interface and transmitting the data search request to an entry parameter of the search engine interface;
and the search result determining module is used for calling the search engine interface to search and obtain response data corresponding to the data search request after the parameter transmission is finished, and taking the response data corresponding to the data search request as a search result.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the processor, cause the processor to implement a data search method as provided by any of the embodiments of the invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data search method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the data search request is obtained. After the data search request is acquired, a search engine interface corresponding to the data search request can be determined by calling a pre-configured data search interface, and the data search request is transmitted to an entry parameter of the search engine interface. After the parameters are transferred, the search engine interface is called to search and obtain response data corresponding to the data search request, and the response data corresponding to the data search request is used as a search result, so that the technical problems that a user cannot quickly obtain the search result, the data search consumes long time and the data search is high in complexity in the conventional data search method are solved, the search result is obtained more quickly, and the technical effects of shortening the data search time and reducing the data search complexity are achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flow chart of a data searching method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a data searching method according to a second embodiment of the present invention;
FIG. 3 is a schematic flow chart of an alternative data searching method according to a third embodiment of the present invention
Fig. 4 is a schematic structural diagram of a data search apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flowchart of a data searching method according to an embodiment of the present invention, where the present embodiment is applicable to a case of searching data, and the method may be executed by a data searching apparatus, and the data searching apparatus may be implemented in a software and/or hardware manner, and may be integrated in an electronic device such as a computer or a server.
As shown in fig. 1, the method of the present embodiment includes:
and S110, acquiring a data search request.
The data search request can be understood as a request for data search. Alternatively, the data search request may be a search request generated based on a search keyword. Optionally, the data search request may carry at least one search keyword.
Specifically, after detecting that the data search request is input by the user, the data search request input by the user may be acquired, or after detecting that the data search request is generated, the generated data search request may be acquired. The data search request may be generated according to a search keyword, or may be generated based on a data search instruction input by a user, or may be generated according to a data search trigger operation of the user.
S120, determining a search engine interface corresponding to the data search request by calling a pre-configured data search interface, and transmitting the data search request to an entry parameter of the search engine interface.
The data search interface may be used to determine a search engine interface corresponding to the data search request. A search engine interface may be understood as an interface to a data search engine. Alternatively, the search engine interface may be a full-text search engine, such as an Elasticsearch engine, an enterprise-level search application server search engine (Solr search engine), or the like. The entry parameters of the search engine interface may be understood as form parameters of the data search engine interface.
Specifically, after the data search request is acquired, the data search request can be input to the preconfigured data search interface by calling the preconfigured data search interface. After the data search request is input to the data search interface, the data search request may be parsed. A search engine interface corresponding to the data search request may then be determined. After determining the search engine interface, the data search request may be passed as actual parameters to the form parameters of the search engine interface.
The method has the technical problems that the existing search application for providing a plurality of different search engines has a large amount of redundant codes, and the maintenance of the subsequent search application is difficult. In the embodiment of the invention, the search engine interface corresponding to the data search request can be determined through the pre-configured data search interface, and the data search request can be sent to the search engine interface corresponding to the data search request, so that the processing benefit can be realized by reducing the complexity of the existing data search and avoiding the problem that the existing search application providing a plurality of different search engines can only perform the data search by developing a large amount of codes.
And S130, after the parameter transmission is finished, searching to obtain response data corresponding to the data search request by calling a search engine interface, and taking the response data corresponding to the data search request as a search result.
Wherein, the response data can be understood as data searched based on the data search request. The number of response data may be one, two, or more than two.
Specifically, after the form parameter received by the search engine receives the data search request, the search engine interface may be invoked. And then the input data search request can be searched through the search engine interface. Thus, data corresponding to the data search request can be obtained, and the obtained data corresponding to the data search request is used as response data. And the obtained response data can be used as a search result.
Optionally, the search keyword carried in the data search request may be searched for the input data search request through the search engine interface in the following manner:
after the data search request is input to the search engine interface, the input data search request can be analyzed through the search engine interface, and then search keywords carried by the data search request can be determined. So that data search can be performed based on the search keyword.
Optionally, after the response data corresponding to the data search request is obtained, format processing may be performed on the format of the response data corresponding to the data search request obtained through the search, and correspondingly, the response data corresponding to the data search request is used as the search result, which can be understood as that the response data after the format processing is used as the search result.
Specifically, after the response data corresponding to the data search request is obtained, the data format of the response data may be determined. After the data format of the response data is determined, the data format of the response data may be converted into a preset standard data format based on the preset standard data format. And response data in a standard data format can be used as a search result. The preset standard data format may be understood as a preset data format meeting the requirement. The specific format of the preset standard data format can be set according to actual requirements.
In the embodiment of the invention, the data format of the response data is converted into the preset standard data format, so that the user experience can be improved.
Further, format processing is carried out on the format of the response data corresponding to the data search request obtained by searching in the following way:
and carrying out format processing on the format of the response data corresponding to the data search request obtained by searching through a predefined data format processing method.
The data format processing method may be a predefined method, and may be used to process the data format of the response data.
Specifically, a method for processing the data format of the response data is defined in advance. And processing the data format of the response data by calling a predefined method for processing the data grid of the data format of the response data.
According to the technical scheme of the embodiment of the invention, the data search request is obtained. After the data search request is acquired, a search engine interface corresponding to the data search request can be determined by calling a pre-configured data search interface, and the data search request is transmitted to an entry parameter of the search engine interface. After the parameters are transferred, the search engine interface is called to search and obtain response data corresponding to the data search request, and the response data corresponding to the data search request is used as a search result, so that the technical problems that a user cannot quickly obtain the search result and the data search consumes a long time in the conventional data search method are solved, the search result can be quickly obtained, and the technical effect of shortening the data search time is achieved.
Example two
Fig. 2 is a schematic flow chart of a data search method according to a second embodiment of the present invention, and on the basis of the foregoing embodiment, optionally, the data search method according to this embodiment may further include: analyzing the data search request, and determining a target engine identifier contained in the data search request; the step of determining a search engine interface corresponding to the data search request by calling a pre-configured data search interface and transmitting the data search request to an entry parameter of the search engine interface comprises the following steps: and determining a search engine interface corresponding to the target engine identifier by calling a pre-configured data search interface, and transmitting the data search request to an entry parameter of the search engine interface. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method of the embodiment may specifically include:
s210, acquiring a data search request.
S220, analyzing the data search request, and determining a target engine identifier contained in the data search request.
Wherein the target engine identification can be understood as the identification of the current search engine.
Specifically, after the data search request is obtained, the data search request may be analyzed, and then an engine identifier included in the data search request may be determined. So that the engine identification contained in the data search request can be taken as the target engine identification.
Optionally, after determining the target engine identifier included in the data search request, the target engine identifier included in the data search request may be verified, so that a verification result may be obtained. After the verification result is obtained, it can thus be determined whether the target engine identification is a standard target engine identification based on the verification result. If so, an operation of determining a search engine interface corresponding to the data search request by calling a pre-configured data search interface may be performed. If not, verification information may be generated prompting that the target engine identification is not a standard target engine identification.
Wherein, the standard target engine identification can be understood as a target engine identification conforming to the standard. Whether it is a standard target engine identification is used to measure whether the target engine identification meets the standard requirements. The verification information may be information generated upon detecting that the target engine identification is not a standard target engine identification.
In the embodiment of the invention, the target engine identification in the data search request is verified, so that the correct search engine interface can be ensured to be determined based on the correct target engine identification, and the response data corresponding to the data search request can be effectively acquired based on the correct search engine interface.
Wherein the check result can be used to determine whether the target engine identifier is a standard target engine identifier. Optionally, the verification result may be that the target engine identification is a standard target engine identification or a non-standard target engine identification. The standard target engine identifier can be understood as a target engine identifier meeting the standard requirement. A non-standard target engine identification may be understood as a target engine identification that does not meet standard requirements.
Specifically, the verification result can be obtained by performing verification processing on the target engine identifier included in the data search request. When the verification result is that the target engine identifier is the standard engine identifier, the engine interface corresponding to the standard engine identifier may be determined based on the standard engine identifier, and then an operation of determining the search engine interface corresponding to the data search request by calling a pre-configured data search interface may be performed. When the verification result is that the target engine identifier is the non-standard engine identifier, verification information for prompting that the target engine identifier is the non-standard target engine identifier can be generated based on the non-standard engine identifier.
Optionally, the target engine identifier included in the data search request is verified in the following manner:
a method for verifying the target engine identification is predefined. And verifying the target engine identifier by calling a method which is predefined and used for verifying the target engine identifier.
The entry parameter that defines the method for verifying the target engine identifier in advance may include a form parameter of the target engine identifier.
Specifically, the target engine identifier is passed as an actual parameter to an entry parameter of a predefined method for verifying the target engine identifier, that is, the target engine identifier is passed as an actual parameter to a form parameter of a predefined method for verifying the target engine identifier. After the parameter transmission is completed, the target engine identifier may be verified by executing a predefined method for verifying the target engine identifier.
And S230, determining a search engine interface corresponding to the target engine identifier by calling a pre-configured data search interface, and transmitting the data search request to an entry parameter of the search engine interface.
The preconfigured data search interface may be an interface configured based on a correspondence between the target engine identifier and the search engine interface.
Specifically, after the target engine identifier included in the data search request is determined, a search engine interface corresponding to the target engine identifier may be determined by calling a pre-configured data search interface. And after determining the search engine interface corresponding to the target engine identifier, transmitting the data search request as an actual parameter to the form parameter of the search engine interface corresponding to the target engine identifier.
Optionally, how to configure the data search interface is described by the following steps:
step one, receiving an interface configuration instruction which is input by a user and used for configuring a data search interface.
The interface configuration instructions may be used to configure the data search interface. The interface configuration instructions may include, but are not limited to, click, double click, long press or slide type operations. For example, a control for configuring the data search interface is provided on the interface configuration interface, and the configuration instruction may be an operation received on the control.
And step two, responding to the interface configuration instruction, and displaying a configuration interface which corresponds to the interface configuration instruction and is used for configuring the data search interface.
The configuration interface may be configured to receive configuration data for configuring the data interface, where the configuration data may be a correspondence between the search engine interface and the data search request. Optionally, the search engine interface corresponds to an engine identifier carried in the data search request.
Specifically, after receiving the interface configuration instruction, responding to the interface configuration instruction may be understood as performing response processing on the interface configuration instruction. After the interface configuration instruction is processed in response, a configuration interface corresponding to the interface configuration instruction and used for configuring the data search interface can be determined. After the configuration interface is determined, the configuration interface may be displayed so that configuration data input by a user for the data search interface may be received, that is, a correspondence between a data search request input by the user and the search engine interface may be received.
In the embodiment of the invention, the corresponding relation between the data search request input by the user and the search engine interface is received by the following modes:
and constructing a database statement by calling a corresponding relation between an engine identifier carried in the data search request and a search engine interface in advance. And may further receive a correspondence between the user input data search request and the search engine interface. In the embodiment of the invention, the corresponding relation between the data search request input by the user and the search engine interface can be received more quickly by calling the database statement which is constructed in advance based on the corresponding relation between the engine identifier carried in the data search request and the search engine interface.
And thirdly, receiving at least two engine identifications input by a user based on the configuration interface and a search engine interface corresponding to each engine identification, and configuring the data search interface based on the at least two engine identifications and the search engine interface corresponding to each engine identification.
Specifically, in practical application, the number of engine identifiers that need to be input in the configuration interface is often large, and each engine identifier input in the configuration interface by a user and a search engine interface corresponding to each engine identifier are received. The data search interface, in turn, may be configured based on each engine identification and the search engine interface corresponding to each engine identification.
It should be noted that the embodiment of the present invention is applicable to a case where a user inputs an engine identifier and a search engine interface corresponding to the engine identifier based on a configuration interface, and further configures data search reception based on the engine identifier and the search engine interface corresponding to the engine identifier.
And S240, after the parameter transmission is finished, searching to obtain response data corresponding to the data search request by calling a search engine interface, and taking the response data corresponding to the data search request as a search result.
According to the technical scheme of the embodiment of the invention, the target engine identifier contained in the data search request can be determined by analyzing the data search request. After the target engine identifier is determined, a search engine interface corresponding to the target engine identifier can be determined by calling a pre-configured data search interface. After determining a search engine interface, the data search request may be passed to an entry parameter of the search engine interface. After the parameter transmission is completed, the search engine interface can be called to search and obtain the response data corresponding to the data search request, and the response data corresponding to the data search request is used as a search result, so that the technical effect of searching the data more quickly and effectively is realized.
EXAMPLE III
The third embodiment of the present invention provides an alternative embodiment of a data search method, and specific implementation manners thereof may be found in the following embodiments. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
Referring to fig. 3, the method of the present embodiment specifically includes the following steps:
s410, obtaining user query.
Wherein a user query may be understood as a data search request. Wherein the user query carries a cluster identifier. Wherein the cluster identification can be understood as a target engine identification.
And S420, determining the cluster where the user queries through the interface cluster configuration information.
The interface cluster configuration information may be understood as a preconfigured data search interface. A cluster may be understood as a cluster to which a user query corresponds, i.e., a search engine interface to which a data search request corresponds.
Specifically, after the user query is obtained, the cluster corresponding to the cluster identifier carried in the user query can be determined through the interface cluster configuration information.
Optionally, the interface cluster configuration information is configured through the following steps:
step one, receiving the operation of a user on a control applying for a new interface.
The operation on the application new interface control can be understood as an interface configuration instruction which is input by a user and used for configuring the data search interface.
And step two, responding to the operation of the user on the application new interface control, and displaying a search platform interface application interface corresponding to the operation of the user on the application new interface control.
The search platform interface application interface can be understood as a configuration interface for configuring the data search interface. Displaying the search platform interface application interface corresponding to the operation of the user on the application new interface control may be understood as displaying a configuration interface corresponding to the interface configuration instruction for configuring the data search interface.
And step three, receiving interface configuration information input by a user based on the search platform interface application interface, and configuring interface cluster configuration information based on the interface configuration information input by the user.
The interface configuration information may include at least two engine identifications and a search engine interface corresponding to each engine identification. Configuring the interface cluster configuration information based on the interface configuration information input by the user may be understood as configuring the data search interface based on at least two engine identifiers and a search engine interface corresponding to each engine identifier.
S430, transmitting the user query to the cluster, and searching to obtain a response parameter corresponding to the user query through a cluster query method of the cluster.
Wherein passing the user query to the cluster may be understood as passing the user query to an entry parameter of the cluster, i.e., passing the data search request to an entry parameter of the search engine interface. The response data may be understood as a response parameter.
And S340, analyzing the response parameters, packaging the analyzed response parameters, and taking the packaged data as a search result.
The response parameters are analyzed, the analyzed response parameters are packaged, and the packaged data can be understood as the response parameters are formatted.
According to the technical scheme of the embodiment of the invention, the user query is obtained. After the user query is acquired, the cluster where the user query is located can be determined through the interface cluster configuration information. After the cluster where the user query is located is determined, the user query can be transmitted to the cluster, so that the response parameter corresponding to the user query is obtained through searching by a cluster query method of the cluster. After the response parameters corresponding to the user query are obtained, the response parameters may be analyzed. And then the analyzed response parameters can be packaged. After the encapsulation processing, the encapsulated data can be used as a search result, and the technical problem that the existing data search method is high in data search complexity is solved.
Example four
Fig. 4 is a schematic structural diagram of a data search apparatus according to a fourth embodiment of the present invention, where the data search apparatus includes: a request acquisition module 410, a request delivery module 420, and a search result determination module 430.
The request obtaining module 410 is configured to obtain a data search request; a request transfer module 420, configured to determine a search engine interface corresponding to the data search request by calling a preconfigured data search interface, and transfer the data search request to an entry parameter of the search engine interface; and the search result determining module 430 is configured to, after the parameter transmission is completed, call the search engine interface to search for response data corresponding to the data search request, and use the response data corresponding to the data search request as a search result.
According to the technical scheme of the embodiment of the invention, the data search request is acquired through the request acquisition module. And calling a pre-configured data search interface through a request transfer module, determining a search engine interface corresponding to the data search request, and transferring the data search request to an entry parameter of the search engine interface. After the parameters are transmitted, the search engine interface is called through the search result determining module to search and obtain response data corresponding to the data search request, and the response data corresponding to the data search request is used as a search result, so that the technical problems that a user cannot obtain the search result quickly and the data search consumes a long time in the existing data search method are solved, the search result can be obtained more quickly, and the technical effect of shortening the data search time is achieved.
Optionally, the apparatus further comprises: the engine identifier determining module is used for analyzing the data search request and determining a target engine identifier contained in the data search request; correspondingly, the request transfer module 420 is configured to determine a search engine interface corresponding to the target engine identifier by calling a preconfigured data search interface, and transfer the data search request to an entry parameter of the search engine interface.
Optionally, the apparatus further comprises: the data search interface configuration module is used for receiving an interface configuration instruction which is input by a user and is used for configuring the data search interface; responding to the interface configuration instruction, and displaying a configuration interface which corresponds to the interface configuration instruction and is used for configuring a data search interface; and receiving at least two engine identifications input by a user based on the configuration interface and a search engine interface corresponding to each engine identification, and configuring a data search interface based on the at least two engine identifications and the search engine interface corresponding to each engine identification.
Optionally, after determining the target engine identifier included in the data search request, the apparatus further includes: the engine identifier checking module is used for checking a target engine identifier contained in the data search request and determining whether the target engine identifier is a standard target engine identifier; if so, executing the operation of determining the search engine interface corresponding to the data search request by calling a pre-configured data search interface.
Optionally, the apparatus further comprises: and the verification information generating module is used for generating verification information for prompting that the target engine identifier is not the standard target engine identifier if the target engine identifier is not the standard target engine identifier.
Optionally, the apparatus further comprises: the response data format processing module is used for carrying out format processing on the format of the response data corresponding to the data search request obtained by the search; accordingly, the search result determining module 430 is configured to use the response data after format processing as the search result.
Optionally, the response data format processing module is configured to perform format processing on a format of response data obtained by the search and corresponding to the data search request through a predefined data format processing method.
The device can execute the data search method provided by any embodiment of the invention, and has the corresponding functional module and the beneficial effect of executing the data search method.
It should be noted that, the units and modules included in the data search apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing any of the embodiments of the present invention. The electronic device 12 shown in fig. 5 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention. The device 12 is typically an electronic device that undertakes the processing of configuration information.
As shown in FIG. 5, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that couples the various components (including the memory 28 and the processing unit 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer-readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer device readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown, but commonly referred to as a "hard drive"). Although not shown, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product 40, with program product 40 having a set of program modules 42 configured to carry out the functions of embodiments of the invention. Program product 40 may be stored, for example, in memory 28, and such program modules 42 include, but are not limited to, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, mouse, camera, etc., and display), one or more devices that enable a user to interact with electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network such as the internet) via the Network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) devices, tape drives, and data backup storage devices, to name a few.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the memory 28, for example, implementing the data search method provided by the above-described embodiment of the present invention, the method including:
acquiring a data search request; determining a search engine interface corresponding to the data search request by calling a pre-configured data search interface, and transmitting the data search request to an entry parameter of the search engine interface; and after the parameters are transmitted, calling the search engine interface to search and obtain response data corresponding to the data search request, and taking the response data corresponding to the data search request as a search result.
Of course, those skilled in the art can understand that the processor can also implement the technical solution of the data searching method provided in any embodiment of the present invention.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, and is characterized in that, for example, the data searching method provided in the foregoing embodiment of the present invention includes:
acquiring a data search request; determining a search engine interface corresponding to the data search request by calling a pre-configured data search interface, and transmitting the data search request to an entry parameter of the search engine interface; and after the parameters are transmitted, calling the search engine interface to search and obtain response data corresponding to the data search request, and taking the response data corresponding to the data search request as a search result.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of searching data, comprising:
acquiring a data search request;
determining a search engine interface corresponding to the data search request by calling a pre-configured data search interface, and transmitting the data search request to an entry parameter of the search engine interface;
and after the parameters are transmitted, calling the search engine interface to search and obtain response data corresponding to the data search request, and taking the response data corresponding to the data search request as a search result.
2. The method of claim 1, further comprising:
analyzing the data search request, and determining a target engine identifier contained in the data search request;
the step of determining a search engine interface corresponding to the data search request by calling a pre-configured data search interface and transmitting the data search request to an entry parameter of the search engine interface comprises the following steps:
and determining a search engine interface corresponding to the target engine identifier by calling a pre-configured data search interface, and transmitting the data search request to an entry parameter of the search engine interface.
3. The method of claim 2, further comprising:
receiving an interface configuration instruction which is input by a user and used for configuring a data search interface;
responding to the interface configuration instruction, and displaying a configuration interface which corresponds to the interface configuration instruction and is used for configuring a data search interface;
and receiving at least two engine identifications input by a user based on the configuration interface and a search engine interface corresponding to each engine identification, and configuring a data search interface based on the at least two engine identifications and the search engine interface corresponding to each engine identification.
4. The method of claim 2, wherein after determining the target engine identification contained in the data search request, the method further comprises:
checking a target engine identifier contained in the data search request, and determining whether the target engine identifier is a standard target engine identifier;
if so, executing the operation of determining the search engine interface corresponding to the data search request by calling a pre-configured data search interface.
5. The method of claim 4, further comprising:
if not, generating verification information for prompting that the target engine identification is not the standard target engine identification.
6. The method of claim 1, further comprising:
carrying out format processing on the format of the response data corresponding to the data search request obtained by the search;
the taking response data corresponding to the data search request as a search result includes:
and taking the response data after the format processing as a search result.
7. The method according to claim 6, wherein the formatting the format of the response data corresponding to the data search request obtained by the search includes:
and carrying out format processing on the format of the response data corresponding to the data search request obtained by the search through a predefined data format processing method.
8. A data search apparatus, comprising:
the request acquisition module is used for acquiring a data search request;
the request transmission module is used for determining a search engine interface corresponding to the data search request by calling a pre-configured data search interface and transmitting the data search request to an entry parameter of the search engine interface;
and the search result determining module is used for calling the search engine interface to search and obtain response data corresponding to the data search request after the parameter transmission is finished, and taking the response data corresponding to the data search request as a search result.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the processor, cause the processor to implement the data search method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a data search method according to any one of claims 1 to 7.
CN202210016362.4A 2022-01-07 2022-01-07 Data searching method and device, electronic equipment and storage medium Pending CN114416781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210016362.4A CN114416781A (en) 2022-01-07 2022-01-07 Data searching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210016362.4A CN114416781A (en) 2022-01-07 2022-01-07 Data searching method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114416781A true CN114416781A (en) 2022-04-29

Family

ID=81271321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210016362.4A Pending CN114416781A (en) 2022-01-07 2022-01-07 Data searching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114416781A (en)

Similar Documents

Publication Publication Date Title
CN109002510B (en) Dialogue processing method, device, equipment and medium
CN109359194B (en) Method and apparatus for predicting information categories
CN108460068B (en) Method, device, storage medium and terminal for importing and exporting report
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN111797351A (en) Page data management method and device, electronic equipment and medium
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
CN111694866A (en) Data searching and storing method, data searching system, data searching device, data searching equipment and data searching medium
CN114398179B (en) Method and device for acquiring tracking identifier, server and storage medium
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
CN113625998A (en) Request processing method and device
CN112035092A (en) Form processing method, device, equipment and readable medium
CN113792138B (en) Report generation method and device, electronic equipment and storage medium
CN116204428A (en) Test case generation method and device
CN111666201A (en) Regression testing method, device, medium and electronic equipment
CN114416781A (en) Data searching method and device, electronic equipment and storage medium
CN112379967B (en) Simulator detection method, device, equipment and medium
CN115544950A (en) Constraint file importing method, device, equipment and storage medium
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN114218219A (en) Data processing method, device, equipment and storage medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN113806556A (en) Method, device, equipment and medium for constructing knowledge graph based on power grid data
CN113761588A (en) Data verification method and device, terminal equipment and storage medium
CN112860538A (en) Method and device for performing interface regression test based on online log
CN114584616B (en) Message pushing method and device, electronic equipment and storage medium
CN111506567B (en) Cross-database cleaning method and device for data, computer equipment and medium

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