A data search method, device, apparatus, and storage medium

By customizing the data search input box and combining multiple search methods, the problem of existing technologies failing to meet users' specific search needs has been solved, improving data search efficiency and result display.

CN117093763BActive Publication Date: 2026-01-02HAOYUN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311093451.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2026-01-02
Estimated Expiration
2043-08-29

AI Technical Summary

Technical Problem

Existing data search methods only support generating corresponding input box controls based on preset search fields and data types in the data interface, which cannot meet users' special search needs and results in low search efficiency.

Method used

By customizing the input boxes corresponding to the search fields, including control type, display style, data configuration, and event configuration, input boxes that meet user needs can be generated. Combined with filter components and table components and data interface binding, multiple data search methods can be performed simultaneously.

Benefits of technology

It meets users' specific search needs, improves the efficiency of data search, supports the simultaneous execution of multiple data search methods, and optimizes the display of search results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117093763B_ABST
    Figure CN117093763B_ABST
Patent Text Reader

Abstract

The application discloses a data search method, device and equipment and a storage medium, and the method comprises the following steps: responding to a first query request of a user; wherein the first query request comprises a first target search field selected by the user in a preset filter component; matching a first input box corresponding to the first target search field; obtaining a first search condition selected by the user and a first search value input in the first input box; generating a first search parameter of a corresponding data interface according to the first target search field, the first search condition and the first search value, so that the data interface performs data search according to the first search parameter, and returns a corresponding first search result to a preset table component. Through the individualized configuration of the input box corresponding to the search field, the special search requirements of the user are met, and the search efficiency of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data search, and in particular to a data search method, device, equipment and storage medium. BACKGROUND

[0002] In this new era of highly developed Internet information technology, the processing and application of huge amounts of data have become the focus of attention in many fields. For example, in the fields of e-commerce, finance, medicine and the Internet of Things, a large amount of data needs to be collected, processed and analyzed to help users quickly find information that meets their needs.

[0003] Most of the current background data searches use complex queries, which generate corresponding input box controls according to the search fields preset in the data interface and the data types of the search fields. When a user performs a data search, the user selects a search field (such as topic, abstract, full text, and author, etc.), the system generates an input box of the corresponding type according to the search field selected by the user, the user inputs a search value in the generated input box control, and then generates input parameters for the data interface search according to the search field selected by the user and the input search value. The data interface searches in the preset data source according to the input parameters.

[0004] However, the existing complex queries only support the search fields preset in the data interface and the data types corresponding to these search fields, and can only generate input box controls corresponding to the data types of the search fields. For example, if the search field preset in the data interface is of the text type, the generated input box control is only for the user to input search values of the text type. This results in the user being able to only input search values of the same type in the input box according to the data type of the search field when performing a data search, and being unable to input search values of other types in the input box, which cannot meet some special search needs of the user and results in low search efficiency of the user. SUMMARY

[0005] The present application provides a data search method, device, equipment and storage medium, which can perform individualized configuration on input boxes corresponding to search fields, meet some special search needs of the user, and improve the search efficiency of the user.

[0006] To solve the above technical problems, the present application provides a data search method, comprising:

[0007] responding to a first query request of a user; wherein the first query request comprises a first target search field selected by the user in a preset filter component;

[0008] matching a first input box corresponding to the first target search field;

[0009] obtaining a first search condition selected by the user and a first search value input in the first input box;

[0010] generating a first search parameter of a corresponding data interface according to the first target search field, the first search condition and the first search value, so that the data interface performs data search according to the first search parameter and returns a corresponding first search result to a preset table component;

[0011] The generation of the first input box corresponding to each search field includes:

[0012] In response to a data source binding operation of the user, binding the filter component and the table component for data search with a preset data interface;

[0013] In response to a first query configuration operation of the user, determining a search field to be configured in the filter component and an attribute of a first input box corresponding to the search field to be configured; wherein the attribute includes a control type, a display style, data configuration and event configuration of the input box; the event configuration includes a value change event, a single click event, a focus acquisition event and a focus loss event;

[0014] According to the attribute, performing attribute configuration on the first input box corresponding to the search field to be configured in the filter.

[0015] As a preferred solution, it further includes:

[0016] When the first input box corresponding to the first target search field cannot be matched, obtaining a data type corresponding to the first target search field, and generating a second input box corresponding to the first target search field according to the data type;

[0017] obtaining a second search condition selected by the user and a second search value input in the second input box;

[0018] generating a second search parameter of a corresponding data interface according to the first target search field, the second search condition and the second search value, so that the data interface performs data search according to the second search parameter and returns a corresponding second search result to a preset table component.

[0019] As a preferred solution, the binding of the filter component and the table component for data search with a preset data interface includes:

[0020] binding the table component for data search with a preset data interface of a list type, and taking the data interface as a data source of the table component;

[0021] Bind a filter component used for data search with the table component, and set the data source of the table component as the data source of the filter component.

[0022] As a preferred solution, after attribute configuration of the input box corresponding to the search field to be configured in the filter, the method further comprises:

[0023] In response to a table component configuration operation of the user, determine the display fields in the table component and the order of each display field; wherein the display field is a field displayed in the table component;

[0024] According to the display fields and the order of each display field, configure the display mode of the search result of the table component, so that the table component displays the search result returned by the data interface according to the display fields and the order of each display field.

[0025] As a preferred solution, the method further comprises:

[0026] In response to a second query request of the user; wherein the second query request comprises a second target search field selected by the user in the preset filter component;

[0027] Match the third search condition corresponding to the second target search field, and generate a third input box corresponding to the second target search field;

[0028] Obtain a third search value input by the user in the third input box;

[0029] According to the second target search field, the third search condition and the third search value, generate a third search parameter corresponding to the data interface, so that the data interface performs data search according to the third search parameter, and returns the corresponding third search result to the preset table component;

[0030] Wherein, the configuration of the search condition corresponding to each search field comprises:

[0031] In response to a second query configuration operation of the user, determine the search field to be configured in the filter component and the search condition corresponding to the search field to be configured; wherein the search condition comprises greater than, less than and equal to;

[0032] According to the search condition, configure the search field to be configured in the filter accordingly.

[0033] As a preferred solution, the method further comprises:

[0034] In response to a third query request of the user, generate a first data query interface; wherein the first data query interface comprises a search field selection area and a search value input area;

[0035] In response to a selection operation of a user in the search field selection area, a third target search field selected by the user is determined.

[0036] In response to an input operation of a user in the search value input area, a fourth search value input by the user is determined.

[0037] According to the third target search field, the fourth search value, and a like query condition, a fourth search parameter corresponding to a data interface is generated, so that the data interface performs data search according to the fourth search parameter, and a corresponding fourth search result is returned to a preset table component.

[0038] As a preferred solution, the application further comprises:

[0039] In response to a fourth query request of a user, a second data query interface is generated; wherein the second data query interface comprises a second search value input area.

[0040] In response to an input operation of a user in the second search value input area, a fifth search value input by the user is determined.

[0041] According to the fifth search value, field encoding of each search field, and a like fuzzy query condition, a fifth search parameter corresponding to a data interface is generated, so that the data interface performs data search according to the fifth search parameter, and a corresponding fifth search result is returned to a preset table component.

[0042] On the basis of the above-mentioned embodiments, another embodiment of the application provides an application generation device, comprising: a first target search field determination module, a first input box matching module, a first search value acquisition module, a data search module, a data interface binding module, a first query configuration request response module, and an input box configuration module.

[0043] The first target search field determination module is configured to respond to a first query request of a user; wherein the first query request comprises a first target search field selected by the user in a preset filter component.

[0044] The first input box matching module is configured to match a first input box corresponding to the first target search field.

[0045] The first search value acquisition module is configured to acquire a first search condition selected by the user, and a first search value input in the first input box.

[0046] The data search module is configured to generate first search parameters of a corresponding data interface according to the first target search field, the first search condition, and the first search value, so that the data interface performs data search according to the first search parameters and returns corresponding first search results to a preset table component.

[0047] The data interface binding module is configured to bind a filter component and a table component used for data search to a preset data interface in response to a data source binding operation of a user.

[0048] The first query configuration request response module is configured to determine a search field to be configured in the filter component and attributes of a first input box corresponding to the search field to be configured in response to a first query configuration operation of a user, wherein the attributes include a control type, a display style, data configuration, and event configuration of the input box, and the event configuration includes a value change event, a click event, a focus acquisition event, and a focus loss event.

[0049] The input box configuration module is configured to perform attribute configuration on the first input box corresponding to the search field to be configured in the filter according to the attributes.

[0050] On the basis of the above-mentioned embodiments, a further embodiment of the application provides an application generation device, which comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the application generation method of the above-mentioned embodiments when executing the computer program.

[0051] On the basis of the above-mentioned embodiments, a further embodiment of the application provides a storage medium, which comprises a stored computer program, wherein the application generation method of the above-mentioned embodiments is executed by a device in which the storage medium is located when the computer program is running.

[0052] Compared with the prior art, the embodiments of the application have the following beneficial effects:

[0053] In the application, the input box corresponding to each search field can be configured individually: in response to a first query configuration operation of a user, a search field to be configured in the filter component and attributes of a first input box corresponding to the search field to be configured are determined, wherein the attributes include a control type, a display style, data configuration, and event configuration of the input box, and the event configuration includes a value change event, a click event, a focus acquisition event, and a focus loss event; and attribute configuration is performed on the first input box corresponding to the search field to be configured in the filter according to the attributes.

[0054] Then the user performs the query, the first input box corresponding to the first target search field selected by the user is matched; the first search condition selected by the user and the first search value input in the first input box are acquired; the first search parameter corresponding to the data interface is generated according to the first target search field, the first search condition and the first search value, so that the data interface performs data search according to the first search parameter, and the corresponding first search result is returned to the preset table component, and the data search is completed. Through the application, some special search requirements of the user are met, and the search efficiency of the user is improved. BRIEF DESCRIPTION OF DRAWINGS

[0055] Figure 1 is a flow diagram of a data search method provided by an embodiment of the application;

[0056] Figure 2 is an interface diagram of a table component (or multi-dimensional table component) opening a filter attribute;

[0057] Figure 3 is an interface diagram of a custom configuration panel of an advanced / view query;

[0058] Figure 4 is a type configuration interface of the first input box;

[0059] Figure 5 is a style configuration interface of the first input box;

[0060] Figure 6 is a data configuration interface of the first input box;

[0061] Figure 7 is an event configuration interface of the first input box;

[0062] Figure 8 is an operation interface diagram of a new view panel;

[0063] Figure 9 is an operation interface diagram of another save as view in the advanced query panel;

[0064] Figure 10 is an interface diagram of a custom configuration panel of a simple query;

[0065] Figure 11 is an interface diagram of a custom configuration panel of a keyword query;

[0066] Figure 12 is an interface diagram of an operation panel of a keyword query of a SAAS end;

[0067] Figure 13 is a structure diagram of a data search device provided by an embodiment of the application. DETAILED DESCRIPTION

[0068] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative effort belong to the scope of the present application.

[0069] Embodiment one

[0070] Please refer to Figure 1 A flowchart of a data search method provided by an embodiment of the present application includes the following specific steps:

[0071] S1, responding to a first query request of a user; wherein the first query request includes a first target search field selected by the user in a preset filter component;

[0072] In the process of processing large-scale data, especially in the aspect of background data search, the traditional keyword query method is relatively single, which may generate a large number of invalid results, and the operation is tedious and time-consuming, and the user needs to spend a lot of time to visually screen the desired data information.

[0073] Therefore, most of the current background data search uses a complex query method, generates corresponding input box controls according to the preset search fields in the data interface and the data types of the search fields; when the user performs data search, selects a search field, and the system generates an input box of a corresponding type according to the search field selected by the user, the user inputs a search value in the generated input box control; then generates an input parameter for data interface search according to the search field selected by the user and the input search value, and the data interface searches in the preset data source according to the input parameter.

[0074] Compared with the traditional keyword query and complex query, the user can configure the properties and data source of the filter component and the table component (or multi-dimensional table component), and then configure each search field in the filter component according to the specific search requirement. When the user performs data search, the filter component is used on the SAAS side, the search field in the data interface bound by the filter component is selected, the corresponding search condition is configured, the search value is input, the view is selected, the keyword is input, and the input parameter for data interface search is constructed in multiple ways, and the data interface returns the corresponding search result according to the input parameter, so as to realize the effect of improving the data search efficiency of the user.

[0075] S2, matching a first input box corresponding to the first target search field;

[0076] The generation of the first input box corresponding to each search field includes:

[0077] S201, in response to a data source binding operation of a user, binding a filter component and a table component for data search with a preset data interface;

[0078] Preferably, the binding of the filter component and the table component for data search with the preset data interface comprises: binding the table component for data search with a preset list type data interface, taking the data interface as a data source of the table component; and binding the filter component for data search with the table component, taking the data source of the table component as a data source of the filter component.

[0079] S202, in response to a first query configuration operation of a user, determining a search field to be configured in the filter component and a property of a first input box corresponding to the search field to be configured; wherein the property comprises: a control type, a display style, a data configuration and an event configuration of the input box; and the event configuration comprises: a value change event, a single click event, a focus acquisition event and a focus loss event.

[0080] S203, according to the property, performing property configuration on the first input box corresponding to the search field to be configured in the filter.

[0081] Preferably, further comprising: when the first target search field corresponding first input box cannot be matched, obtaining a data type corresponding to the first target search field, generating a second input box corresponding to the first target search field according to the data type; obtaining a second search condition selected by a user and a second search value input in the second input box; and generating a second search parameter of a corresponding data interface according to the first target search field, the second search condition and the second search value, so that the data interface performs data search according to the second search parameter and returns a corresponding second search result to a preset table component.

[0082] Before data search, the filter component and the table component for data search are configured correspondingly, and the configuration process comprises:

[0083] (1) the filter component and the table component (or a multi-dimensional table component) are dragged into a page editor by a drag-and-drop manner, and the filter component and the table component (or the multi-dimensional table component) are bound with a data source; or the table component (or the multi-dimensional table component) is dragged into the page editor by the drag-and-drop manner and bound with the data source, and then a filter property of the table component (or the multi-dimensional table component) is opened in a property panel of the table component (or the multi-dimensional table component), please refer to Figure 2 , an interface diagram for opening the filter property of the table component (or the multi-dimensional table component).

[0084] The binding mode of the data source is as follows: in the data source attribute of the table component, a preset list type data interface is bound as the data source of the table component; and then the filter component is bound with the table component, and the data source of the table component is taken as the data source of the filter component, that is, the data source of the filter component is also the list type data interface.

[0085] (2) By configuring the advanced / view query, simple query and keyword query in the filter component, the search fields in the data interface bound by the table component (or multi-dimensional table component) are configured according to the actual application scene; wherein, the specific configuration process is as follows:

[0086] A, advanced / view query configuration:

[0087] Please refer to Figure 3 for the interface diagram of the custom configuration panel of the advanced / view query. In the custom configuration panel of the advanced / view query, the search fields that need to be personalized configured are configured accordingly, the search fields to be configured are selected, the first input box corresponding to the search fields to be configured is configured, and the type, style, data and event of the first input box can be configured.

[0088] Type configuration of the first input box: please refer to Figure 4 for the type configuration interface of the first input box. The control type of the first input box is configured, such as text box control, drop-down selector control, single selection box control and multi-selection box control.

[0089] Style configuration of the first input box: please refer to Figure 5 for the style configuration interface of the first input box. The configuration content of the style is the display style of the first input box corresponding to the search field to be configured, for example, the display style of the text box control mainly includes border attribute, background color, background picture, outer margin, inner margin, font style (font size, font bold, font color), title style (title size, title bold, title color), read-only style (control value color, border attribute, background color when read-only) and custom style.

[0090] Data configuration of the first input box: please refer to Figure 6 for the data configuration interface of the first input box. The configuration content of the data is the data that needs to be configured for the first input box corresponding to the search field to be configured. Only single selection box control, multi-selection box control and drop-down selector component control support data configuration.

[0091] Event configuration of the first input box: please refer to Figure 7The interface is configured for the event of the first input box. The configuration content of the event is: the event that needs to be configured for the first input box corresponding to the search field to be configured. For example, the events that can be configured for the text box control include value change event, click event, focus getting event, focus losing event; the events that can be configured for the drop-down selector control include value change event, focus getting event, focus losing event, mouse entering event, mouse leaving event and clearing event.

[0092] After the input box is configured, the search field that has been configured individually can be reset, and the user can set whether the search field is displayed on the SAAS end and set the number of views individually to control the number of views that can be saved by the user.

[0093] After the input box is configured, the user can select the target search field to be configured in the advanced / view query panel of the filter component on the SAAS end. The system can respond to the first query request of the user, determine the first target search field selected by the user in the preset filter component and an identification code (used to indicate which data search mode is selected by the user: advanced / view query, simple query or keyword query, which can be used to indicate that the data search mode of advanced / view query is selected by the user) according to the first query request.

[0094] Then the first input box corresponding to the first target search field is matched. When the corresponding first input box is matched, it is indicated that the first target search field has the input box (i.e. the first input box) preset by the user in advance. The user can input the search value in the first input box and select the search condition.

[0095] If the first input box corresponding to the first target search field cannot be matched, it is indicated that the first target search field does not have the input box (i.e. the first input box) preset by the user in advance. Then the system generates the second input box corresponding to the first target search field according to the data type of the first target search field. For example, if the data type of the first target search field is a string type, the second input box generated at this time is a text box control; if the data type of the first target search field is a number type, the second input box generated at this time is a number box control; if the data type of the first target search field is a date and time type, the second input box generated at this time is a date and time control.

[0096] Preferably, after the attribute configuration of the input box corresponding to the search field to be configured in the pair filter, the method further comprises: determining the display field and the order of each display field in the table component in response to a table component configuration operation of a user; wherein the display field is a field displayed in the table component; and configuring the display mode of the search result of the table component according to the display field and the order of each display field, so that the table component displays the search result returned by the data interface according to the display field and the order of each display field.

[0097] Please refer to Figure 8 For the operation interface diagram of the new view panel, the view can be created by clicking the view button; please refer to Figure 9 For the operation interface diagram of the new view panel, the view can be created by clicking the view button; please refer to Figure 8 and Figure 9 As shown in the new view or save as view interface, the display mode (display field and order of display field) of the search result of the table component can be configured.

[0098] The display field is a field displayed in the table component. The display field and the order of each display field of the table component are preferably configured according to the display field and the order of each display field in the selected view. If the display field and the order of each display field are not configured in the view, the initial configuration of the table component is used. The user can click the name of the view on the SAAS side to form the input parameters of the data interface search with the search condition, the display field and the order of each display field in the view, query the data, and return the query result to the table component after the query is completed. The table component displays the search result returned by the data interface according to the display field and the order of each display field.

[0099] B, simple query configuration:

[0100] Preferably, the method further comprises: in response to a second query request of the user, wherein the second query request comprises a second target search field selected by the user in the preset filter component; matching a third search condition corresponding to the second target search field, and generating a third input box corresponding to the second target search field; obtaining a third search value input by the user in the third input box; generating a third search parameter of the corresponding data interface according to the second target search field, the third search condition, and the third search value, so that the data interface performs data search according to the third search parameter, and returns a third search result corresponding to the third search parameter to the preset table component; wherein the configuration of the search condition corresponding to each search field comprises: in response to a second query configuration operation of the user, determining a search field to be configured in the filter component and a search condition corresponding to the search field to be configured; wherein the search condition comprises: greater than, less than, and equal to; and configuring the search field to be configured in the filter component according to the search condition.

[0101] B, please refer to Figure 10 , the interface diagram of the simple query custom configuration panel. By selecting the search field to be configured in the simple query custom configuration panel, the search condition corresponding to the search field to be configured (i.e. the query condition item shown in Figure 10 ) is configured. Each query condition item is supported to be set as: whether multiple selection is allowed, whether all query condition items are displayed, and whether a certain query condition item is displayed by default. The configured each query condition item supports addition, deletion, modification, and position change by moving up and down in the configuration end.

[0102] When the user performs data search, the user can select the second target search field to be configured in the simple query panel of the filter component on the SAAS end. The system can respond to the second query request of the user, determine the second target search field selected by the user in the preset filter component, and an identification code (used to indicate which data search mode is selected by the user: advanced / view query, simple query, or keyword query, which can be used to indicate that the data search mode of simple query is selected by the user).

[0103] Then matching the third search condition corresponding to the second target search field, and generating the third input box corresponding to the second target search field; obtaining the third search value input by the user in the third input box; generating the third search parameter of the corresponding data interface according to the second target search field, the third search condition, and the third search value, so that the data interface performs data search according to the third search parameter, and presents the returned query result on the table component (or multi-dimensional table component).

[0104] In generating the third input box corresponding to the second target search field, the SAAS end generates the corresponding input box control (i.e. the third input box) according to the data type of the second target search field. For example, if the data type of the second target search field is a string type, the third input box generated at this time is a text box control; if the data type of the second target search field is a number type, the third input box generated at this time is a number box control; and if the data type of the second target search field is a date and time type, the third input box generated at this time is a date and time control.

[0105] C. Keyword query configuration:

[0106] Preferably, the method further comprises: in response to a third query request of a user, generating a first data query interface; wherein the first data query interface comprises: a search field selection area and a search value input area; in response to a selection operation of the user in the search field selection area, determining a third target search field selected by the user; in response to an input operation of the user in the search value input area, determining a fourth search value input by the user; and generating a fourth search parameter of a corresponding data interface according to the third target search field, the fourth search value, and a like query condition, so that the data interface performs data search according to the fourth search parameter and returns a corresponding fourth search result to a preset table component.

[0107] Preferably, the method further comprises: in response to a fourth query request of a user, generating a second data query interface; wherein the second data query interface comprises: a second search value input area; in response to an input operation of the user in the second search value input area, determining a fifth search value input by the user; and generating a fifth search parameter of a corresponding data interface according to the fifth search value, field codes of preset search fields, and a like fuzzy query condition, so that the data interface performs data search according to the fifth search parameter and returns a corresponding fifth search result to a preset table component.

[0108] Please refer to Figure 11 , which is an interface diagram of a custom configuration panel for keyword query. In the custom configuration panel for keyword query, the user can select search fields that can be used for keyword query and separate keyword query, respectively. The keyword query field refers to a field that can be selected as "keyword" in the SAAS end to perform fuzzy query on the input search value, and the separate keyword query field refers to a field that performs separate query on the input search value in the SAAS end.

[0109] Please refer to Figure 12 , which is an interface diagram of an operation panel for keyword query in the SAAS end. When the user performs data search, the user can select a query mode of simple query, keyword query (fuzzy query), and separate keyword query (separate query)

[0110] The keyword query (fuzzy query) can be selected in the keyword query panel of the SAAS side filter component, the third target search field (preset keyword) is selected, and the fourth search value is input. The system generates the fourth search parameter of the corresponding data interface by taking the field code of each field set in the keyword query field, the like fuzzy query condition and the fourth search value input by the user as the query condition, connecting each search field with the condition connector OR (or), so that the data interface searches data according to the fourth search parameter, and returns the corresponding fourth search result to the preset table component.

[0111] The single keyword query (single query) can be selected in the keyword query panel of the SAAS side filter component, the fourth target search field (preset keyword) is selected, and the fifth search value is input. The system selects one of the fields set as the keyword query field as the condition field of the query data, generates the fifth search parameter of the corresponding data interface according to the selected condition field, the like fuzzy query condition and the fifth search value input by the user, so that the data interface searches data according to the fourth search parameter, and returns the corresponding fifth search result to the preset table component.

[0112] It should be noted that in the present application, the above-mentioned three data search methods: advanced / view query, simple query and keyword query can also be set to multiple data search methods for synchronous search on the SAAS side, so as to improve the efficiency of user data search.

[0113] S3, acquiring the first search condition selected by the user and the first search value input in the first input box;

[0114] In the advanced / view query, the user inputs the first search value in the first input box corresponding to the first target search field, and selects the corresponding first search condition (such as "equal to", "not equal to", "fuzzy equal to", "between", "not between", etc.).

[0115] S4, generating the first search parameter of the corresponding data interface according to the first target search field, the first search condition and the first search value, so that the data interface searches data according to the first search parameter, and returns the corresponding first search result to the preset table component;

[0116] The system generates the first search parameter of the corresponding data interface according to the first target search field selected by the user, the first search condition and the first search value input by the user, so that the data interface searches data according to the first search parameter, and returns the corresponding first search result to the preset table component.

[0117] In summary, the present application provides a data search method, which can achieve the following effects:

[0118] 1. The input box corresponding to the search field can be personalized configured to meet some special search requirements of the user, such as text box configuration pop-up window, and the corresponding search value is selected through the pop-up window, instead of manually inputting the search value by the user, thereby improving the search efficiency of the user.

[0119] 2. Multiple data search modes can be set on the SAAS end to synchronously search data, thereby improving the data search efficiency of the user.

[0120] 3. The number of custom query views can be limited in the advanced query / view query of the filter component according to the requirement.

[0121] 4. The display mode (display field and sorting of the display field) of the search result of the table component can be configured.

[0122] 5. In the simple query of the filter component, a certain query condition item can be selected and displayed by default.

[0123] Embodiment Two

[0124] Please refer to Figure 13 a structural schematic diagram of a data search device provided by an embodiment of the present application, which comprises a first target search field determination module, a first input box matching module, a first search value acquisition module, a data search module, a data interface binding module, a first query configuration request response module, and an input box configuration module.

[0125] The first target search field determination module is configured to respond to a first query request of a user, wherein the first query request comprises a first target search field selected by the user in a preset filter component.

[0126] The first input box matching module is configured to match a first input box corresponding to the first target search field.

[0127] The first search value acquisition module is configured to acquire a first search condition selected by the user and a first search value input in the first input box.

[0128] The data search module is configured to generate a first search parameter of a corresponding data interface according to the first target search field, the first search condition, and the first search value, so that the data interface searches data according to the first search parameter and returns a corresponding first search result to a preset table component.

[0129] The data interface binding module is configured to bind a filter component and a table component used for data search with a preset data interface in response to a data source binding operation of a user.

[0130] The first query configuration request response module is configured to determine a search field to be configured in the filter component and an attribute of a first input box corresponding to the search field to be configured in response to a first query configuration operation of a user, wherein the attribute includes a control type, a display style, data configuration, and event configuration of the input box, and the event configuration includes a value change event, a single-click event, a focus acquisition event, and a focus loss event.

[0131] The input box configuration module is configured to configure the attribute of the first input box corresponding to the search field to be configured in the filter according to the attribute.

[0132] It should be noted that the apparatus embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. In addition, the connection relationship between the modules in the apparatus embodiments provided by the present application indicates that there is a communication connection between them, which can be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement it without creative labor.

[0133] Those skilled in the art can clearly understand that, for the convenience and brevity, the specific working process of the apparatus described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.

[0134] Embodiment Three

[0135] Correspondingly, the embodiment of the present application provides a data search device, the device includes a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, when the processor executes the computer program, the data search method described in the above embodiment of the application is realized.

[0136] The device can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing devices. The device can include, but is not limited to, a processor and a memory.

[0137] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor or the like, and is a control center of the device that connects all parts of the device through various interfaces and lines.

[0138] Embodiment four

[0139] Correspondingly, an embodiment of the present application provides a storage medium including a stored computer program, wherein the computer program controls a device where the storage medium is located to perform the data search method described in the above-mentioned embodiments of the present application when the computer program is running.

[0140] The memory can be configured to store the computer program, and the processor can realize various functions of the device by running or executing the computer program stored in the memory and calling data stored in the memory. The memory can mainly include a program storage area and a data storage area, where the program storage area can store an operating system, at least one application required for a function, and the like; and the data storage area can store data created according to use of the mobile phone, and the like. In addition, the memory can include a high-speed random access memory, and can also include a nonvolatile memory, for example, a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash storage device, or other volatile solid-state memory device.

[0141] The storage medium is a computer readable storage medium, and the computer program is stored in the computer readable storage medium. When the computer program is executed by a processor, steps of each method embodiment described above can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms, etc. The computer readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.

[0142] The above is the preferred embodiment of the present application. It should be noted that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, which are also considered within the scope of protection of the present application.

Claims

1. A data search method, characterized in that, include: Respond to the user's first query request; wherein the first query request includes: the first target search field selected by the user in a preset filter component; Match the first input box corresponding to the first target search field; Obtain the first search criteria selected by the user, and the first search value entered in the first input box; Based on the first target search field, the first search condition, and the first search value, a first search parameter is generated for the corresponding data interface, so that the data interface performs a data search based on the first search parameter and returns the corresponding first search result to a preset table component; If the first input box corresponding to the first target search field cannot be matched, the data type corresponding to the first target search field is obtained, and the second input box corresponding to the first target search field is generated according to the data type. Obtain the second search criteria selected by the user, and the second search value entered in the second input box; Based on the first target search field, the second search condition, and the second search value, a second search parameter is generated for the corresponding data interface, so that the data interface performs a data search based on the second search parameter and returns the corresponding second search result to a preset table component; The generation of the first input box corresponding to each search field includes: In response to the user's data source binding operation, the filter component and table component used for data search are bound to the preset data interface; In response to the user's first query configuration operation, the filter component determines the search field to be configured and the attributes of the first input box corresponding to the search field to be configured; wherein, the attributes include: the control type, display style, data configuration, and event configuration of the input box; the event configuration includes: value change event, click event, focus gain event, and focus loss event; Based on the aforementioned attributes, configure the attributes of the first input box corresponding to the search field to be configured in the filter.

2. The data search method as described in claim 1, characterized in that, The binding of the filter component and table component used for data search to a preset data interface includes: A table component for data search is bound to a preset list-type data interface, and the data interface is used as the data source for the table component. The filter component used for data search is bound to the table component, and the data source of the table component is used as the data source of the filter component.

3. The data search method as described in claim 1, characterized in that, After configuring the attributes of the input boxes corresponding to the search fields to be configured in the filter, the process also includes: In response to the user's table component configuration operation, determine the display fields in the table component and the order of each display field; wherein, the display fields are the fields displayed in the table component; The display method of the search results of the table component is configured according to the display fields and their sorting, so that the table component displays the search results returned by the data interface accordingly based on the display fields and their sorting.

4. The data search method as described in claim 1, characterized in that, Also includes: Respond to the user's second query request; wherein the second query request includes: the second target search field selected by the user in a preset filter component; Match the third search condition corresponding to the second target search field, and generate a third input box corresponding to the second target search field; Obtain the third search value entered by the user in the third input box; Based on the second target search field, the third search condition, and the third search value, a third search parameter is generated for the corresponding data interface, so that the data interface performs a data search based on the third search parameter and returns the corresponding third search result to the preset table component. The configuration of search criteria for each search field includes: In response to the user's second query configuration operation, the filter component determines the search field to be configured and the search conditions corresponding to the search field to be configured; wherein, the search conditions include: greater than, less than and equal to; Based on the search criteria, configure the search fields to be configured in the filter accordingly.

5. The data search method as described in claim 1, characterized in that, Also includes: In response to the user's third query request, a first data query interface is generated; wherein, the first data query interface includes a search field selection area and a search value input area; In response to the user's selection operation in the search field selection area, determine the third target search field selected by the user; In response to the user's input in the search value input area, determine the fourth search value entered by the user; Based on the third target search field, the fourth search value, and the like query condition, a fourth search parameter is generated for the corresponding data interface, so that the data interface performs a data search based on the fourth search parameter and returns the corresponding fourth search result to a preset table component.

6. The data search method as described in claim 5, characterized in that, Also includes: In response to the user's fourth query request, a second data query interface is generated; wherein, the second data query interface includes: a second search value input area; In response to the user's input in the second search value input area, determine the fifth search value entered by the user; Based on the fifth search value, the field codes of each preset search field, and the like fuzzy query conditions, a fifth search parameter is generated for the corresponding data interface, so that the data interface performs a data search based on the fifth search parameter and returns the corresponding fifth search result to the preset table component.

7. A data search device, characterized in that, include: The module comprises a first target search field determination module, a first input box matching module, a first search value acquisition module, a first data search module, a second input box generation module, a second search value acquisition module, a second data search module data interface binding module, a first query configuration request and response module, and an input box configuration module. The first target search field determination module is used to respond to a user's first query request; wherein, the first query request includes: the first target search field selected by the user in a preset filter component; The first input box matching module is used to match the first input box corresponding to the first target search field; The first search value acquisition module is used to acquire the first search condition selected by the user and the first search value entered in the first input box; The first data search module is used to generate first search parameters for the corresponding data interface based on the first target search field, the first search condition and the first search value, so that the data interface performs data search based on the first search parameters and returns the corresponding first search result to the preset table component; The second input box generation module is used to obtain the data type corresponding to the first target search field when the first input box corresponding to the first target search field cannot be matched, and generate the second input box corresponding to the first target search field according to the data type. The second search value acquisition module is used to acquire the second search condition selected by the user and the second search value entered in the second input box; The second data search module is used to generate a second search parameter for the corresponding data interface based on the first target search field, the second search condition, and the second search value, so that the data interface performs a data search based on the second search parameter and returns the corresponding second search result to a preset table component; The data interface binding module is used to respond to the user's data source binding operation and bind the filter component and table component used for data search to the preset data interface; The first query configuration request response module is used to respond to the user's first query configuration operation, determine the search field to be configured in the filter component, and the attributes of the first input box corresponding to the search field to be configured; wherein, the attributes include: the control type, display style, data configuration, and event configuration of the input box; the event configuration includes: value change event, click event, focus gain event, and focus loss event; The input box configuration module is used to configure the attributes of the first input box corresponding to the search field to be configured in the filter according to the attributes.

8. A data search device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements the data search method as described in any one of claims 1 to 6.

9. A storage medium, characterized in that, The storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the storage medium is located to perform the data search method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for generating combinatorial search box

    CN107463685A

  • Searching method and device, electronic equipment and storage medium

    CN113190741A