CN115329150A - Method and device for generating search condition tree, electronic equipment and storage medium - Google Patents

Method and device for generating search condition tree, electronic equipment and storage medium Download PDF

Info

Publication number
CN115329150A
CN115329150A CN202211040961.6A CN202211040961A CN115329150A CN 115329150 A CN115329150 A CN 115329150A CN 202211040961 A CN202211040961 A CN 202211040961A CN 115329150 A CN115329150 A CN 115329150A
Authority
CN
China
Prior art keywords
node
condition
search
tree
condition tree
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
CN202211040961.6A
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.)
Lianren Healthcare Big Data Technology Co Ltd
Original Assignee
Lianren Healthcare Big Data 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 Lianren Healthcare Big Data Technology Co Ltd filed Critical Lianren Healthcare Big Data Technology Co Ltd
Priority to CN202211040961.6A priority Critical patent/CN115329150A/en
Publication of CN115329150A publication Critical patent/CN115329150A/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/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees
    • 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/903Querying
    • G06F16/90335Query processing
    • 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/903Querying
    • G06F16/9038Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device, electronic equipment and a storage medium for generating a search condition tree, wherein the method comprises the following steps: when detecting that an adding control corresponding to a corresponding node in a condition tree to be applied is triggered, determining whether the node comprises a condition node; if yes, adding a condition node under the node; if not, adding a logic node and a condition node under the node; and when the trigger completion control is detected, determining a target search condition tree based on the updated content corresponding to the condition tree to be applied so as to search out and feed back the target content from each data source based on the target search condition tree. Based on the technical scheme, when the user trigger control is detected, the corresponding condition is added under the corresponding node, so that the user can freely set the search tree according to the requirement, the corresponding target content is determined based on the search tree, the efficiency of obtaining the target content by the user is improved, and the search experience of the user is improved.

Description

Method and device for generating search condition tree, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a search condition tree, an electronic device, and a storage medium.
Background
With the development of computer technology, a user needs to search a large amount of data in the process of browsing information, for example, the data is classified and sorted by using a search engine, so that more comprehensive information useful for the user is obtained.
However, the existing search method often has a large number of similar search results, and the user is required to automatically filter the search results to obtain the search results which are actually required after the search is completed, so that the search process of the user is too complicated, and the use experience of the user is reduced.
Disclosure of Invention
The invention provides a method, a device, electronic equipment and a storage medium for generating a search condition tree, which are used for setting information of a trigger node by a user and searching according to the set condition tree to obtain a corresponding target file, thereby improving the efficiency of obtaining the target file and the search experience of the user.
In a first aspect, an embodiment of the present invention provides a method for generating a search condition tree, where the method includes:
when detecting that an adding control corresponding to a corresponding node in a condition tree to be applied is triggered, determining whether the node comprises a condition node or not;
if yes, adding the condition node under the node;
if not, adding a logic node and a condition node under the node;
and when the trigger completion control is detected, determining a target search condition tree based on the updated content corresponding to the condition tree to be applied, and searching out and feeding back target content from each data source based on the target search condition tree.
In a second aspect, an embodiment of the present invention further provides an apparatus for generating a search condition tree, where the apparatus includes:
the node adding module is used for determining whether the node comprises a condition node or not when detecting that an adding control corresponding to the corresponding node in the condition tree to be applied is triggered;
if yes, adding the conditional node under the node;
if not, adding a logic node and a condition node under the node;
and the target content determining module is used for determining a target searching condition tree based on the updated content corresponding to the condition tree to be applied when the trigger completion control is detected, so as to search out the target content from each data source based on the target searching condition tree and feed back the target content.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of generating a search criteria tree according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the program, when executed by a processor, implements the method for generating a search condition tree according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, when the condition tree to be applied is triggered and the adding control corresponding to the corresponding node is detected, whether the node comprises the condition node is determined; if yes, adding the conditional node under the node; and if not, adding a logic node and a condition node under the node, and when a trigger completion control is detected, determining a target search condition tree based on the updated content corresponding to the condition tree to be applied so as to search out and feed back target content from each data source based on the target search condition tree. Based on the technical scheme, when the user trigger control is detected, the corresponding condition is added under the corresponding node, so that the user can freely set the search tree according to the requirement, the corresponding target content is determined based on the search tree, the efficiency of obtaining the target content by the user is improved, and the search experience of the user is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for generating a search condition tree according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for generating a search condition tree according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a structure of a target search condition tree according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating a structure of an apparatus for generating a search condition tree according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a schematic flowchart of a method for generating a search condition tree according to an embodiment of the present invention, where this embodiment is applicable to a situation where nodes of a condition tree to be applied are set according to a requirement of a user to generate a target search condition tree.
As shown in fig. 1, the method includes:
s110, when detecting that an adding control corresponding to a corresponding node in a condition tree to be applied is triggered, determining whether the node comprises a condition node; if yes, adding the conditional node under the node; if not, adding a logic node and a condition node under the node;
the condition tree to be applied may be a search condition tree set by a user, and the user may set a node in the condition tree to be applied according to a requirement, so as to obtain a search condition tree that matches the requirement of the user. The node may be understood as a node that needs to be set by a user in the condition tree to be applied, the node may be each element in the condition tree to be applied, and the user may set the content in each node according to the requirement. The adding control can be a control corresponding to the node, and after the user triggers the adding control corresponding to the node, a corresponding editing interface can be popped up for the user, so that the user can set the content of the node based on the editing interface. A condition node may be understood as a node for inputting condition information. Accordingly, a logical node may be understood as a node that requires a user to add logical information.
Specifically, when it is detected that a user triggers an adding control corresponding to a node in a condition tree to be applied, whether a condition node exists in a current node or not is determined, if the condition node exists, a condition node is newly added in the current node, and if the condition node does not exist in the current node, a condition node and a logic node are added to the current node. It should be noted that, when a user constructs a condition tree, different search conditions may be set for nodes according to requirements, and the user may set multiple conditions in the same node, that is, if a condition node does not exist in a current node, a condition node and a logic node need to be added, and if a condition node already exists in the current node, a condition node is newly added in the current node.
On the basis of the above technical solution, before the determining whether the node includes a conditional node, the method further includes: and presetting a node type corresponding to the condition tree to be applied, so as to determine whether to add a node according to the node type of the corresponding node when the triggering operation of the corresponding node in the condition tree to be applied is detected.
The node type may be a preset node type, and the node type may include a conditional node and a logical node.
Specifically, before a user triggers an add control corresponding to a corresponding node in a condition tree to be applied, all nodes in the condition tree to be applied currently can be traversed, whether a condition node exists in each node in the condition tree to be applied currently is determined based on a preset node type, and then after a trigger operation is detected, how to add the node is determined according to the node type of the node. For example, the condition node condition information may be obtained by traversing each node in the condition tree to be currently applied, and analyzing the condition node condition information of each node, and if the condition node condition exists in the current node, the condition node condition information may be recorded in a manner of changing the state value of the current node.
On the basis of the above technical solution, after the conditional node is added under the node, the method further includes: and configuring node attributes for the conditional node and/or the logic node.
Wherein, the node attribute comprises a node retrieval field and/or a node operation relation character. The node search field may be a search field input by a user in a condition node, and it may be understood that, in order to meet a search requirement of the user for specific content, the node search field may also be a specific field value, and may further include a search operation relation indicator with the condition node, and a node attribute of a corresponding logical node may be used to set a logical condition of the search, for example, a final search dimension is determined by setting a search dimension of the logical node and the logical relation indicator.
Specifically, after adding the condition node under the current node, a corresponding node attribute setting area may be popped up for the user, and the user may configure the attribute of the node in the node attribute setting area. For example, the node relation operator may be a relation prefix greater than, equal to, less than, or the like, and the user may select from preset relation operators according to the requirement. The node search field may be field information input by the user in a text box of the node attribute setting area, for example, if the user needs to query the hospitalization information of the bed a, the relevant information of the bed a may be input in the text box, and the hospitalization information of the bed a is obtained by querying according to the relevant information input by the user.
And S120, when the trigger completion control is detected, determining a target search condition tree based on the updated content corresponding to the condition tree to be applied, and searching out and feeding back target content from each data source based on the target search condition tree.
The completion control can be a control displayed at a preset position behind the condition node, and a user can trigger the completion control to send out completion instruction information. The target search condition tree may be understood as a condition tree constructed based on the logical nodes and the condition nodes added by the user. The data source may be a database for storing data, and it should be noted that the data may be stored in a preset database, such as a relational database, a network database, a hierarchical database, and the like. The target content may be understood as search content corresponding to the target search condition tree.
Specifically, after the user completes setting the nodes in the condition tree to be applied, the user can send corresponding instruction information by triggering a completion control arranged in the condition node, after the instruction information is received, a final target search condition tree is determined based on the node information which is set and completed by the user in the condition tree to be applied, search content matched with the target search condition tree is searched from a database based on the target search condition tree, and the search content is used as target content to be fed back. It should be noted that, in order to reduce the time consumed by the search, the user may specify the database to be searched before the search is performed, that is, in order to avoid searching meaningless data, the user may set a default database, and further, when the search is performed based on the target search condition tree, only the default database may be searched, and other databases are ignored, it is understood that the number of the default databases may be one or more.
On the basis of the technical scheme, the method further comprises the following steps: and determining at least one search result based on the target search condition tree, and determining target content corresponding to the search result.
The search result may be a search result determined based on the target search condition tree, and it may be understood that the target search condition tree may have multiple branches, and after the target search condition tree is constructed, the corresponding search result may be determined for different branches.
Specifically, corresponding search results are determined according to different branches of the target search condition tree, and corresponding target content is determined based on the search results. For example, different branches of the target search condition tree may be sorted to obtain corresponding sequence identifiers, different branches are searched according to the sequence of the branches to obtain corresponding search results, and then after the search results are obtained, target content corresponding to different branches may be determined according to the sequence identifiers.
It can be understood that, after the target content is obtained, the target content is also displayed on a display interface of the client.
The client may be a terminal device used by a user, such as a tablet computer, a mobile phone, a PC, and the like. The display interface can be understood as an operation interface of the current device.
Specifically, after the target content is obtained, the target content may be displayed on a display interface of the client, so that the user may obtain the target content corresponding to the target search condition tree. For example, the corresponding target content may be displayed for different branches of the target search condition tree, that is, different branches correspond to different target content, or the target content corresponding to the nodes may be sequentially displayed for the user according to the node sequence based on the search process in the search process.
When detecting that an adding control corresponding to a corresponding node in a condition tree to be applied is triggered, determining whether the node comprises a condition node; if yes, adding the conditional node under the node; and if not, adding a logic node and a condition node under the node, and when a trigger completion control is detected, determining a target search condition tree based on the updated content corresponding to the condition tree to be applied so as to search out and feed back target content from each data source based on the target search condition tree. Based on the technical scheme, when the user trigger control is detected, the corresponding condition is added under the corresponding node, so that the user can freely set the search tree according to the requirement, the corresponding target content is determined based on the search tree, the efficiency of obtaining the target content by the user is improved, and the search experience of the user is improved.
Example two
Fig. 2 is a flowchart of a method for generating a search condition tree according to an embodiment of the present invention. On the basis of the above embodiments, the present embodiment further optimizes the method for generating the search condition tree. Correspondingly, as shown in fig. 2, the method of the embodiment specifically includes:
clicking an adding control: specifically, the adding control on the starting node or the condition node of the tree structure is clicked, it needs to be explained that, when the search tree is created, the user can directly click the adding control on the root node, and if a node needs to be added under the condition node, the adding control corresponding to the condition node can be clicked, that is, the user can trigger the adding controls at different positions according to the requirements to add corresponding nodes or information to the condition tree. As shown in fig. 3, at the corresponding position of the different node, a "+" control is displayed for the user, and the user can add a new condition node under the current node by clicking the "+" control.
Judging the current node state: specifically, whether a conditional node already exists under the current node is judged, if the conditional node does not exist under the current node, only one conditional node is added under the current node, and if the conditional node already exists under the current node, a conditional logic node and one conditional node are added under the node.
It should be noted that, different node addition schemes exist for different situations of a node, if a conditional node already exists in a current node, only a new conditional node needs to be added in the current node, and if a conditional node does not exist in the current node, a conditional node and a logical node for indicating a search logic need to be added in the current node.
Further, if no condition node exists in the current node, after the node is added, the values of the search field, the search operation relation symbol and the search field in the condition node need to be modified. The search field may be a search word input by a user according to a requirement. The search operation relation symbol may be understood as a notation for representing a relation between different conditions, such as a sign greater than, equal to, less than, or the like. The value of the search field may be a field value input by the user. After adding the condition node, the user can search for the attribute in the requirement free setting condition node. If the condition node exists under the current node, after the node is added, the values of a retrieval field, a retrieval operation relation symbol and a retrieval field in the condition node need to be modified, and the retrieval dimension and the logical relation symbol of the logical node need to be modified. The retrieval dimension can be the content at the time of retrieval, such as dimensions of hospitalization information, outpatient information, length of hospitalization, date of hospitalization, and the like. A logical relation symbol may be understood as a relation symbol, e.g. "and", "or", "and", that the user indicates the search logic. As shown in fig. 3, in the condition node, the user may input field information to be retrieved in the text box, and according to the user's requirement, a plurality of field information may be set and the searched information may be filtered according to the retrieval relation symbol, for example, the condition node of the uppermost branch in fig. 3 may be understood as "the number of patients whose discharge date is greater than 2183, 11 and 05 days.
Calculating the calculation result of the current condition node: and analyzing the corresponding search conditions according to the warehouse types through an analysis engine to perform retrieval, and displaying the retrieval result on the current node. A parsing engine may be understood as an engine for parsing a search criteria tree. The warehouse type can be a database type for storing data, different retrieval conditions are generated according to different data types, and then the corresponding database is retrieved according to the retrieval conditions. And in the process of retrieval, directly displaying the retrieval result of the corresponding node at the position corresponding to the current condition node.
According to the technical scheme provided by the embodiment, the retrieval result of the current node is directly displayed at the position corresponding to the current node in the retrieval process, so that the user can quickly obtain information in the retrieval process, the condition tree can be quickly corrected when the retrieval is wrong, the user can observe the searching process more intuitively, and the use experience of the user is improved.
Recursively calculating a calculation result of the root node: and recursively calculating the result edges of the root nodes by using the calculation mode of the conditional nodes and displaying the result edges on the nodes. Specifically, after the retrieval results of the condition nodes are obtained, the retrieval results corresponding to all the condition nodes may be calculated in a recursive manner, and a final target result is obtained and displayed on the root node. As shown in FIG. 3, there is a corresponding result display area in front of each node, and "2992" of the uppermost branch in FIG. 3 represents "2992 people are present in the number of patients whose date of discharge is greater than 2183, day 11 and day 05".
When detecting that an adding control corresponding to a corresponding node in a condition tree to be applied is triggered, determining whether the node comprises a condition node; if yes, adding the conditional node under the node; and if not, adding a logic node and a condition node under the node, and when a trigger completion control is detected, determining a target search condition tree based on the updated content corresponding to the condition tree to be applied so as to search out and feed back target content from each data source based on the target search condition tree. Based on the technical scheme, when the user trigger control is detected, the corresponding condition is added under the corresponding node, so that the user can freely set the search tree according to the requirement, the corresponding target content is determined based on the search tree, the efficiency of obtaining the target content by the user is improved, and the search experience of the user is improved.
EXAMPLE III
Fig. 4 is a block diagram of an apparatus for generating a search condition tree according to an embodiment of the present invention. The device includes: a node adding module 410 and a target content determining module.
A node adding module 410, configured to determine whether a node includes a conditional node when detecting that an adding control corresponding to a corresponding node in a condition tree to be applied is triggered;
if yes, adding the conditional node under the node;
if not, adding a logic node and a condition node under the node;
and the target content determining module 420 is configured to determine a target search condition tree based on the updated content corresponding to the condition tree to be applied when the trigger completion control is detected, so as to search out and feed back target content from each data source based on the target search condition tree.
On the basis of the above technical solution, the apparatus further includes:
and the node type setting module is used for presetting the node type corresponding to the condition tree to be applied so as to determine whether to add the node according to the node type of the corresponding node when the triggering operation of the corresponding node in the condition tree to be applied is detected.
On the basis of the above technical solution, the node adding module includes:
a node attribute configuration unit, configured to configure node attributes for the conditional node and/or the logical node; wherein, the node attribute comprises a node retrieval field and/or a node operation relation character.
On the basis of the above technical solution, the apparatus further includes:
and the target content determining module is used for determining at least one search result based on the target search condition tree and determining target content corresponding to the search result.
On the basis of the above technical solution, the target content determining module includes:
and the display unit is used for displaying the target content on a display interface of the client.
When detecting that an adding control corresponding to a corresponding node in a condition tree to be applied is triggered, determining whether the node comprises a condition node; if yes, adding the conditional node under the node; and if not, adding a logic node and a condition node under the node, and when a trigger completion control is detected, determining a target search condition tree based on the updated content corresponding to the condition tree to be applied so as to search out and feed back target content from each data source based on the target search condition tree. Based on the technical scheme, when the user trigger control is detected, the corresponding condition is added under the corresponding node, so that the user can freely set the search tree according to the requirement, the corresponding target content is determined based on the search tree, the efficiency of obtaining the target content by the user is improved, and the search experience of the user is improved.
The device for generating the search condition tree provided by the embodiment of the invention can execute the method for generating the search condition tree provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; 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 present invention.
Example four
FIG. 5 illustrates a schematic diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data necessary for the operation of the electronic apparatus 10 may also be stored. The processor 11, the ROM12, and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the method of generating a search criteria tree.
In some embodiments, the data processing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into the RAM13 and executed by the processor 11, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the generating of the search condition tree by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of generating a search criteria tree, comprising:
when detecting that an adding control corresponding to a corresponding node in a condition tree to be applied is triggered, determining whether the node comprises a condition node or not;
if yes, adding the condition node under the node;
if not, adding a logic node and a condition node under the node;
and when the trigger completion control is detected, determining a target search condition tree based on the updated content corresponding to the condition tree to be applied, and searching out and feeding back target content from each data source based on the target search condition tree.
2. The method of claim 1, prior to said determining whether a conditional node is included under said node, further comprising:
and presetting a node type corresponding to the condition tree to be applied, so as to determine whether to add a node according to the node type of the corresponding node when the triggering operation of the corresponding node in the condition tree to be applied is detected.
3. The method of claim 1, after adding the conditional node under the node, further comprising:
configuring node attributes for the conditional node and/or the logical node;
wherein, the node attribute comprises a node retrieval field and/or a node operation relation character.
4. The method of claim 1, further comprising:
and determining at least one search result based on the target search condition tree, and determining target content corresponding to the search result.
5. The method of claim 1, further comprising:
and displaying the target content on a display interface of a client.
6. An apparatus for generating a search condition tree, comprising:
the node adding module is used for determining whether the nodes include condition nodes or not when detecting that the adding control corresponding to the corresponding node in the condition tree to be applied is triggered;
if yes, adding the conditional node under the node;
if not, adding a logic node and a condition node under the node;
and the target content determining module is used for determining a target searching condition tree based on the updated content corresponding to the condition tree to be applied when the trigger completion control is detected, so as to search out the target content from each data source based on the target searching condition tree and feed back the target content.
7. The apparatus of claim 6, comprising:
and the node type setting module is used for presetting the node type corresponding to the condition tree to be applied so as to determine whether to add the node according to the node type of the corresponding node when the triggering operation of the corresponding node in the condition tree to be applied is detected.
8. The apparatus of claim 6, wherein the node adding module comprises:
a node attribute configuration unit, configured to configure node attributes for the conditional node and/or the logical node;
wherein, the node attribute comprises a node retrieval field and/or a node operation relation character.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method of generating a search criteria tree of any one of claims 1-5.
10. A computer-readable storage medium storing computer instructions for causing a processor to implement the method of generating a search condition tree according to any one of claims 1 to 5 when executed.
CN202211040961.6A 2022-08-29 2022-08-29 Method and device for generating search condition tree, electronic equipment and storage medium Pending CN115329150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211040961.6A CN115329150A (en) 2022-08-29 2022-08-29 Method and device for generating search condition tree, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211040961.6A CN115329150A (en) 2022-08-29 2022-08-29 Method and device for generating search condition tree, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115329150A true CN115329150A (en) 2022-11-11

Family

ID=83928045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211040961.6A Pending CN115329150A (en) 2022-08-29 2022-08-29 Method and device for generating search condition tree, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115329150A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115906802A (en) * 2023-02-09 2023-04-04 成都数联云算科技有限公司 Method, device, equipment and medium for analyzing conditional logic data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115906802A (en) * 2023-02-09 2023-04-04 成都数联云算科技有限公司 Method, device, equipment and medium for analyzing conditional logic data

Similar Documents

Publication Publication Date Title
CN113656407B (en) Data topology generation method and device, electronic equipment and storage medium
US11442930B2 (en) Method, apparatus, device and storage medium for data aggregation
CN113868273B (en) Metadata snapshot method and device
CN115329150A (en) Method and device for generating search condition tree, electronic equipment and storage medium
CN114064925A (en) Knowledge graph construction method, data query method, device, equipment and medium
CN116028517A (en) Fusion database system and electronic equipment
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN112887426B (en) Information stream pushing method and device, electronic equipment and storage medium
CN114519153B (en) Webpage history record display method, device, equipment and storage medium
CN114168119B (en) Code file editing method, device, electronic equipment and storage medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN115328917A (en) Query method, device, equipment and storage medium
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN115544010A (en) Mapping relation determining method and device, electronic equipment and storage medium
CN115203281A (en) Information searching method and device, electronic equipment and storage medium
CN115169316A (en) Data processing template generation method and device, electronic equipment and storage medium
CN114417070A (en) Method, device and equipment for converging data authority and storage medium
CN113569144B (en) Method, device, equipment, storage medium and program product for searching promotion content
CN115408395A (en) Data processing method and device, electronic equipment and storage medium
CN115033535A (en) Search result display method, device, equipment and storage medium
CN117709902A (en) Material input method, device, equipment and medium based on BOM file
CN115203246A (en) Linked list query method and device, electronic equipment and storage medium
CN113850271A (en) Online feature library construction method and device and electronic equipment
CN115878661A (en) Query method, query device, electronic equipment and storage medium
CN114595231A (en) Database table generation method and device, electronic equipment and storage 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