Data query methods, apparatus, electronic devices, storage media, and programs
The method and apparatus automatically switch data query modes based on input area state information, enhancing user efficiency and simplifying operations by adapting query assembly styles and providing feedback.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- LEMON CO LTD
- Filing Date
- 2024-06-21
- Publication Date
- 2026-07-07
AI Technical Summary
Current data query methods lack the ability to automatically switch between query modes, increasing user operational burden.
A method and apparatus that detect state information of input areas in a query assembly, determine the current query mode based on this information, update the query assembly style, and output data query results accordingly, enabling automatic switching of query modes.
Reduces user cognitive burden and improves query efficiency by allowing real-time adjustment of query modes and providing feedback on the switched query mode.
Smart Images

Figure 2026522391000001_ABST
Abstract
Description
Technical Field
[0001] [Cross-reference to Related Applications] This application claims priority to a Chinese patent application filed with the China National Intellectual Property Administration on June 25, 2023, with application number 202310752417.2 and invention title "Method, Apparatus, Electronic Device, Storage Medium, and Program Product for Data Query", the entire content of which is incorporated herein by reference.
[0002] [Technical Field] This application relates to the technical field of data query, and in particular to a method, apparatus, electronic device, storage medium, and program product for data query.
Background Art
[0003] Currently, the query mode of common data query methods is relatively single, and it is impossible to achieve automatic switching of various query modes, increasing the operation burden of users.
Summary of the Invention
Problems to be Solved by the Invention
[0004] In view of this, the purpose of this application is to propose a method, apparatus, electronic device, storage medium, and program product for data query to achieve automatic switching of query modes.
Means for Solving the Problems
[0005] Based on the above objectives, this application provides a method for data query, which includes: detecting the state information of the input area in the query assembly on the page, where the state information includes the content information of the input area; determining the current query mode based on the state information; updating the query assembly style based on the determined query mode; In response to receiving a query command for the query assembly, the system determines the data query result based on the determined query mode and / or content information. This includes outputting the results of the aforementioned data query.
[0006] Based on the same inventive concept, the exemplary embodiments of this application further provide a data querying apparatus, which, A detection module that detects state information in the input area of a query assembly on a page, which includes the content information of the input area. A tuning module that determines the current query mode based on the aforementioned state information, An update module that updates the query assembly style based on the determined query mode, A decision module that, in response to receiving a query command for the query assembly, determines a data query result based on the determined query mode and / or content information, It includes an output module that outputs the results of the aforementioned data query.
[0007] Based on the same inventive concept, exemplary embodiments of this application further provide an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the data query method described above when executing the program.
[0008] Based on the same inventive concept, exemplary embodiments of this application further provide a non-temporary computer-readable storage medium that stores computer instructions, which are used to cause a computer to execute the data query method described above.
[0009] Based on the same inventive concept, exemplary embodiments of this application further provide a computer program product which includes computer program instructions, and when the computer program instructions are run on a computer, the computer causes the computer to execute the data query method described above. [Effects of the Invention]
[0010] As can be seen above, the data query method, apparatus, electronic device, storage medium, and program product of this application detect state information of an input area, including content information of the input area, in a query assembly on a page, determine the current query mode based on the state information, update the query assembly style based on the determined query mode, and in response to receiving a query command for the query assembly, determine the data query result based on the determined query mode and / or the content information, and output the data query result. To more clearly explain the technical concepts in this application or related technologies, the following briefly introduces the drawings that may be used in the descriptions of the embodiments or related technologies. It is obvious that the drawings in the following descriptions are merely embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without expending any creative effort. [Brief explanation of the drawing]
[0011] [Figure 1] This is a schematic diagram illustrating an application scenario of the embodiment of this application. [Figure 2] This is a flowchart of the data query method in the embodiment of this application. [Figure 3] This is a schematic diagram of the structure of a first type query assembly according to an embodiment of this application. [Figure 4] This is a schematic diagram of the structure of the second type of query assembly according to the embodiment of this application. [Figure 5] This is a schematic diagram of the structure of the third type query assembly of the embodiment of this application. [Figure 6]It is a schematic structural diagram of the fourth type of query assembly in an embodiment of this application. [Figure 7] It is a schematic structural diagram of the fifth type of query assembly in an embodiment of this application. [Figure 8] It is a schematic structural diagram of the sixth type of query assembly in an embodiment of this application. [Figure 9] It is a schematic structural diagram of the seventh type of query assembly in an embodiment of this application. [Figure 10] It is a schematic structural diagram of the device for data query in an embodiment of this application. [Figure 11] It is a schematic structural diagram of a specific electronic device in an embodiment of this application.
Embodiments for Carrying out the Invention
[0012] To make the purpose, technical solution and advantages of this specification clearer, the following will further describe this specification in more detail with reference to the drawings while combining specific embodiments.
[0013] For better understanding, before using the technical solutions disclosed in each embodiment of this application, the user should be informed in an appropriate manner about the types, usage scopes, usage scenarios, etc. of the personal information related to this application in accordance with relevant laws and regulations, and the user's permission should be obtained.
[0014] For better understanding, the data related to this technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the corresponding laws, regulations and related provisions.
[0015] To make the purpose, technical solution and advantages of this specification clearer, the following will further describe this specification in more detail with reference to the drawings while combining specific embodiments.
[0016] It should be noted that, unless otherwise defined, technical or scientific terms used in the embodiments of this application should have a general meaning as understood by a person of general skill in the art to which this application pertains. The terms “first,” “second,” and similar terms used in the embodiments of this application do not indicate any order, number, or importance, but are used solely to distinguish different components. Similar terms such as “include” or “inclusion” mean that the element, object, or method step appearing before it covers the enumerated element, object, or method step and its equivalent appearing after it, and do not exclude other elements, objects, or method steps. Similar terms such as “connection” or “link” are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Terms such as “up,” “down,” “left,” and “right” are used solely to describe relative positional relationships, and these relative positional relationships may change accordingly after the absolute position of the described object changes.
[0017] As mentioned in the background technology section, the query modes of data query methods in current related technologies are relatively single, and it is not possible to automatically switch between various query modes, which increases the operational burden on users.
[0018] In the actual case described above, this application provides a data query method that detects state information of input areas in a query assembly on a page, including content information of the input areas, determines the current query mode based on the state information, determines the data query result based on the determined query mode and / or content information in response to receiving a query command for the query assembly, and outputs the data query result, thereby adjusting the query mode in real time according to the state of the input areas in the query assembly, enabling automatic switching of the query mode, and providing feedback of the corresponding query result according to the switched query mode, thereby reducing the cognitive burden on the user, improving the efficiency of the user's data queries, and simplifying the query operation flow.
[0019] After introducing the basic principles of this application, various non-restrictive embodiments of this application will be specifically described below.
[0020] In some specific application scenarios, the data querying method of this application may be used in various platforms or systems related to data querying. For example, this application scenario includes at least one server and at least one terminal. Data transmission can be achieved by communication between the server and the terminal via a network. Here, the network may be a wired network or a wireless network, and this application is not specifically limited to these.
[0021] The server may be a server that provides various services. Specifically, the server may be used to provide background services for application programs running on a terminal. Selectively, in some implementations, the data querying method according to the embodiments of this application may be executed by a server or a terminal. The server may be hardware or software. If the server is hardware, it may be implemented as a distributed server cluster consisting of multiple servers or as a single server. If the server is software, it may be implemented as multiple software or software modules (e.g., software or software modules for providing distributed services) or as a single software or software module. The embodiments of this application are not specifically limited thereto.
[0022] Referring to Figure 1, it is a schematic diagram of an application scenario of the data querying method according to an exemplary embodiment of the present application. This application scenario includes a terminal device 101, a server 102, and a data storage system 103. Here, the terminal device 101, server 102, and data storage system 103 are all connectable via a wired or wireless communication network. The terminal device 101 includes, but is not limited to, a desktop computer, mobile phone, mobile computer, tablet PC, media player, smart wearable device, personal digital assistant (PDA), or other electronic device capable of performing the above functions. The server 102 and data storage system 103 may both be independent physical servers, or they may be a server cluster or distributed system composed of multiple physical servers, or they may be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0023] Server 102 is used to provide data query services to users of terminal devices 101. Terminal devices 101 have a client installed that communicates with server 102, and users can acquire data through this client. In the data query process, server 102 can adjust the current query mode based on the state information of the input area in the query assembly, and determine the data query result based on the adjusted query mode and the content information of the input area. Selectively, the data query process may be completed by the client, but is not limited to this.
[0024] The data storage system 103 stores various data related to data queries. Both the terminal device 101 and the server 102 can randomly retrieve various data from the data storage system 103.
[0025] The following describes a data querying method according to an exemplary embodiment of this application, linking it to the application scenario shown in Figure 1. It should be noted that the above application scenario is provided solely to facilitate understanding of the spirit and principles of this application, and the embodiments of this application are not limited in any way to this embodiment. Conversely, the embodiments of this application may be used in any applicable context.
[0026] Referring to Figure 2, an embodiment of the present application provides a data querying method, which includes the following steps:
[0027] S101 detects the state information of an input area, including the content information of the input area, in the query assembly on the page.
[0028] When implementing this specifically, the state information of the input area, including the content information of the input area, in the query assembly on the page may be detected first. Selectively, detection may be performed, and a specific method for triggering detection may be set as needed, but is not limited to this. For example, detection may be initiated after the input cursor appears in the input area. Selectively, the state information of the input area may be that content has been entered in the input area, or that content has not been entered, or it may be in any other state, but is not limited to this. What should be explained is that the content information of the input area may be the specific content that has been entered, or it may be blank information, but is not limited to this.
[0029] S102, The current query mode is determined based on the status information.
[0030] When actually implementing this, after obtaining the state information of the input area of the query assembly, the current query mode may be determined based on this state information.
[0031] In some embodiments, determining the current query mode based on the state information specifically means: In response to the determination that the state information indicates that no content has been entered in the input area, the current query mode is determined to be a full query search mode, The system includes determining the current query mode as a search mode for performing a matching query in response to the determination that the state information indicates that content has been entered into the input area.
[0032] In practice, the query mode includes a search mode that performs a full query and a search mode that performs a matching query. When the status information determines that no content has been entered in the input area, the current query mode is determined to be the search mode that performs a full query. When the status information determines that content has been entered in the input area, the current query mode is determined to be the search mode that performs a matching query, thereby enabling automatic switching between the search mode and the search mode. Referring to Figure 3, when no content has been entered in the input area (query box) of the query assembly, the corresponding query mode is the search mode. Referring to Figure 4, when query content has been entered in the input area (query box) of the query assembly, the corresponding query mode is the search mode.
[0033] In some embodiments, in response to the determination that the state information indicates that content has been entered into the input area, the current query mode is determined to be a search mode for performing a matching query, specifically, The input style of the content information is determined, and the search mode includes exact match search and fuzzy search. In response to the determination that the input style is multi-line input, the search mode is determined to be an exact match search, This includes determining the search mode as a fuzzy search in response to the determination that the input style is a single-line input.
[0034] When actually implementing this, the search mode may be further divided into exact match search and fuzzy search, where exact match search means that the matched query data result is exactly the same as or overlaps with the input content information, and fuzzy search means that the matched query data result is at least partially the same as or overlaps with the input content information. Generally, fuzzy search belongs to broad queries, and exact match search belongs to precise queries. When the content entered by the user is a multi-line input, that is, when the user wants to query the results of multiple data simultaneously, and considering that precise results are generally desired, the search mode is determined to be an exact match search when it is determined that the input style is a multi-line input. At the same time, when the content entered by the user is a single-line input, that is, when the user wants to query the results of a single data, and considering that multiple query results can be fed back to the user to easily select from among them, the search mode is determined to be a fuzzy search when it is determined that the input style is a single-line input. Selectively, the feedback results of multiple data queries may be sorted as needed.
[0035] S103, The query assembly style is updated based on the determined query mode.
[0036] When implementing this, in order to make it easier for the user to intuitively understand the current query mode, the query assembly style may be updated based on the determined query mode after determining the current query mode based on the status information. Optionally, as shown in Figures 3 and 4, the query assembly style corresponding to the current query mode may be directly represented in text. Optionally, other display methods for presenting the query assembly style may be set as needed, but are not limited to these.
[0037] S104, In response to receiving a query command for the query assembly, the system determines the data query result based on the determined query mode and / or content information.
[0038] When implementing this specifically, after determining the current query mode, when a query command is received for the query assembly, the data query result may be determined simultaneously based on the adjusted query mode and the content information, or the data query result may be determined based on the query mode determined independently, or the data query result may be determined based on the content information independently. Selectively, the query command for the query assembly may be issued via the query control on the query assembly, or, referring to the search control in Figure 3, by directly entering content in the input area and then pressing a preset button such as the spacebar, but is not limited to these.
[0039] In some embodiments, determining the data query result based on the determined query mode and / or content information specifically means: In response to determining the current query mode as a search mode for performing matching queries, the input style of the content information is determined. In response to the determination that the input style is multi-line input, the content of a single line corresponding to the input of each line in the content information is determined, and for each of the contents of the single line, a data query result that matches the content of the single line is determined. This includes determining a data query result that matches the content information in response to the determination that the input style is a single-line input.
[0040] When implementing this specifically, if it is determined that the input style is multi-line input, the content information in the input area includes multi-line content corresponding to multiple target results, that is, the content of each line corresponds to at least one data query result. To explain this, the content of a single line corresponding to the input of each line in the content information is determined, and for each of the single line contents, a data query result that matches the content of that single line is determined. If it is determined that the input style is single-line input, the content information in the input area includes only single-line content corresponding to one target result. In this case, a data query result that matches the content information is determined. Referring to Figure 5, here the input style of the input area is multi-line input (four-line input), and the query result that matches each corresponding line is determined by the input content of each line.
[0041] In some embodiments, after determining the input style of the content information, the method is performed as follows: In response to the determination that the input style is multi-line input, the content information is further displayed line by line in the input area.
[0042] When implementing this, to make it easier for the user to intuitively determine whether the current input is multi-line or single-line, and to accurately know the content corresponding to each line of input in a multi-line input, when it is determined that the input style is multi-line input, the content information is displayed line by line in the input area. Selectively, the content may be displayed line by line based on the content corresponding to the input of each line. Referring to Figure 5, the entered content information is displayed in a total of four lines. Selectively, to improve the display effect, referring to Figure 6, a sign may be added before the content corresponding to the input of each line, and a sign may also be added before the data query results, in order to make it easier for the user to distinguish the data query results that match the content corresponding to the input of each line.
[0043] In some embodiments, determining the data query result based on the determined query mode and / or content information specifically means: In response to determining the current query mode as a full-scale search mode, the system includes determining all data in the database corresponding to the query assembly as data query results.
[0044] When actually implementing this, if the current query mode is determined to be a full-scale search mode, all data in the database corresponding to the query assembly may be determined as data query results. Selectively, all of the data may be sorted as needed so that the user can quickly find their query target among them.
[0045] In some embodiments, determining the input style of the content information is specifically In response to the determination that the content information contains multiple words and that preset commands are entered between adjacent words, it is determined that the input style is multi-line input, The input style is determined to be single-line input in response to the determination that the content information contains a single word, or that the content information contains multiple words and the preset instruction is not entered between adjacent words.
[0046] When implementing the system, if it is determined that the content information contains multiple words and that a preset command is entered between adjacent words, the input style is determined to be multi-line input. If it is determined that the content information contains a single word, or that the content information contains multiple words and that the preset command is not entered between adjacent words, the input style is determined to be single-line input. Selectively, the preset command may be set as needed, but is not limited to this; for example, the preset command may be set to "shift+Enter" or the space key.
[0047] In some embodiments, determining the preset instruction is: To obtain all input instructions contained in the database corresponding to the aforementioned query assembly, This includes determining the preset instruction based on all the aforementioned input instructions such that none of the preset instructions overlap with any of the aforementioned input instructions.
[0048] When implementing this specifically, when determining the preset instruction, all input instructions included in the database corresponding to the query assembly are first obtained, and then the preset instruction is determined based on all of the input instructions, ensuring that the preset instruction and all of the input instructions do not overlap. This solves the problem of not being able to search for some feature symbols by setting a common delimiter in the preset instruction.
[0049] In some embodiments, determining the input style of the content information is specifically In response to the determination that the content information contains multiple words and that preset instructions are entered between adjacent words, it is determined whether the database corresponding to the query assembly contains target data that matches the content information. In response to determining that the database corresponding to the query assembly contains the target data, prompt information is output to determine whether the current query mode is single-row input. This includes determining the input style as a single-line input in response to receiving a confirmation command for the prompt information.
[0050] When implementing this specifically, it is necessary to consider that the preset instructions must not only avoid overlapping with instructions already included in the database, but also facilitate user input. Furthermore, when the database is dynamically updated, it is difficult to guarantee that preset instructions will not overlap with instructions already included in the database. Therefore, in some embodiments, when it is determined that the content information contains multiple words and that preset instructions are entered between adjacent words, it is further determined whether the database corresponding to the query assembly contains target data that matches the content information. If it does not, the input style may be directly determined as multi-line input. If it does contain target data, prompt information is output to determine whether the current query mode is single-line input. The user then uses the prompt information to determine whether the input style of the currently entered content information is single-line input, and upon receiving a confirmation command for the prompt information, the user determines the input style to be single-line input. Referring to Figure 7, the input content information contains two words, and there is a comma between the two words. Therefore, the preset command at this time is ",", and prompt information "Is the current query mode single-line input or not?" is output. A confirmation command is received from the user, and if the user clicks the "Yes" control in Figure 7, the input style is determined to be single-line input. Referring to Figure 8, "AAAAAAAAAA,BBBBBBBBBB" is determined to be single-line input. A negative command is received from the user, and if the user clicks the "No" control in Figure 7, the input style is determined to be multi-line input. Referring to Figure 9, the input content information is displayed across multiple lines (two lines).
[0051] S105, Output the results of the data query.
[0052] When actually implementing the process, the data query results are determined and then output. The data query results may be selectively output directly to the page, or they may be output to a specified device; however, the process is not limited to these two methods.
[0053] The data query method, apparatus, electronic device, storage medium, and program product of this application detect state information of an input area in a query assembly on a page, including content information of the input area; determine the current query mode based on the state information; update the query assembly style based on the determined query mode; determine the data query result based on the determined query mode and / or content information in response to receiving a query command for the query assembly; and output the data query result. By doing so, the query mode can be adjusted in real time according to the state of the input area in the query assembly, automatic switching of the query mode can be achieved, and the corresponding query result can be fed back according to the switched query mode, thereby reducing the cognitive burden on the user, improving the efficiency of the user's data queries, and simplifying the query operation flow.
[0054] It should be noted that the method of the embodiment of this application may be performed by a single device, such as a single computer or server. The method of the embodiment of this application may be used in a distributed setting and may be completed by the interaction of multiple devices. In such a distributed setting, one of these multiple devices may perform only one or more steps of the method of the embodiment of this application, and these multiple devices may interact with each other to complete the method.
[0055] It should be noted that the above describes specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the operations or steps described in the claims may be performed in a different order than those in the embodiments above, and the desired results may still be achieved. Furthermore, the processes depicted in the drawings do not necessarily require a specific order or sequence shown to achieve the desired results. In some embodiments, multitasking and parallel processing may also be possible or advantageous.
[0056] Based on the same inventive concept, and corresponding to the methods of any of the above embodiments, this application further provides a data querying apparatus.
[0057] Referring to Figure 10, the data query device is A detection module 201 that detects state information of an input area in a query assembly on a page, which includes state information of the input area's content, A tuning module 202 that determines the current query mode based on the aforementioned state information, Based on the determined query mode, an update module 203 updates the query assembly style, A determination module 204, which, in response to receiving a query command for the query assembly, determines a data query result based on the determined query mode and / or content information, The system includes an output module 205 that outputs the results of the aforementioned data query.
[0058] In some embodiments, the adjustment module specifically, In response to the determination that the state information indicates that no content has been entered in the input area, the current query mode is determined to be a full-quantity query search mode. In response to the determination that the state information indicates that content has been entered into the input area, the current query mode is used to determine the search mode for performing a matching query.
[0059] In some embodiments, the adjustment module specifically, The input style of the content information is determined, and the search mode includes exact match search and fuzzy search. In response to the determination that the input style is multi-line input, the search mode is determined to be an exact match search, This is used to determine the search mode as a fuzzy search in response to the determination that the input style is a single-line input.
[0060] In some embodiments, the decision module specifically, In response to determining the current query mode as a search mode for performing matching queries, the input style for the content information is determined. In response to the determination that the input style is multi-line input, the content of a single line corresponding to the input of each line in the content information is determined, and for each of the contents of the single line, a data query result that matches the content of the single line is determined. In response to the determination that the input style is single-line input, this is used to determine data query results that match the content information.
[0061] In some embodiments, the decision module specifically, In response to determining the current query mode as a full-scale search mode, this is used to determine all data in the database corresponding to the query assembly as data query results.
[0062] In some embodiments, the adjustment module is further, specifically, In response to the determination that the content information contains multiple words and that preset commands are entered between adjacent words, it is determined that the input style is multi-line input. This is used to determine that the input style is single-line input in response to the determination that the content information contains a single word, or that the content information contains multiple words and the preset instruction is not entered between adjacent words.
[0063] In some embodiments, the apparatus is In response to the determination that the input style is multi-line input, the system further includes a first display module for displaying the content information line by line in the input area.
[0064] In some embodiments, the adjustment module is further, specifically, Obtain all input instructions contained in the database corresponding to the aforementioned query assembly, Based on all the aforementioned input instructions, the preset instructions are used to determine the preset instructions such that none of them overlap with any of the aforementioned input instructions.
[0065] In some embodiments, the adjustment module is further, specifically, In response to the determination that the content information contains multiple words and that preset instructions are entered between adjacent words, it is determined whether the database corresponding to the query assembly contains target data that matches the content information. In response to determining that the database corresponding to the query assembly contains the target data, prompt information is output to determine whether the current query mode is single-row input. This is used to determine the input style as a single-line input in response to receiving a confirmation command for the prompt information.
[0066] In some embodiments, the apparatus is The query assembly further includes a second display module for displaying the adjustment results after adjusting the query mode.
[0067] The data query apparatus in the above embodiment is used to implement the data query method in any one of the embodiments described above, and has the beneficial effects of the embodiment of the data query method, which will not be explained further here.
[0068] Based on the same inventive concept and corresponding to the methods of any of the above embodiments, this application further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor implements the data query method described in any one of the above embodiments when executing the program.
[0069] Figure 11 shows a schematic diagram of a more specific electronic device hardware structure provided by this embodiment, which may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. Here, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 achieve internal communication connectivity within the device via the bus 1050.
[0070] The processor 1010 may be implemented by employing a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits to execute the associated program and realize the technical proposal provided by the embodiments herein.
[0071] Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, etc. Memory 1020 can store the operating system and other application programs, and when the technical proposal provided by the embodiments herein is implemented by software or firmware, the relevant program code is stored in memory 1020 and called and executed by processor 1010.
[0072] The input / output interface 1030 is used to connect input / output modules to enable the input and output of information. The input / output modules may be configured as assemblies within the device (not shown) or may be connected externally to the device to provide the corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.
[0073] The communication interface 1040 is used to connect a connecting communication module (not shown) to enable communication interaction between this device and other devices. Here, the communication module may implement communication using a wired method (e.g., USB, network cable, etc.) or a wireless method (e.g., mobile network, Wi-Fi, Bluetooth®, etc.).
[0074] Bus 1050 includes paths for transmitting information between each assembly of the device (e.g., processor 1010, memory 1020, input / output interface 1030, and communication interface 1040).
[0075] It should be noted that while the above-mentioned equipment includes only the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in the specific process being implemented, this equipment may further include other assemblies necessary to ensure normal operation. Furthermore, as those skilled in the art will understand, the above-mentioned equipment may include only the assemblies necessary to implement the embodiments described herein, but not necessarily all assemblies shown in the figures.
[0076] The electronic device of the above embodiment is used to implement the data query method in any one of the embodiments described above, and has the beneficial effects of the embodiment of the method, which will not be described further here.
[0077] Based on the same inventive concept and corresponding to the methods of any of the above embodiments, the present application further provides a non-temporary computer-readable storage medium that stores computer instructions, which are used to cause the computer to execute the data query method described in any one of the above embodiments.
[0078] The computer-readable media of this embodiment include persistent and non-persistent, removable and non-removable media, and information storage can be realized by any method or technique. The information may be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random-access memory (SRAM), dynamic random-access memory (DRAM), other types of random-access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disk memory (CD-ROM), digital multifunction disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that may be used to store information accessible by computing equipment.
[0079] The computer instructions stored in the storage medium of the above embodiment are used to cause the computer to execute the data query method described in any one of the above embodiments, and have the beneficial effects of the embodiment of the corresponding method, which will not be described further here.
[0080] Based on the same inventive concept and corresponding to the methods of any of the above embodiments, the present disclosure further provides a computer program product which includes a computer program. In some embodiments, the computer program is executed by one or more processors to cause the processors to execute the data query method described in the above embodiments and has the beneficial effects of the applicable embodiments of the method which are not described further here.
[0081] Those skilled in the art should understand that the above consideration of arbitrary embodiments is illustrative only and is not intended to imply that the scope of this application (including the claims) is limited to these examples. Technical features in the above embodiments or different embodiments may be combined in any order, the steps may be implemented in any order, and many other variations of the embodiments of this application described above exist, which are not provided in detail for the sake of clarity.
[0082] Furthermore, in order to simplify the explanation and discussion and to avoid making the embodiments of this application difficult to understand, the provided drawings may or may not show known power / ground connections between integrated circuit (IC) chips and other components. Also, in order to avoid making the embodiments of this application difficult to understand, the apparatus may be shown in block diagram form, taking into consideration the following fact: the details relating to the embodiments of the apparatus in these block diagrams are largely dependent on the platform on which the embodiments of this application are carried out (i.e., these details should be entirely within the understanding of those skilled in the art). Where exemplary embodiments of this application are described by specifying details (e.g., circuits), the embodiments of this application may be carried out in the absence of these specific details or with modifications to these specific details, as would be obvious to those skilled in the art. Therefore, these descriptions should be considered explanatory, not restrictive.
[0083] Although this application has already been described with specific embodiments, as described above, many substitutions, modifications, and variations of these embodiments will be obvious to those skilled in the art. For example, other memory architectures (e.g., dynamic RAM (DRAM)) can use the embodiments considered.
[0084] The embodiments of this application are intended to include all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made in the spirit and principles of the embodiments of this application should be included within the scope of protection of this application.
Claims
1. A method of querying data, To detect the state information of an input area in a query assembly on a page, wherein the state information includes content information of the input area. The current query mode is determined based on the aforementioned state information, Based on the determined query mode, update the query assembly style, In response to receiving a query command for the query assembly, the system determines the data query result based on the determined query mode and / or content information. A method for querying data, which includes outputting the results of the aforementioned data query.
2. Determining the current query mode based on the aforementioned state information means that In response to the determination that the state information indicates that no content has been entered in the input area, the current query mode is determined to be a search mode that performs a full query. The method according to claim 1, comprising determining the current query mode as a search mode for performing a matching query in response to the determination that the state information indicates that content has been entered in the input area.
3. In response to the determination that the state information indicates that content has been entered in the input area, determining the current query mode as a search mode for performing a matching query means that The input style of the content information is determined, and the search mode includes exact match search and fuzzy search. In response to the determination that the input style is multi-line input, the search mode is determined to be an exact match search, The method according to claim 2, further comprising determining the search mode as a fuzzy search in response to the determination that the input style is a single-line input.
4. Determining the data query result based on the determined query mode and / or content information is: In response to determining the current query mode as a search mode for performing matching queries, the input style of the content information is determined. In response to the determination that the input style is multi-line input, the content of a single line corresponding to the input of each line in the content information is determined, and for each of the contents of the single line, a data query result that matches the content of the single line is determined. The method according to claim 2, comprising determining a data query result that matches the content information in response to the determination that the input style is a single-line input.
5. Determining the data query result based on the determined query mode and / or content information is: The method according to claim 2, comprising determining all data in the database corresponding to the query assembly as data query results in response to determining the current query mode as a full-scale search mode.
6. Determining the input style of the aforementioned content information means that In response to the determination that the content information contains multiple words and that preset commands are entered between adjacent words, it is determined that the input style is multi-line input, The method according to claim 3 or 4, further comprising determining that the input style is single-line input in response to determining that the content information contains a single word, or that the content information contains multiple words and the preset instruction is not entered between adjacent words.
7. After determining the input style of the content information, the method is as follows: The method according to claim 3 or 4, further comprising displaying the content information line by line in the input area in response to the determination that the input style is multi-line input.
8. Determining the aforementioned preset instructions means To obtain all input instructions contained in the database corresponding to the aforementioned query assembly, The method according to claim 6, further comprising determining the preset instruction based on all of the aforementioned input instructions such that the preset instruction does not overlap with any of the aforementioned input instructions.
9. Determining the input style of the aforementioned content information means that In response to the determination that the content information contains multiple words and that preset instructions are entered between adjacent words, it is determined whether the database corresponding to the query assembly contains target data that matches the content information. In response to determining that the database corresponding to the query assembly contains the target data, prompt information is output to determine whether the current query mode is single-row input. The method according to claim 3 or 4, further comprising determining the input style as a single-line input in response to receiving a confirmation command for the prompt information.
10. A data query device, A detection module that detects state information in the input area of a query assembly on a page, which includes the content information of the input area. A tuning module that determines the current query mode based on the aforementioned state information, An update module that updates the query assembly style based on the determined query mode, A decision module that, in response to receiving a query command for the query assembly, determines a data query result based on the determined query mode and / or content information, A data query apparatus, including an output module that outputs the results of the data query.
11. Electronic device comprising memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method according to any one of claims 1 to 9 when executing the program.
12. A non-temporary computer-readable storage medium, the non-temporary computer-readable storage medium storing computer instructions, the computer instructions being used to cause a computer to perform the method according to any one of claims 1 to 9.
13. A computer program product comprising computer program instructions, wherein when the computer program instructions are executed on a computer, the computer causes the computer to execute the method according to any one of claims 1 to 9.