CN112487035A - Label storage and query method and device based on elastic search - Google Patents

Label storage and query method and device based on elastic search Download PDF

Info

Publication number
CN112487035A
CN112487035A CN202011397489.2A CN202011397489A CN112487035A CN 112487035 A CN112487035 A CN 112487035A CN 202011397489 A CN202011397489 A CN 202011397489A CN 112487035 A CN112487035 A CN 112487035A
Authority
CN
China
Prior art keywords
label
page
setting
tag
target
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
CN202011397489.2A
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.)
Guotai Epoint Software Co Ltd
Original Assignee
Guotai Epoint Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guotai Epoint Software Co Ltd filed Critical Guotai Epoint Software Co Ltd
Priority to CN202011397489.2A priority Critical patent/CN112487035A/en
Publication of CN112487035A publication Critical patent/CN112487035A/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/2455Query execution
    • 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/248Presentation of query results
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a label storage and query method and a device based on an elastic search, belonging to the technical field of computers, wherein the method comprises the following steps: receiving subject information set for target data through a subject creation page; receiving classification information set for a tag of the body information and an associated body of the body information through a body configuration page; receiving a tag set for the main body information through a tag setting page; configuring a generation rule of a tag through a generation rule configuration page, and storing the tag and the generation rule to an elastic search; receiving a selection operation of a target label through a data query page, and displaying a search result display page, wherein the search result in the search result display page comprises a target main body with the target label and a target association main body which is determined based on association information and is associated with the target main body; the problem of low query efficiency when directly querying the database can be solved; and the data searching efficiency is improved.

Description

Label storage and query method and device based on elastic search
Technical Field
The application relates to a label storage and query method and device based on an elastic search, and belongs to the technical field of computers.
Background
Users typically have a query requirement for data managed in each asset management system. At present, developers need to design pages according to specific service scenes and perform condition query; users can satisfy different query requirements by directly querying data from the database.
However, direct query of the database does not satisfy the requirement of retrieving data from an unused source. Moreover, the direct query of the database occupies resources of the database, and when the query data volume is large and the query conditions are complex, longer time is needed for obtaining the return data.
Disclosure of Invention
The application provides a tag storage and query method and device based on an elastic search, which can solve the problem of low query efficiency when a database is directly queried. The application provides the following technical scheme:
in a first aspect, an elastic search based tag storage and query method is provided, where the method includes:
displaying a main body newly added page according to the tag configuration requirement;
receiving main body information set for target data through the main body creation page, and triggering and displaying a main body configuration page;
receiving classification information set for the label of the main body information and an associated main body of the main body information through the main body configuration page, and triggering and displaying a label setting page;
receiving a label set for the main body information through the label setting page, and triggering and displaying a generation rule configuration page of the label;
configuring a generation rule of the tag through the generation rule configuration page, and storing the tag and the generation rule to an elastic search;
displaying a data query page according to the data query requirement, wherein the data query page displays each label in a classified manner according to the classified information of each label;
receiving selection operation of a target label through the data query page, and triggering and displaying a search result display page; the search result display page comprises search results matched with the target tags; the search result comprises a target main body with the target label and a target association main body which is determined based on the association information and is associated with the target main body.
Optionally, the search result display page includes a label modification control; after receiving the selection operation of the target tag through the data query page and triggering to display the search result display page, the method further includes:
receiving a label modification operation acting on the label modification control;
displaying the data query page again based on the tag modification operation;
acquiring a modified target label selected by a user through the data query page, and triggering and displaying an updated search result display page; the updated search result display page comprises an updated search result matched with the modified target label; the updated search result comprises an updated target subject having the modified target label and an updated target associated subject determined based on the association information to be associated with the updated target subject.
Optionally, the tag setting page includes: the label code setting control comprises a label name setting control, a main body name setting control, a label type setting control, a label value type setting control, a label code setting control and a label classification setting control; the receiving of the tag set for the body information through the tag setting page includes:
setting the name of the label based on an input operation acting on the label name setting control;
setting a subject name having the label based on an input operation acting on the subject name setting control;
setting the type of the label based on the setting operation acted on the label type setting control, wherein the type is a private type or a public type;
setting the label value type of the label based on the setting operation acted on the label value type setting control, wherein the label value type is a binary label, a multi-valued label, an aggregate label, a dynamic label or a value label;
setting the code of the label based on the input operation acted on the label code setting control;
and setting the classification of the label based on the selection operation acted on the label classification setting control, wherein the classification of the label is selected from various classification information.
Optionally, the generating a rule configuration page includes: creating a type setting control, a data source setting control, a field setting control, a data table setting control and a screening condition setting control; the configuring the generation rule of the tag through the generation rule configuration page includes:
setting the creation type of the label based on the setting operation acted on the creation type setting control, wherein the creation type is a main key type, a rule type, an SQL type, a manual type or a custom type;
setting the data source to which the label belongs based on the selection operation acted on the data source setting control;
setting a field of the label based on a selection operation acting on the field setting control;
setting the data sheet to which the label belongs based on selection operation acting on the data sheet setting control;
and setting the screening conditions of the labels based on the selection operation acted on the screening condition setting control, wherein the screening conditions comprise combination conditions when the labels are combined with other labels for searching.
Optionally, the body creation page includes a body name setting control and a body alias setting control; the receiving, by the subject creation page, subject information set for target data includes:
setting a subject name of the target data based on an input operation acting on the subject name setting control;
setting a subject alias for the target data based on an input operation acting on the subject alias setting control.
Optionally, the main body configuration page includes a category name setting control and an associated main body setting control; the receiving, by the body configuration page, classification information set on a tag of the body information and an associated body of the body information includes:
setting a label classification name corresponding to the main information based on an input operation acting on the classification name setting control to obtain the classification information;
and setting the associated body of the body information based on a selection operation acting on the associated body setting control, wherein the associated body is selected from the set body information.
Optionally, the body configuration page further includes a sort setting control, and the method further includes:
and setting the display sequence of the label classification names based on the input operation acted on the sequencing setting control.
Optionally, the displaying a data query page according to a data query requirement includes:
displaying a search main page;
and displaying the data query page based on the tag search operation acted on the search main page.
In a second aspect, an apparatus for storing and querying tags based on an elastic search is provided, the apparatus comprising:
the display unit is used for displaying the main body newly added page according to the tag configuration requirement;
the configuration unit is used for receiving main body information set for target data through the main body creation page and triggering the display unit to display a main body configuration page;
the configuration unit is further configured to receive classification information set for a tag of the body information and an associated body of the body information through the body configuration page, and trigger the display unit to display the tag setting page;
the configuration unit is further configured to receive a tag set for the body information through the tag setting page, and trigger the display unit to display a generation rule configuration page of the tag;
the configuration unit is further configured to configure the generation rule of the tag through the generation rule configuration page, and store the tag and the generation rule in an elastic search;
the display unit is further used for displaying a data query page according to the data query requirement, and the data query page displays each label in a classified manner according to the classification information of each label;
the configuration unit is further configured to receive a selection operation on a target tag through the data query page, and trigger the display unit to display a search result display page; the search result display page comprises search results matched with the target tags; the search result comprises a target main body with the target label and a target association main body which is determined based on the association information and is associated with the target main body.
The beneficial effect of this application lies in: displaying the main body newly added page according to the tag configuration requirement; receiving main body information set for target data through a main body creation page, and triggering and displaying a main body configuration page; receiving classification information set for a tag of the main information and an associated main body of the main information through a main body configuration page, and triggering and displaying the tag setting page; receiving a label set for the main body information through a label setting page, and triggering a generation rule configuration page for displaying the label; configuring a generation rule of a tag through a generation rule configuration page, and storing the tag and the generation rule to an elastic search; displaying a data query page according to the data query requirement, and displaying each label in a classified manner according to the classified information of each label on the data query page; receiving selection operation of a target label through a data query page, and triggering and displaying a search result display page; the search result display page comprises search results matched with the target tags; the search result comprises a target main body with a target label and a target association main body which is determined based on the association information and is associated with the target main body; the problem of low query efficiency when directly querying the database can be solved; the value of the tag is stored through the elastic search, and the elastic search is used for rapidly retrieving the tag without directly searching the database, so that the data searching efficiency can be improved, and the performance of the database is prevented from being influenced.
The foregoing description is only an overview of the technical solutions of the present application, and in order to make the technical solutions of the present application more clear and clear, and to implement the technical solutions according to the content of the description, the following detailed description is made with reference to the preferred embodiments of the present application and the accompanying drawings.
Drawings
FIG. 1 is a flowchart of an elastic search based tag storage and query method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a subject creation page provided by one embodiment of the present application;
FIG. 3 is a schematic diagram of a subject configuration page provided by one embodiment of the present application;
FIG. 4 is a schematic diagram of a tab settings page provided by one embodiment of the present application;
FIG. 5 is a schematic diagram of a generate rule configuration page provided by one embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a display data query page provided by one embodiment of the present application;
FIG. 7 is a diagram of a search results display page provided by an embodiment of the present application;
FIG. 8 is a block diagram of an elasticsearch based tag storage and query apparatus provided in one embodiment of the present application;
fig. 9 is a block diagram of an elastic search based tag storage and query apparatus according to an embodiment of the present application.
Detailed Description
The following detailed description of embodiments of the present application will be described in conjunction with the accompanying drawings and examples. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application.
Optionally, the application is described by taking an execution subject of each embodiment as an example of a computer device with a display function and a human-computer interaction function, where the computer device may be a desktop computer, a notebook computer, a tablet computer, a mobile phone, and the like, and the embodiment does not limit the device type of the computer device.
Fig. 1 is a flowchart of an elastic search based tag storage and query method according to an embodiment of the present application. The method at least comprises the following steps:
and step 101, displaying the main body newly added page according to the tag configuration requirement.
In one example, a computer device receives an access request to a tag configuration system, the access request including an access address and identity information; sending the access request to the tag configuration system according to the access address so that the tag configuration system returns to the main body newly added page after passing the identity information authentication; and the computer equipment displays the newly added page of the main body.
And 102, receiving the subject information set for the target data through a subject creation page, and triggering and displaying a subject configuration page.
The body creation page is used for abstracting an object to be described according to target data (or called business data) to form a body.
The principal creation page supports configuring the principal name as well as the principal alias. Referring to fig. 2, the body creation page includes a body name setting control 21 and a body alias setting control 22; receiving subject information set for target data through a subject creation page, including: setting a subject name of the target data based on an input operation acting on the subject name setting control 21; the subject alias of the target data is set based on an input operation acting on the subject alias setting control 22.
Optionally, the main body creation page further includes a save and create control, a save and close control, and a close control; when receiving a trigger operation for saving and creating a control, storing information acquired based on the main body name setting control 21 and the main body alias setting control 22, and newly creating a corresponding main body; when receiving a trigger operation for saving and closing the control, storing information acquired based on the main body name setting control 21 and the main body alias setting control 22, not executing a new addition operation, and closing a main body creation page; and when receiving the trigger operation acting on closing the control, directly closing the main body creation page without executing storage and new addition operation.
Optionally, a description input control is further included on the body creation page, and the description input control is used for a user to input description information of the body.
The main body configuration page can be automatically displayed after a user triggers 'save and create control'; or, the main body configuration page is displayed based on the access address of the main body configuration page input by the user, and the triggering display mode of the main body configuration page is not limited in this embodiment.
Step 103, receiving classification information set for the tag of the body information and an associated body of the body information through the body configuration page, and triggering and displaying the tag setting page.
And the main body configuration page supports a user to classify the tags under the main body according to business requirements. Referring to fig. 3, the body configuration page includes a category name setting control 31 and an associated body setting control 32. Wherein, receive the associated body of classification information and body information of the label setting to the body information through the body configuration page, including: setting a label classification name corresponding to the main information based on an input operation acting on the classification name setting control 31 to obtain classification information; based on a selection operation on the associated body setting control 32, an associated body of body information is set, the associated body being selected from the already set body information.
Optionally, the main configuration page further includes a save and create control, a save and close control, and a close control; when receiving a trigger operation for saving and creating a control, storing information acquired based on the classification name setting control 31 and the associated main body setting control 32, and creating a corresponding label classification; when receiving a trigger operation for saving and closing the control, storing information acquired based on the classification name setting control 31 and the associated main body setting control 32, not executing a new addition operation, and closing a main body configuration page; and when receiving the trigger operation acting on closing the control, directly closing the main body configuration page without executing storage and new addition operation.
Optionally, the body configuration page further includes a sort setting control, and the method further includes: and setting the display sequence of the label classification names based on the input operation acted on the sequencing setting control.
The tab setting page may be automatically displayed after the user triggers "save and create control"; or, the access address of the tab setting page input by the user is displayed, and the embodiment does not limit the trigger display mode of the tab setting page.
And 104, receiving the label set for the main body information through the label setting page, and triggering the generation rule configuration page for displaying the label.
The label setting page is used for the user to establish a label under the main body according to the business requirement.
Referring to fig. 4, the tab setting page includes: a label name setting control 41, a body name setting control 42, a label type setting control 43, a label value type setting control 44, a label coding setting control 45, and a label classification setting control 46. Wherein, receive the label to main part information setting through the label setting page, include: setting the name of the label based on the input operation acting on the label name setting control 41; setting a subject name of the subject having the label based on an input operation acting on the subject name setting control 42; setting the type of the tag, which is a private type or a public type, based on the setting operation that acts on the tag type setting control 43; setting a label value type of the label based on a setting operation applied to the label value type setting control 44, the label value type being a binary label, a multi-valued label, an aggregate label, a dynamic label, or a value label; setting the code of the label based on the input operation acting on the label code setting control 45; based on the selection operation performed on the label classification setting control 46, the classification of the label selected from the respective classification information is set.
Optionally, a "next" control is further set on the tag setting page, and when the user triggers the control, the computer device automatically displays the generation rule configuration page.
And 105, configuring a generation rule of the tag through the generation rule configuration page, and storing the tag and the generation rule into an elastic search.
The tag setting page supports the generation rule of the configuration tag, and then stores the tag data to the elastic search through task scheduling. Wherein the elastic search is a search server based on Lucene. It provides a distributed multi-user capability full-text search engine.
Referring to fig. 5, generating the rule configuration page includes: a create type setting control 51, a data source setting control 52, a field setting control 53, a data table setting control 54, and a filter condition setting control 55. The method for configuring the generation rule of the page configuration tag through the generation rule comprises the following steps: setting the creation type of the label based on the setting operation acting on the creation type setting control 51, wherein the creation type is a primary key type, a rule type, an SQL type, a manual type or a custom type; setting the data source to which the label belongs based on the selection operation performed on the data source setting control 52; setting a field of the tab based on a selection operation acting on the field setting control 53; setting the data table to which the label belongs based on the selection operation acting on the data table setting control 54; the filtering condition of the tag is set based on the selection operation effected on the filtering condition setting control 55, and the filtering condition includes a combination condition when the tag is searched in combination with other tags.
And 106, displaying a data query page according to the data query requirement, wherein the data query page displays each label in a classified mode according to the classified information of each label.
Optionally, the computer device displaying the data query page and the computer device displaying the main body added page are the same or different.
In one example, displaying a data query page according to data query requirements includes: displaying a search main page; and displaying the data query page based on the label search operation acted on the search main page.
Referring to fig. 6, a tag retrieval option 61 is displayed on the search main page, and a data query page 62 is displayed upon receiving a trigger operation applied to the tag retrieval option 61. The data query page 62 displays a plurality of labels 63 in a classified manner, such as: the classification is a label corresponding to basic information, a label corresponding to investment approval, and the like.
Step 107, receiving the selection operation of the target tag through the data query page, and triggering and displaying a search result display page; the search result display page comprises search results matched with the target tags; the search result comprises a target subject with a target label and a target association subject which is determined based on the association information and is associated with the target subject.
The data query page comprises a selection control for each label, and when a trigger operation on the selection control for a target label is received, the selection operation is determined to be received. The number of the target labels is one or more, the target labels are combined according to the combination condition indicated by the screening condition, and at the moment, the target main body with the target labels accords with a certain combination mode.
Referring to the search result display page shown in fig. 7, the search result display page includes a search result 71. The search result 71 includes a target subject and a target associated subject that match the target tag.
Optionally, the search results display page includes a label modification control 72. At this time, after receiving the selection operation of the target tag through the data query page and triggering to display the search result display page, the method further includes: receiving a label modification operation acting on the label modification control 72; displaying the data query page again based on the tag modification operation; acquiring a modified target label selected by a user through a data query page, and triggering and displaying an updated search result display page; the updated search result display page comprises an updated search result matched with the modified target label; the updated search result includes an updated target subject having the modified target tag and an updated target associated subject determined to be associated with the updated target subject based on the association information.
In summary, according to the method for storing and querying the tag based on the elastic search provided by the embodiment, the newly added page of the main body is displayed according to the tag configuration requirement; receiving main body information set for target data through a main body creation page, and triggering and displaying a main body configuration page; receiving classification information set for a tag of the main information and an associated main body of the main information through a main body configuration page, and triggering and displaying the tag setting page; receiving a label set for the main body information through a label setting page, and triggering a generation rule configuration page for displaying the label; configuring a generation rule of a tag through a generation rule configuration page, and storing the tag and the generation rule to an elastic search; displaying a data query page according to the data query requirement, and displaying each label in a classified manner according to the classified information of each label on the data query page; receiving selection operation of a target label through a data query page, and triggering and displaying a search result display page; the search result display page comprises search results matched with the target tags; the search result comprises a target main body with a target label and a target association main body which is determined based on the association information and is associated with the target main body; the problem of low query efficiency when directly querying the database can be solved; the value of the tag is stored through the elastic search, and the elastic search is used for rapidly retrieving the tag without directly searching the database, so that the data searching efficiency can be improved, and the performance of the database is prevented from being influenced.
Fig. 8 is a block diagram of an elastic search based tag storage and query apparatus according to an embodiment of the present application. The device at least comprises the following modules:
the display unit 810 is configured to display the main body added page according to the tag configuration requirement;
a configuration unit 820, configured to receive, through the body creation page, body information set for target data, and trigger the display unit 810 to display a body configuration page;
the configuration unit 820 is further configured to receive, through the main body configuration page, classification information set for a tag of the main body information and an associated main body of the main body information, and trigger the display unit 810 to display a tag setting page;
the configuration unit 820 is further configured to receive a tag set for the main body information through the tag setting page, and trigger the display unit 810 to display a generation rule configuration page of the tag;
the configuration unit 820 is further configured to configure the generation rule of the tag through the generation rule configuration page, and store the tag and the generation rule in an elastic search;
the display unit 810 is further configured to display a data query page according to a data query requirement, where the data query page displays each tag in a classified manner according to the classification information of each tag;
the configuration unit 820 is further configured to receive a selection operation on a target tag through the data query page, and trigger the display unit 810 to display a search result display page; the search result display page comprises search results matched with the target tags; the search result comprises a target main body with the target label and a target association main body which is determined based on the association information and is associated with the target main body.
For relevant details reference is made to the above-described method embodiments.
It should be noted that: the foregoing embodiments of the tag storage and query apparatus based on an elastic search provided in the foregoing embodiments are only illustrated by the above-mentioned division of the functional modules when performing tag storage and query based on an elastic search, and in practical applications, the above-mentioned function allocation may be completed by different functional modules according to needs, that is, the internal structure of the tag storage and query apparatus based on an elastic search is divided into different functional modules to complete all or part of the above-mentioned functions. In addition, the tag storage and query device based on the elastic search provided by the above embodiment and the tag storage and query method embodiment based on the elastic search belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and is not described herein again.
Fig. 9 is a block diagram of an elastic search based tag storage and query apparatus according to an embodiment of the present application. The apparatus comprises at least a processor 901 and a memory 902.
Processor 901 may include one or more processing cores such as: 4 core processors, 8 core processors, etc. The processor 901 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 901 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 902 is used to store at least one instruction for execution by processor 901 to implement the elastic search based tag storage and query method provided by method embodiments herein.
In some embodiments, the elastic search based tag storing and querying device may further include: a peripheral interface and at least one peripheral. The processor 901, memory 902 and peripheral interfaces may be connected by buses or signal lines. Each peripheral may be connected to the peripheral interface via a bus, signal line, or circuit board. Illustratively, peripheral devices include, but are not limited to: radio frequency circuit, touch display screen, audio circuit, power supply, etc.
Of course, the elastic search based tag storage and query apparatus may also include fewer or more components, which is not limited by the embodiment.
Optionally, the present application further provides a computer-readable storage medium, in which a program is stored, and the program is loaded and executed by a processor to implement the method for storing and querying the tags based on the elastic search in the above method embodiments.
Optionally, the present application further provides a computer product, which includes a computer-readable storage medium, in which a program is stored, and the program is loaded and executed by a processor to implement the method for storing and querying the label based on the elasticsearch of the above-mentioned method embodiment.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. An elastic search based tag storage and query method, the method comprising:
displaying a main body newly added page according to the tag configuration requirement;
receiving main body information set for target data through the main body creation page, and triggering and displaying a main body configuration page;
receiving classification information set for the label of the main body information and an associated main body of the main body information through the main body configuration page, and triggering and displaying a label setting page;
receiving a label set for the main body information through the label setting page, and triggering and displaying a generation rule configuration page of the label;
configuring a generation rule of the tag through the generation rule configuration page, and storing the tag and the generation rule to an elastic search;
displaying a data query page according to the data query requirement, wherein the data query page displays each label in a classified manner according to the classified information of each label;
receiving selection operation of a target label through the data query page, and triggering and displaying a search result display page; the search result display page comprises search results matched with the target tags; the search result comprises a target main body with the target label and a target association main body which is determined based on the association information and is associated with the target main body.
2. The method of claim 1, wherein the search result display page includes a label modification control; after receiving the selection operation of the target tag through the data query page and triggering to display the search result display page, the method further includes:
receiving a label modification operation acting on the label modification control;
displaying the data query page again based on the tag modification operation;
acquiring a modified target label selected by a user through the data query page, and triggering and displaying an updated search result display page; the updated search result display page comprises an updated search result matched with the modified target label; the updated search result comprises an updated target subject having the modified target label and an updated target associated subject determined based on the association information to be associated with the updated target subject.
3. The method of claim 1, wherein the tab settings page comprises: the label code setting control comprises a label name setting control, a main body name setting control, a label type setting control, a label value type setting control, a label code setting control and a label classification setting control; the receiving of the tag set for the body information through the tag setting page includes:
setting the name of the label based on an input operation acting on the label name setting control;
setting a subject name having the label based on an input operation acting on the subject name setting control;
setting the type of the label based on the setting operation acted on the label type setting control, wherein the type is a private type or a public type;
setting the label value type of the label based on the setting operation acted on the label value type setting control, wherein the label value type is a binary label, a multi-valued label, an aggregate label, a dynamic label or a value label;
setting the code of the label based on the input operation acted on the label code setting control;
and setting the classification of the label based on the selection operation acted on the label classification setting control, wherein the classification of the label is selected from various classification information.
4. The method of claim 1, wherein generating a rule configuration page comprises: creating a type setting control, a data source setting control, a field setting control, a data table setting control and a screening condition setting control; the configuring the generation rule of the tag through the generation rule configuration page includes:
setting the creation type of the label based on the setting operation acted on the creation type setting control, wherein the creation type is a main key type, a rule type, an SQL type, a manual type or a custom type;
setting the data source to which the label belongs based on the selection operation acted on the data source setting control;
setting a field of the label based on a selection operation acting on the field setting control;
setting the data sheet to which the label belongs based on selection operation acting on the data sheet setting control;
and setting the screening conditions of the labels based on the selection operation acted on the screening condition setting control, wherein the screening conditions comprise combination conditions when the labels are combined with other labels for searching.
5. The method of claim 1, wherein the subject creation page includes a subject name setup control and a subject alias setup control; the receiving, by the subject creation page, subject information set for target data includes:
setting a subject name of the target data based on an input operation acting on the subject name setting control;
setting a subject alias for the target data based on an input operation acting on the subject alias setting control.
6. The method of claim 1, wherein the body configuration page includes a category name setting control, an associated body setting control; the receiving, by the body configuration page, classification information set on a tag of the body information and an associated body of the body information includes:
setting a label classification name corresponding to the main information based on an input operation acting on the classification name setting control to obtain the classification information;
and setting the associated body of the body information based on a selection operation acting on the associated body setting control, wherein the associated body is selected from the set body information.
7. The method of claim 6, wherein the body configuration page further comprises a sort settings control, the method further comprising:
and setting the display sequence of the label classification names based on the input operation acted on the sequencing setting control.
8. The method of claim 1, wherein displaying the data query page according to the data query requirement comprises:
displaying a search main page;
and displaying the data query page based on the tag search operation acted on the search main page.
9. An elastic search based tag storage and query apparatus, the apparatus comprising:
the display unit is used for displaying the main body newly added page according to the tag configuration requirement;
the configuration unit is used for receiving main body information set for target data through the main body creation page and triggering the display unit to display a main body configuration page;
the configuration unit is further configured to receive classification information set for a tag of the body information and an associated body of the body information through the body configuration page, and trigger the display unit to display the tag setting page;
the configuration unit is further configured to receive a tag set for the body information through the tag setting page, and trigger the display unit to display a generation rule configuration page of the tag;
the configuration unit is further configured to configure the generation rule of the tag through the generation rule configuration page, and store the tag and the generation rule in an elastic search;
the display unit is further used for displaying a data query page according to the data query requirement, and the data query page displays each label in a classified manner according to the classification information of each label;
the configuration unit is further configured to receive a selection operation on a target tag through the data query page, and trigger the display unit to display a search result display page; the search result display page comprises search results matched with the target tags; the search result comprises a target main body with the target label and a target association main body which is determined based on the association information and is associated with the target main body.
CN202011397489.2A 2020-12-04 2020-12-04 Label storage and query method and device based on elastic search Pending CN112487035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011397489.2A CN112487035A (en) 2020-12-04 2020-12-04 Label storage and query method and device based on elastic search

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011397489.2A CN112487035A (en) 2020-12-04 2020-12-04 Label storage and query method and device based on elastic search

Publications (1)

Publication Number Publication Date
CN112487035A true CN112487035A (en) 2021-03-12

Family

ID=74939253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011397489.2A Pending CN112487035A (en) 2020-12-04 2020-12-04 Label storage and query method and device based on elastic search

Country Status (1)

Country Link
CN (1) CN112487035A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177157A (en) * 2021-04-22 2021-07-27 深圳市酷开网络科技股份有限公司 Label separation method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110675238A (en) * 2019-10-09 2020-01-10 北京明略软件系统有限公司 Client label configuration method, system, readable storage medium and electronic equipment
CN111125566A (en) * 2019-12-11 2020-05-08 贝壳技术有限公司 Information acquisition method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110675238A (en) * 2019-10-09 2020-01-10 北京明略软件系统有限公司 Client label configuration method, system, readable storage medium and electronic equipment
CN111125566A (en) * 2019-12-11 2020-05-08 贝壳技术有限公司 Information acquisition method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177157A (en) * 2021-04-22 2021-07-27 深圳市酷开网络科技股份有限公司 Label separation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US20180107725A1 (en) Data Storage Method and Apparatus, and Data Read Method and Apparatus
CN109446197A (en) User information processing method, device, computer equipment and storage medium
US10579616B2 (en) Data search system, data search method, and program product
US20210406981A1 (en) Method and apparatus of determining display page, electronic device, and medium
CN106991179A (en) Data-erasure method, device and mobile terminal
CN113407785A (en) Data processing method and system based on distributed storage system
CN112487036A (en) Data processing method and device
CN112487035A (en) Label storage and query method and device based on elastic search
CN114640707A (en) Message asynchronous processing method and device, electronic equipment and storage medium
CN113987054A (en) Big data governance full-flow visualization method and device and storage medium
CN113687825A (en) Software module construction method, device, equipment and storage medium
US8984455B1 (en) Methods for generating schematic diagrams and apparatuses using the same
CN111221690B (en) Model determination method and device for integrated circuit design and terminal
CN112487067A (en) Method, device and storage medium for page display based on data configuration
CN111142989A (en) Object management method, device and storage medium
CN115544050A (en) Operation log recording method, device, equipment and storage medium
CN116303657A (en) Group image generation method, group image generation device, computer device, and storage medium
CN114254958A (en) Energy and carbon data report processing device and storage medium
CN113434585A (en) Resource saving method and equipment
CN112667682A (en) Data processing method, data processing device, computer equipment and storage medium
CN116339733B (en) Application page generation method, system, electronic device and medium
CN111221817B (en) Service information data storage method, device, computer equipment and storage medium
WO2024060343A1 (en) Tactile sensation effect management method and apparatus, electronic device, and medium
CN113128193A (en) Document processing method and device
CN114461790A (en) Automatic news event theme 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