Data searching method and device

文档序号:1952904 发布日期:2021-12-10 浏览:13次 中文

阅读说明:本技术 数据搜索方法及装置 (Data searching method and device ) 是由 白杰 商利国 吴剑 梁彬 冯帆 于 2021-09-03 设计创作,主要内容包括:本申请提供一种数据搜索方法及装置,涉及计算机技术领域,能够简化数据搜索过程,提高数据搜索的效率。该方法包括:接收用户输入的字符串,字符串用于表示至少一个搜索条件,字符串根据用户输入的至少一个搜索条件生成;解析字符串,获取目标数据,目标数据与至少一个搜索条件对应;显示目标数据。(The application provides a data search method and device, relates to the technical field of computers, and can simplify the data search process and improve the data search efficiency. The method comprises the following steps: receiving a character string input by a user, wherein the character string is used for representing at least one search condition and is generated according to the at least one search condition input by the user; analyzing the character string to obtain target data, wherein the target data corresponds to at least one search condition; and displaying the target data.)

1. A method of searching data, the method comprising:

receiving a character string input by a user, wherein the character string is used for representing at least one search condition and is generated according to the at least one search condition input by the user;

analyzing the character string to obtain target data, wherein the target data corresponds to the at least one search condition;

and displaying the target data.

2. The method of claim 1, wherein parsing the string to obtain target data comprises:

and determining a target calling interface by analyzing the character string, and accessing the target calling interface to acquire the target data.

3. The method of claim 1 or 2, wherein prior to said receiving a user-entered string, the method further comprises:

receiving at least one search condition input by a user;

generating the character string according to the at least one search condition;

and displaying the character string.

4. The method according to claim 3, wherein the search condition comprises a search area attribute and/or a search area content; the generating the character string according to the at least one search condition includes:

and associating the search area attribute and/or the search area content included by the at least one search condition through a connector to generate the character string.

5. The method according to any one of claims 1-4, further comprising:

and collecting the character string.

6. The method of any of claims 1-5, wherein after receiving the user-entered character string, the method further comprises:

and determining that the character string does not accord with a preset rule, and prompting a user to input an error.

7. A data search apparatus, characterized in that the apparatus comprises: the device comprises a communication unit, an analysis unit, an acquisition unit and a display unit;

the communication unit is used for receiving a character string input by a user, the character string is used for representing at least one search condition, and the character string is generated according to the at least one search condition input by the user;

the analysis unit is used for analyzing the character string;

the acquisition unit is used for acquiring target data, and the target data corresponds to the at least one search condition;

the display unit is used for displaying the target data.

8. The apparatus of claim 7,

the analysis unit is specifically used for determining a target calling interface by analyzing the character string;

the obtaining unit is specifically configured to obtain the target data by accessing the target call interface.

9. The apparatus according to claim 7 or 8, characterized in that the apparatus further comprises a generating unit;

the communication unit is further used for receiving at least one search condition input by a user;

the generating unit is used for generating the character string according to the at least one search condition;

the display unit is also used for displaying the character string.

10. The apparatus according to claim 9, wherein the search condition comprises a search area attribute and/or a search area content;

the generating unit is specifically configured to associate a search area attribute and/or a search area content included in the at least one search condition with a connector, and generate the character string.

11. The apparatus according to any one of claims 7-10, further comprising a favorites unit for favoring the character string.

12. The apparatus according to any one of claims 7-11, further comprising: an exception unit;

and the abnormal unit is used for prompting the user to input errors under the condition that the character string is determined not to accord with the preset rule.

13. A data search apparatus comprising a processor, a memory and a display, the memory, the display and the processor being coupled, the memory being for storing computer program code, the computer program code comprising computer instructions, the processor reading the computer instructions from the memory to implement the data search method of any one of claims 1 to 6.

14. A computer-readable storage medium, having stored thereon a computer program or instructions, which, when run on a computer, cause the computer to perform the data search method of any one of claims 1-6.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a data search method and apparatus.

Background

Because the degree of bank informatization is continuously deepened, a bank operation and maintenance engineer needs to maintain a large number of nodes, the data of each node is various and huge, and the operation and maintenance engineer needs to query and summarize the data frequently. At present, when data is queried and summarized, an operation and maintenance engineer is required to manually input a plurality of search conditions so as to search corresponding data. However, when the operation and maintenance engineer queries the data of the same search condition again, the operation and maintenance engineer still needs to manually input the plurality of search conditions again, and the process is extremely cumbersome and inefficient.

Disclosure of Invention

The embodiment of the application provides a data searching method and device, which can simplify the data searching process and improve the data searching efficiency.

In order to achieve the purpose, the technical scheme is as follows:

in a first aspect, an embodiment of the present application provides a data search method, where the method includes: receiving a character string input by a user, wherein the character string is used for representing at least one search condition, and the character string is generated according to the at least one search condition input by the user. And analyzing the character string to obtain target data, wherein the target data corresponds to at least one search condition, and displaying the target data.

Based on the technical scheme, when searching data, a user does not need to input a plurality of search conditions in sequence, and the data with the same search conditions can be obtained by directly inputting the character strings corresponding to the search conditions, so that the data search process is simplified, and the data search efficiency is improved.

In one possible implementation, parsing the character string to obtain the target data includes: and determining a target calling interface by analyzing the character string, and accessing the target calling interface to acquire target data. Based on the design, the corresponding calling interface can be directly determined by analyzing the character string, and corresponding data can be obtained by directly accessing the corresponding calling interface, so that the data searching efficiency is improved.

In one possible implementation, before receiving the character string input by the user, the method further includes: receiving at least one search condition input by a user, generating a character string according to the at least one search condition, and displaying the character string. Based on the design, when a user queries data of a plurality of search conditions for the first time, the user can input the plurality of search conditions in sequence to query corresponding data, then the system can generate corresponding character strings according to the plurality of search conditions, when the user queries data of the same search conditions again, the user does not need to input the plurality of search conditions in sequence, and the corresponding character strings can be directly input, so that the search process is simplified, and the search efficiency is improved. Also, the design may reduce learning costs compared to the use of a user to learn a string through developing a document. And based on the design, the generated character string can be displayed in a reverse mode so that a user can check the character string at any time, data are searched through the character string, the searching process is simplified, and the searching efficiency is improved.

In one possible implementation manner, the search condition includes a search area attribute and/or a search area content, and the generating of the character string according to at least one search condition includes: and associating the search area attribute and/or the search area content included by the at least one search condition through a connector to generate a character string.

In one possible implementation, the method further includes: and collecting the character strings. Based on the design, the corresponding character strings can be saved for subsequent query use by the user.

In one possible implementation, after receiving the character string input by the user, the method further includes: and determining that the character string does not accord with the preset rule, and prompting the user to input errors. Based on the design, the user can be reminded to correct the character strings so as to complete data search as soon as possible.

In a second aspect, an embodiment of the present application provides a data search apparatus, including: the device comprises a communication unit, an analysis unit, an acquisition unit and a display unit. The communication unit is used for receiving a character string input by a user, the character string is used for representing at least one search condition, and the character string is generated according to the at least one search condition input by the user. And the analysis unit is used for analyzing the character string. An acquisition unit configured to acquire target data, the target data corresponding to at least one search condition. And the display unit is used for displaying the target data.

In a possible implementation manner, the parsing unit is specifically configured to determine the target call interface by parsing the character string. And the acquisition unit is specifically used for acquiring the target data by accessing the target calling interface.

In one possible implementation, the apparatus further includes a generating unit. And the communication unit is also used for receiving at least one search condition input by the user. A generating unit for generating a character string according to at least one search condition. And the display unit is also used for displaying the character strings.

In one possible implementation, the search criteria include search area attributes and/or search area content. And the generating unit is specifically configured to associate a search area attribute and/or search area content included in the at least one search condition with a connector to generate a character string.

In a possible implementation manner, the device further comprises a collecting unit for collecting the character strings.

In one possible implementation, the apparatus further includes: and an exception unit. And the exception unit is used for prompting the user to input an error under the condition that the character string is determined not to accord with the preset rule.

In a third aspect, an embodiment of the present application provides a data search apparatus, including a processor, a memory, and a display screen, where the memory, the display screen, and the processor are coupled, the memory is used to store a computer program code, and the computer program code includes computer instructions, and the processor reads the computer instructions from the memory to implement the data search method described in the first aspect and any one of the possible implementation manners.

In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where a computer program or an instruction is stored, and when the computer program or the instruction runs on a computer, the computer is caused to execute the data search method described in the first aspect and any one of the possible implementations.

In a fifth aspect, an embodiment of the present application provides a computer program product, where the computer program product includes: computer program or instructions for causing a computer to perform the data search method as described in the first aspect and any one of its possible implementations as described above, when the computer program or instructions is run on the computer.

In a sixth aspect, an embodiment of the present application provides a chip system, which includes at least one processor and at least one interface circuit, where the at least one interface circuit is configured to perform a transceiving function and send an instruction to the at least one processor, and when the at least one processor executes the instruction, the at least one processor performs the data search method described in the first aspect and any one of the possible implementations.

It should be noted that, for technical effects brought by any one of the possible implementation manners in the second aspect to the sixth aspect, reference may be made to technical effects brought by corresponding implementation manners in the first aspect, and details are not described here again.

Drawings

FIG. 1 is a schematic diagram of an interface for inputting search criteria according to an embodiment of the present invention;

fig. 2 is a schematic flowchart of a data search method according to an embodiment of the present application;

FIG. 3 is a schematic diagram of yet another interface for inputting search criteria according to an embodiment of the present application;

fig. 4 is a schematic flowchart of another data searching method provided in the embodiment of the present application;

FIG. 5 is a schematic diagram of an interface for reminding a user of an input error according to an embodiment of the present application;

fig. 6 is a schematic structural diagram of a data search apparatus according to an embodiment of the present application;

fig. 7 is a schematic structural diagram of another data search apparatus according to an embodiment of the present application;

fig. 8 is a schematic structural diagram of another data search apparatus according to an embodiment of the present application;

fig. 9 is a schematic structural diagram of another data search apparatus according to an embodiment of the present application.

Detailed Description

A data search method and apparatus provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.

Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.

In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.

At present, when an operation and maintenance engineer queries data in an operation and maintenance information system, the operation and maintenance engineer needs to manually input a plurality of search conditions in view of safety. Illustratively, as shown in fig. 1, the plurality of search criteria include, but are not limited to, search criteria entered by a user via text boxes 101, 105, drop-down menu bars 102, 103, 104, and the like. Optionally, one text box may correspond to one search condition, for example: the text box 101 may correspond to a search condition; a pull-down menu bar may also correspond to a search criteria, such as: the drop-down menu bar 102 may also correspond to a search criteria; a combination of a plurality of text boxes, a combination of a plurality of pull-down menu bars, or a combination of a text box and a pull-down menu bar may also correspond to one search condition, for example: the text box 105, the drop-down menu bar 103, 104 may correspond to a search criteria. Then, the data query is performed by clicking the search button 106 with a mouse, and in response to the operation and maintenance engineer clicking the search button 106, the system may generate a query request and then send the query request to a corresponding server to implement the data query.

However, for the statistical work which is required by the operation and maintenance engineer in daily life, the included search operation has the following characteristics:

repeatability: the search operation needs to be performed regularly, for example: daily, monthly, quarterly, yearly, etc. And/or, the search operation needs to be performed at each fixed event, such as: the end of each production, the front and back of each sales promotion activity, the front and back of holidays and the like. Each execution requires querying data for the same search criteria.

Complexity: since the information dimension of each node is many, for example: hardware resource level (e.g., Central Processing Unit (CPU), hard disk), system software level (e.g., windows), application level, time level, etc., therefore, for each search operation, more search conditions need to be input.

Therefore, when the operation and maintenance engineer uses the above scheme to perform data query, the operation and maintenance engineer needs to input a plurality of search conditions in sequence, which is cumbersome to operate. And when data of the same search condition is queried again, the plurality of search conditions need to be manually input again, which is inefficient.

In order to solve the above technical problem, a solution for performing data query in a form of a keyword is proposed in the existing solutions. Related information is searched at one time through the keywords. But the information searched by the scheme is inaccurate, such as: if a search is performed using a string of numbers, which may be Internet Protocol (IP) addresses, phone numbers, or employee numbers, these information are displayed in the search results, which is not favorable for the statistical work of the operation and maintenance engineer. According to the scheme, accurate searching of a plurality of searching conditions cannot be achieved, and the data which needs to be searched by an operation and maintenance engineer cannot be determined, so that a large amount of data in a database needs to be read by a system, and the searching efficiency is low.

Therefore, to solve the above technical problem, an embodiment of the present application provides a data search method, including: receiving a character string input by a user, wherein the character string is used for representing at least one search condition, the character string is generated according to the at least one search condition input by the user, analyzing the character string, acquiring data corresponding to the search condition, and finally displaying the data. Therefore, the data of the same search condition can be obtained by directly inputting the corresponding character strings without manually inputting a plurality of search conditions by a user, the search process is simplified, and the search efficiency is improved.

As shown in fig. 2, a data searching method provided in the embodiment of the present application may be applied to an electronic device, a server, and the like, and the method includes the following steps:

s201, receiving a character string input by a user.

Wherein the character string is used to represent at least one search condition.

Alternatively, the character string may be a character string entered by the user in the search box. In this embodiment of the present application, the search box may be referred to as a global search box, and the global search box may be used to implement global search, that is, corresponding data may be searched from various data storage areas and various stored data in the system through the global search box. Illustratively, the search box 301 shown in fig. 3 is a global search box. The global search of the data can be realized through the global search box, and the required data is searched from the database of the client. Optionally, the global search box may be located on the main interface, or may be located on the sub-interface (e.g., the interface 300 for node management shown in fig. 3), or may be located on both the main interface and the sub-interface. Optionally, the global search box may be located at the top end, the bottom end, and the like of the interface, and the display position of the global search box is not specifically limited in the present application.

The specific format of the character string is exemplified below.

In one possible example, the string may include operation content including at least one search condition. In order to distinguish the plurality of search conditions in the character string, letters, symbols, numbers, and the like may be used to separate the search conditions.

For example, assume that the string is in the following format:

ip=%191%&type=mysql&CPU>[email protected]&createday>20190801。

illustratively, in the above-described character string example, the search conditions are separated by the "&" symbol, and thus the above-described character string example includes 4 search conditions, which are "ip ═ 191%", "type ═ mysql", "CPU >[email protected] month", and "createday > 20190801", respectively. Wherein, "IP ═ 191%" represents "a node with 191 in the IP address," type ═ mysql "represents" the node is the mysql database, "CPU >[email protected] month" represents "there is a case that the CPU occupancy is greater than 80% in the node in the next month," the meaning of "@" in the search condition is: some inequality before @ needs to satisfy certain conditions, such as: this holds true for a certain period of time/time point, which in this example is 1 month. "createday > 20190801" represents "the creation time of this node is later than 2019, 8/month 1/day".

Optionally, in this example, there may be a button on the search interface corresponding to the string in that format to facilitate completion of the data search. The button may be a search button in a global search box, such as button 302 shown in fig. 3, or may be another type of button to facilitate a user performing a data search using a string of characters.

It should be noted that, for the expression of each search condition, the present application does not limit this, and may be an equation, for example: ip ═ 191%, and may also be an inequality, such as: "createday > 20190801", which may be further defined on the basis of equality and/or inequality, e.g. that a certain time period/point of time needs to be met, etc. The order of arrangement of the search conditions may be changed, and the present application is not limited to the connection method of the search conditions.

In another possible example, the character string may include an operation name and operation content, where the operation name may be used to indicate an operation that the current user wants to perform, for example: query (also referred to as search), delete, add, modify, and so on, the operation content includes at least one operation condition, and the operation condition may be specifically a delete condition, a search condition, and so on.

For example, assume that the string is in the following format:

select/node:ip=%191%&type=mysql&CPU>[email protected]&createday>20190801。

in order to distinguish operation names and operation contents, letters, symbols, numbers and the like can be used to separate the operation names and the operation contents. Exemplarily, in the above character string example, a symbol "is adopted between the operation name and the operation content: "separate. Therefore, in the above string example, the operation name is "select/node", where "select" represents "the operation to be performed by the string is a query operation, and" node "represents" the target of the query is a node table in the database ". The operation content is "ip ═ 191% > & type ═ mysql & CPU >[email protected] & createday > 20190801", for specific introduction of the operation content, please refer to the above description, and the details are not repeated herein.

Alternatively, other operations, such as delete, add, modify, etc., may also be implemented using the strings in this example. For example: for deletion operation, the "select" in the operation name can be replaced by the "delete", and the search condition in the operation content can be replaced by the corresponding deletion condition; another example is: for the add operation, "select" in the operation name may be replaced with "insert", the search condition in the operation content may be replaced with the content to be added, and the like.

Optionally, in this example, there may be a button corresponding to the character string in this format on the search interface, so as to complete the corresponding data operation, for example: delete operations, add operations, etc. Alternatively, the search button 302 in the global search box shown in fig. 3 may be adaptively modified into a decision button, and when a click operation of the decision button by the user is detected, the system may execute character strings of various operation names. The button corresponding to the operation name of the character string may be adaptively modified, which is not limited in the present application.

It should be noted that the embodiment of the present application does not limit the specific format of the character string, as long as the character string is unambiguous, that is, the character string can be used to implement accurate query of data. And the character string is easy to identify, namely, the background can correctly analyze the character string, distinguish each search condition, and determine the corresponding calling interface according to the character string.

Alternatively, the character string may be generated according to at least one search condition previously input by the user. For example: when the user queries the data of the at least one search condition for the first time, the user can input the at least one search condition through the text boxes 101 and 105, the pull-down menu bars 102, 103, and 104, etc. shown in fig. 3, click the button 106 to perform a data query operation, and the system generates a corresponding character string according to the at least one search condition input by the user, where the character string can be used for querying the data of the same search condition. Then, when the user inquires the data of the same search condition again, the character string is directly input.

Alternatively, the character string may also be a character string that a user inputs by learning to develop a document.

S202, analyzing the character string to obtain target data.

Wherein the target data corresponds to at least one search condition.

Optionally, the target calling interface may be determined by parsing the character string, and then the target calling interface is accessed to obtain the target data. By analyzing the character strings, the corresponding calling interface can be directly positioned, and the searching efficiency is improved. For example: in the existing scheme, under the condition of searching data by using keywords, the system cannot determine what information the user wants to query at present according to the keywords input by the user, and at this time, if the database stores data in a table form, the system queries all tables in the database and displays all data related to the keywords. In the application, one or more tables in the database can be directly located through analyzing the character strings, and the tables are inquired without inquiring other tables, so that the searching efficiency is improved.

The following describes a specific process of parsing a character string with reference to a specific example.

Take the following format as an example for a string:

select/node:ip=%191%&type=mysql&CPU>[email protected]&createday>20190801。

and analyzing the character string by calling a software program code, for example: the program may parse the string in left-to-right order until the first colon ": is identified, and then split the string into two strings: "select/node" and "ip ═ 191% & type ═ mysql & CPU >[email protected] & createday > 20190801", and then the two strings are parsed, respectively.

Assuming that the program starts to analyze 'select/node', splitting the character string through '/', further obtaining 'select' and 'node', determining the character string to be used for realizing query operation through analyzing 'select', and determining a query target to be a node table in the database through analyzing 'node'.

Then, the program continues to parse "ip ═ 191%", "mysql & CPU >[email protected] & createday > 20190801", and splits the character string by "&", thereby obtaining 4 character strings, which are "ip ═ 191%", "type ═ mysql", "CPU >[email protected] month", and "createday > 20190801", respectively. Then, the 4 character strings are analyzed, a node with 191 in an IP address to be queried is determined by analyzing 'IP ═ 191%', a query node is determined to be a mysql database by analyzing 'type ═ mysql', a node with the CPU occupancy rate of more than 80% in the last month to be queried is determined by analyzing 'CPU >[email protected] month', and a node with the creation time of later than 2019, 8 months and 1 days is determined by analyzing 'createday > 20190801'. And finally, combining the conditions, and accessing the corresponding calling interface to search the corresponding data.

In the existing scheme, when data is queried through keywords, adjustment on the system structure is required, for example: various search frames, databases and the like are added, and the development period is long. Based on the design, the character string can be analyzed through the software code in the application, the data query is completed, and the adjustment on the system architecture is not needed, for example: the development period can be shortened by adding various search frames, expanding existing nodes, and the like.

And S203, displaying the target data.

Based on the technical scheme, the data of the same search condition can be obtained by directly inputting the corresponding character strings without manually inputting a plurality of search conditions by a user, so that the search process is simplified, and the search efficiency is improved.

Optionally, as shown in fig. 4, before receiving the character string input by the user, the method shown in fig. 2 further includes the following steps:

s401, receiving at least one search condition input by a user.

Optionally, the at least one search criteria includes, but is not limited to, search criteria input by a user through text boxes 101, 105, drop-down menu bars 102, 103, 104, etc. shown in fig. 3. Optionally, one text box may correspond to one search condition, one pull-down menu bar may also correspond to one search condition, a combination of a plurality of text boxes, or a combination of a plurality of pull-down menu bars, or a combination of a text box and a pull-down menu bar may also correspond to one search condition, which is not specifically limited in this application.

S402, generating a character string according to at least one search condition.

For example, as shown in fig. 3, assuming that the system detects that the user inputs a plurality of search criteria on the search interface 300 and clicks the search button 106, the system may parse the plurality of search criteria input by the user and generate corresponding character strings according to the plurality of search criteria.

Optionally, the search criteria may include a search area attribute and/or a search area content. The character string may be generated by associating search area attributes and/or search area contents included in the at least one search condition by a connector. Alternatively, the connector may be a letter, a number, a symbol, or the like, which is not particularly limited in this application.

Alternatively, the search condition may include a search area attribute and a search area content. Illustratively, taking a text box as an example, assume that the text box is composed of two parts, for example: "name" and "value", the search area may refer to the text box as a whole, the search area attribute may refer to the "name" of the text box, and the search area content may refer to the "value" of the text box. Taking the text box 101 shown in fig. 3 as an example, the search area refers to the text box 101, the attribute of the search area is "IP", and the content of the search area is "% 191%". Similarly, the above description applies to the drop-down menu bar, and is not illustrated here.

Alternatively, the search condition may include only the search area attribute or the search area content. Illustratively, taking the pull-down menu bar as an example, assume that the pull-down menu bar is composed of only a portion, for example: and "value", the search area may refer to the whole drop-down menu bar, and the content of the search area is "value" of the drop-down menu bar. Taking the pull-down menu bar 104 shown in fig. 3 as an example, the search area refers to the pull-down menu bar 104, and assuming that the user has selected "CPU" in the menu bar, the content of the search area is "CPU".

A process of generating a corresponding character string according to at least one search condition input by a user is described below with reference to a specific example.

For example, as shown in fig. 3, assuming that a user currently wants to query a condition that "there is a relevant node with a type of mysql with 191 in the IP address and a CPU occupancy rate greater than 80% in the last month", the user may input "% 191%" in the text box 101, where "%" may be used for fuzzy search, meaning that there may be other content before "191", and there may also be other content after "191", and a specific introduction about "%" may refer to a related description of an existing regular expression, and will not be described herein again. Then, the user selects "mysql" in the pull-down menu 102, "last month" in the pull-down menu bar 103, "CPU" in the pull-down menu bar 205, "80%" in the text box 105, and then clicks the search button 106, and data corresponding to the condition can be searched.

According to the above example, the plurality of search conditions input by the user may generate a character string format of "ip ═ 191% & type ═ mysql & CPU >[email protected] month". The character string includes 3 search conditions, which are "ip ═ 191%", "type ═ mysql," and "CPU >[email protected]," respectively. For each search condition, the search area attribute and the search area content may be connected by equal sign, or by unequal sign, or by other types of signs, for example: the symbol "@" in the search condition "CPU >[email protected] month" means that an expression preceding the symbol needs to satisfy a certain condition, for example: the time condition, the content after the symbol is a condition that needs to be satisfied, for example: "1 month". That is, each search condition in the generated character string may be an equation, which may be an equation, an inequality, or another type of expression, and the present application does not limit this.

Alternatively, "&", "! "and the like, and the present application is not limited to this.

And S403, displaying the character string.

Optionally, after the character string is generated according to at least one search condition, the character string may be displayed in real time, for example: displayed in a global search box, console, etc. This display may also be referred to as a reverse display. Based on the design, the generated character strings can be displayed in a reverse mode so that a user can check the character strings at any time, data are searched through the character strings, the searching process is simplified, and the searching efficiency is improved.

Optionally, the searched data may be displayed while the character string is displayed.

Based on the technical scheme, when a user queries data of a plurality of search conditions for the first time, the search conditions can be input through the text box and/or the pull-down menu bar, then the system can generate corresponding character strings according to the search conditions, when the user queries data of the same search conditions again, the corresponding character strings can be directly input without sequentially inputting the search conditions, the search process is simplified, and the search efficiency is improved. Also, the learning cost can be reduced compared to the use of a user to learn a character string by developing a document.

Optionally, the character string may also be collected. For example, after the character string is generated according to at least one search condition, the character string can be automatically collected, and the collection can be selected by the user according to requirements. Illustratively, as shown in FIG. 3, there is a favorites button 303 on one side of the global search box 301, and after a string is displayed in the global search box, the user may click the button 303 to favorites the string.

Optionally, for the favorite button 303, in the case that a character string is not displayed in the global search box, the button is in an inoperable state, for example: and presenting gray color, wherein the user can not collect the corresponding character string through the button. In the case where a character string is displayed in the global search box, the button assumes an operable state, for example: and lighting a button, and collecting the corresponding character string by the user through the button. Based on the design, the corresponding character strings can be saved for subsequent query use by the user.

Optionally, the user may be prompted to input an error currently when the character string input by the user does not meet the preset rule. The preset rules are related to the format of the character string, and the corresponding preset rules can be determined according to the format of the character string and can be set by developers according to actual requirements. For example: assuming that the current preset rule specifies that the search conditions need to be connected by the symbol "&", if the symbol "!is detected between the character strings currently input by the user! Connected, the user may be prompted to enter an error at the present time by popping up the interface 500 shown in FIG. 5.

Optionally, the user may be specifically prompted what kind of error occurs in the character string, for example: assuming that the preset rule specifies that the search conditions need to be connected by the symbol "&", if the symbol "!is detected between the character strings currently input by the user! ", a prompt message may pop up: detection of the character' not recognizable! ' is used for prompting the user of specific errors of character strings, and is convenient for the user to correct.

Based on the design, the user can be reminded to correct the character strings so as to complete data search as soon as possible.

The scheme provided by the embodiment of the application is mainly introduced from the perspective of the method. It is understood that the apparatus comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. The elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein may be embodied in hardware or in a combination of hardware and computer software. Whether a function is performed as hardware or computer-driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present teachings.

In the present application, the functional modules of the apparatus may be divided according to the above method examples, for example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a hardware form or a software functional module form. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.

Fig. 6 is a schematic structural diagram of a data search apparatus according to an embodiment of the present invention. As shown in fig. 6, the data search apparatus 600 may be used to perform the data search methods shown in fig. 2 and 4. The data search apparatus 600 includes a communication unit 601, a processing unit 602, and a display unit 603.

A communication unit 601, configured to receive a character string input by a user, where the character string is used to represent at least one search condition, and the character string is generated according to the at least one search condition input by the user.

The processing unit 602 is configured to parse the character string to obtain target data, where the target data corresponds to at least one search condition.

A display unit 603 for displaying the target data.

Optionally, the processing unit 602 shown in fig. 6 is further configured to determine a target call interface by parsing the character string; and the system is also used for acquiring target data by accessing the target calling interface.

Optionally, before receiving the character string input by the user, the communication unit 601 shown in fig. 6 is further configured to receive at least one search condition input by the user; the processing unit 602 shown in fig. 6 is further configured to generate a character string according to at least one search condition; the display unit 603 shown in fig. 6 is also used to display character strings.

Optionally, the search condition includes a search area attribute and/or a search area content; the processing unit 602 shown in fig. 6 is further configured to associate the search area attribute and/or the search area content included in the at least one search condition with a connector to generate a character string.

Optionally, the processing unit 602 shown in fig. 6 is further configured to collect character strings.

Optionally, the processing unit 602 shown in fig. 6 is further configured to prompt the user to input an error if it is determined that the character string does not meet the preset rule.

In the case of implementing the functions of the integrated modules in the form of hardware, the embodiment of the present invention provides another possible structural schematic diagram of the apparatus in the above embodiment. As shown in fig. 7, a data search apparatus 700 is, for example, configured to execute the data search method shown in fig. 2 and 4.

The data search apparatus 700 includes a processor 701, a memory 702, and a bus 703. The processor 701 and the memory 702 may be connected by a bus 703.

The processor 701 is a control center of the communication apparatus, and may be a single processor or a collective term for a plurality of processing elements. For example, the processor 701 may be a Central Processing Unit (CPU), other general-purpose processors, or the like. Wherein a general purpose processor may be a microprocessor or any conventional processor or the like.

For one embodiment, processor 701 may include one or more CPUs, such as CPU 0 and CPU 1 shown in FIG. 7.

The memory 702 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that may store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.

As a possible implementation, the memory 702 may be present separately from the processor 701, and the memory 702 may be connected to the processor 701 via the bus 703 for storing instructions or program code. The processor 701 can implement the data search method provided by the embodiment of the present invention when calling and executing the instructions or program codes stored in the memory 702.

In another possible implementation, the memory 702 may also be integrated with the processor 701.

The bus 703 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.

It should be noted that the structure shown in fig. 7 does not constitute a limitation of the data search apparatus 700. In addition to the components shown in FIG. 7, the data search apparatus 700 may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.

Optionally, as shown in fig. 7, the data search apparatus 700 provided in the embodiment of the present invention may further include a communication interface 704.

A communication interface 704 for connecting with other devices through a communication network. The communication network may be an ethernet network, a radio access network, a Wireless Local Area Network (WLAN), etc. The communication interface 704 may include a receiving unit for receiving data, and a transmitting unit for transmitting data.

In one design, in the apparatus provided in the embodiment of the present invention, the communication interface may be further integrated in the processor.

Fig. 8 shows another hardware configuration of the data search apparatus in the embodiment of the present invention. As shown in fig. 8, the data search apparatus 800 may include a processor 801 and a communication interface 802. The processor 801 is coupled to a communication interface 802.

The functions of the processor 801 may refer to the description of the processor 701 above. The processor 801 also has a memory function, and the function of the memory 702 can be referred to.

The communication interface 802 is used to provide data to the processor 801. The communication interface 802 may be an internal interface of the communication device, or may be an external interface (corresponding to the communication interface 704) of the communication device.

It should be noted that the configuration shown in fig. 8 does not constitute a limitation of the data search apparatus 800, and the data search apparatus 800 may include more or less components than those shown in fig. 8, or may combine some components, or may be arranged differently.

Fig. 9 is a schematic structural diagram of another data search apparatus according to an embodiment of the present application, and as shown in fig. 9, the apparatus includes: a communication unit 901, a parsing unit 902, an acquisition unit 903, and a display unit 904.

The communication unit 901 is configured to receive a character string input by a user, where the character string is used to represent at least one search condition, and the character string is generated according to the at least one search condition input by the user.

The parsing unit 902 is configured to parse the character string.

An obtaining unit 903, configured to obtain target data, where the target data corresponds to at least one search condition.

And a display unit 904 for displaying the target data.

Optionally, as shown in fig. 9, the parsing unit 902 provided in this embodiment of the application is specifically configured to determine the target call interface by parsing the character string. The obtaining unit 903 is specifically configured to obtain the target data by accessing the target call interface.

Optionally, as shown in fig. 9, the data search apparatus provided in the embodiment of the present application further includes a generating unit 905 and a communication unit 901, configured to receive at least one search condition input by a user. A generating unit 905 configured to generate a character string according to at least one search condition. The display unit 904 is also used to display the character string.

Optionally, the search condition includes a search area attribute and/or a search area content, and the generating unit 905 provided in this embodiment is specifically configured to associate the search area attribute and/or the search area content included in at least one search condition through a connector, and generate a character string.

Optionally, as shown in fig. 9, the data search apparatus provided in the embodiment of the present application further includes a collecting unit 906, where the collecting unit 906 is configured to collect the character strings.

Optionally, as shown in fig. 9, the data search apparatus provided in the embodiment of the present application further includes: exception unit 907. An exception unit 907, configured to prompt the user to input an error if it is determined that the character string does not meet the preset rule.

Through the above description of the embodiments, it is clear for a person skilled in the art that, for convenience and simplicity of description, only the division of the above functional units is illustrated. In practical applications, the above function allocation can be performed by different functional units according to needs, that is, the internal structure of the device is divided into different functional units to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.

The embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed by a computer, the computer executes each step in the method flow shown in the above method embodiment.

Embodiments of the present invention provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the data search method of the above-described method embodiments.

The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read-Only Memory (EPROM), registers, a hard disk, an optical fiber, a portable Compact disk Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium, in any suitable combination, or as appropriate in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

Since the apparatus, the device, the computer-readable storage medium, and the computer program product in the embodiments of the present invention may be applied to the method described above, for technical effects obtained by the apparatus, the computer-readable storage medium, and the computer program product, reference may also be made to the method embodiments described above, and details of the embodiments of the present invention are not repeated herein.

The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope of the present invention are intended to be covered by the scope of the present invention.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于标签提取的搜索方法及其相关设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!