User retrieval linkage analysis system and method and computer equipment
By introducing detection modules and update display modules in the database search and analysis system, the search terms and analysis parameters entered by users are detected and updated in real time, the cumbersome problems in the search and analysis process in the existing system are solved, and faster and more convenient data is achieved Analytical experience.
Patent Information
- Application Number
- CN202311052072.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-21
- Publication Date
- 2025-02-21
AI Technical Summary
The existing database search and analysis system needs to search first and then analyze. Users need to frequently jump to the interface during the process of adjusting the search results, and the analysis parameters are easily lost and inconvenient to use.
It provides a user search linkage analysis system, including a detection module, a database, a query module and an update display module, which detects the search terms and analysis parameters input by the user in real time, generates query statements for database queries, and updates the analysis results in real time.
It realizes real-time feedback and rapid adjustments by users during the data analysis process, reduces interface jumps, avoids loss of analysis parameters, and improves retrieval efficiency and user experience.
Smart Images

Figure CN119493895A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data retrieval, and in particular to a user retrieval linkage analysis system, method, and computer device. Background Technology
[0002] Currently, competing patent database retrieval and analysis products on the market must adopt a path of searching first and then analyzing. For some users who frequently use the analysis function, such as those who want to observe the changes in the analysis results by constantly adjusting the search results, frequent updates to the search query require multiple user interface jumps to reach the analysis interface, and there may also be cases where user-set analysis parameters are lost, making it quite inconvenient to use.
[0003] Currently, database analysis software has not yet achieved dynamic, interconnected analysis. Summary of the Invention
[0004] To address the aforementioned shortcomings or deficiencies, this application provides a user retrieval linkage analysis system, method, and storage medium. The aim of this application is to provide a user-dynamic retrieval analysis system that provides timely result feedback.
[0005] This application provides a user retrieval linkage analysis system according to the first aspect, characterized in that it includes a detection module, a database, a query module, and an update display module; The detection module is used to detect whether the user-input search query and user analysis parameters have changed; The database stores information for retrieval and analysis; The query module will detect the user's input search query and user analysis parameters, generate a query statement, and perform a database query. The update display module updates the analysis results required by the user based on the data returned by the query module.
[0006] In some embodiments, a correction module and a verification module are also included. The correction module completes the search query input by the user. The verification module judges the validity of the search query input by the user. If the search query input by the user is invalid, the display module updates the display module to show error information.
[0007] In some embodiments, the query module includes a statistical query module and a list query module. The statistical query module returns data statistics, and the list query module returns specific data information. The data statistics returned by the statistical query module are used for multi-dimensional (multi-field) analysis of the retrieved hit data, and the list query module is used to display the complete information of the hit results.
[0008] In some embodiments, a pre-retrieval module is also included, which provides real-time feedback on whether results have been found. The pre-retrieval module helps users better determine in real time whether there are analyzable results. If analyzable results are found, further analysis can be conducted to observe the trend of the result data. The pre-retrieval module is a service within the fast module of the entire retrieval system. The advantage of fast service is that it can quickly display query results, consumes less system resources, and is suitable for a large number of frequent operations.
[0009] In some embodiments, the detection module determines whether the search query has changed by judging whether the search box containing the user's input query has lost focus. Losing focus and gaining focus are mouse actions; gaining focus means clicking the input box to put it into edit mode. Losing focus means that when the mouse clicks on another input box or other area, the input box that was initially in focus is in a state of losing focus.
[0010] According to the second aspect, this application provides a user retrieval linkage analysis method, which includes the following steps: Step 1: Confirm that the retrieval environment has changed, including confirming that the user analysis parameters have changed and confirming that the retrieval formula has changed; Step 2: Combine the updated search query from Step 1 with the user analysis parameters to generate a query statement and perform a database query.
[0011] Step 3: Based on the results returned in Step 2, call the update display module to update the analysis results and then display them.
[0012] In some embodiments, confirming a change in the search query includes: clicking the search query input box, which gains focus and the cursor begins to blink, at which point the search query can be edited. Clicking the search button, clicking any blank space causing the input box to lose focus, or pressing the Enter key will all trigger a change in the search query. The confirmation of whether the analysis parameters have changed includes: whether the data dimension selected by the user has changed, whether the style of the displayed chart has changed, whether the secondary filtering conditions have changed, whether the current field filtering has changed, whether the data range has changed, and whether intelligent translation has been enabled.
[0013] This application provides a computer device according to a fifth aspect, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the above-described methods.
[0014] The beneficial effects of this invention are that it provides a display method that links retrieval and analysis, allowing users to receive faster and more real-time feedback when analyzing data. Combined with pre-retrieval to predict search results, it enables faster identification of problems in the search formula and timely adjustments. Furthermore, it adds a correction module and a verification module. The correction module provides users with a more convenient input method, improving search efficiency.
[0015] Figure 1 This is a flowchart illustrating a user retrieval and analysis linkage method in one embodiment; Figure 2 This is a structural block diagram of a user retrieval and analysis linkage method in one embodiment; Figure 3 This is an internal structural diagram of a computer device in one embodiment.
[0016] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0017] This application provides a user retrieval and analysis linkage system. In one embodiment, the user retrieval and analysis linkage system is as follows: Figure 2 As shown.
[0018] It includes: detection module 201, correction module 202, verification module 203, query module 205, error reporting module 204, database 206, and update display module 207.
[0019] The detection module 201 needs to detect the following: To confirm a change in the search query: Click the search query input box. The input box will gain focus and the cursor will start blinking. At this point, you can edit and modify the search query. Clicking the search button, clicking any blank space to make the input box lose focus, or pressing the Enter key will all trigger a change in the search query. Confirm whether the analysis parameters have changed: including whether the data dimensions selected by the user have changed, whether the icon style has changed, whether the secondary filtering conditions have changed, whether the current field filtering has changed, whether the data range has changed, and whether intelligent translation has been enabled.
[0020] Among them, the change of search expression is as Figure 2 Condition 3 in the code will be executed.
[0021] Whether the data range has changed, and whether intelligent translation has been enabled, are among the factors considered. Figure 2 Condition 2 in the code will be executed.
[0022] Among them, whether the data dimensions selected by the user for display have changed, and whether the style of the displayed icons has changed, are used as... Figure 2 Condition 1 in the code will be executed.
[0023] Correction Module 202: 1. Complete the search query input by the user. 2. Correct obvious errors in the search query input by the user.
[0024] Validation module 203: 1. Performs real-time syntax validation on the user-input search query; 2. Performs pre-search validation on the search query results input by the user. Figure 2 Condition 4 in the query module provides the user-input search query and user analysis parameters together with the validated query. Figure 2 Condition 6 in the query module refers to the result returned by the pre-retrieval being sent to the verification module in real time. Figure 2 Condition 5 was detected by the verification module.
[0025] Query module 205: Based on the detected user-input search terms and user analysis parameters, it generates query statements and performs database queries. The specific query logic includes statistical queries and list queries. Statistical queries generate ElasticSearch-executable DSL statements based on the statistical data required for the user's final statistical analysis charts, and then perform database queries. List queries display detailed results from the database that match the search terms and user analysis parameters.
[0026] Database 206: Stores raw big data databases. In some cases, the raw data has the following characteristics: many fields, more than 200 field categories; large data volume, with a single field potentially containing millions of bytes, and the total number of related data exceeding hundreds of billions; and multiple data types, including PDFs, images, videos, music, and other related data.
[0027] Update Display Module 207: This module updates and displays the analysis results required by the user based on data returned by the query module. The update display module primarily interfaces with the query module and the database module.
[0028] This application provides a method for constructing a word segmentation position index. In one embodiment, the method includes the following steps: Figure 1 As shown below. (Combined with...) Figure 1 This section explains the method for constructing the word segmentation position index.
[0029] S100: Determine if the search environment has changed.
[0030] Determine if the search environment has changed, including: confirming changes to the data source: current field filtering, data range, and whether smart translation is enabled. To confirm a change in the search query: Click the search query input box. The input box will gain focus and the cursor will start blinking. At this point, you can edit and modify the search query. Clicking the search button, clicking any blank space to defocus the input box, or pressing the Enter key will all trigger a change in the search query. Confirming a change also includes confirming whether the secondary filtering conditions have changed: Click the dropdown to select secondary search logic keywords: and, or, not. Click the input box to gain focus while the cursor blinks. Enter the keywords for the secondary search, and click the search icon or press Enter to trigger the change in the search query. The system will append the secondary search keywords to the original search query according to the selected logic keywords to obtain a new search query, and simultaneously clear the secondary search keywords for future secondary search operations.
[0031] Confirm whether the analysis parameters have changed: whether the data dimensions selected by the user and the style of the displayed icons have changed.
[0032] S101: Pre-retrieval verification This step is performed when the search query changes. Pre-search verification involves performing a pre-search on the user's real-time input query to help the user better determine whether there are analyzable results and adjust the search query in a timely manner.
[0033] S102: Search-based completion If you enter a simple search query, that is, a search query without specifying any search fields, the system will automatically complete the search by adding the simple search query information to the `ss` (directory entry information). If there are spaces in the search query, they will be completed using the AND operator.
[0034] S103: Search-based verification During the input of the search query (pause) and upon completion of input, the search query will be validated, such as whether the search field is supported, whether the brackets are symmetrical and complete, etc. If any abnormality is found, it will be marked in red.
[0035] S104: Generate query statement using search query and analysis parameters The database receives the search query verified in step S103 and combines it with analysis parameters. It then uses "ANTLR v4" to parse the syntax structure and converts the parsed result into a "DSL" statement that "ElasticSearch" can execute.
[0036] S105: Return list query results Returns either a list of query results or a statistical query result. Returning a list of query results allows for the display of a list, while returning a statistical query result allows for the display of statistical analysis results.
[0037] S106: Return statistical query results Unlike S105, which uses statistical results as needed, this method combines search queries with analysis parameters and uses "ANTLR v4" to parse the syntax structure, obtaining "DSL" statements that "ElasticSearch" can execute, and then returns statistical query results.
[0038] S107: Update displayed content Based on S105: Return list query results or S106: Return statistical query results, call the user's analysis parameters, as well as the analysis dimensions and style information required by the user, and display the results of the statistical analysis.
[0039] S109: Pre-retrieval verification This step is executed when the analysis parameters change. It performs a pre-search and verification to judge the analysis parameters adjusted by the user, helping the user to better determine in real time whether there are analyzable results and adjust the analysis dimensions and parameters in a timely manner.
[0040] S110: Generate query statement using search query and analysis parameters. The database receives the search query after pre-search verification in step S109, combines it with analysis parameters, parses the syntax structure using "ANTLR v4", and then converts the parsed result into a "DSL" statement that "ElasticSearch" can execute.
[0041] S111: Return list query results Returns either a list of query results or a statistical query result. Returning a list of query results allows for the display of a list, while returning a statistical query result allows for the display of statistical analysis results.
[0042] S112: Return statistical query results Unlike S111, which uses statistical results as needed, this query combines analytical parameters and uses "ANTLR v4" to parse the syntax structure, obtaining the "DSL" statement that "ElasticSearch" can execute, and then returns the statistical query results.
[0043] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0044] This embodiment also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps included in the method provided in any of the above method embodiments.
[0045] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps included in the method provided in any of the above method embodiments.
[0046] Those skilled in the art will understand that implementing all or part of the processes in the above method embodiments can be accomplished by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus (RAMbus), direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0047] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0048] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A user search linkage analysis system, characterized by: It includes a detection module, a database, a query module and an update display module; The detection module is used to detect whether the search formula and user analysis parameters input by the user have changed; The database stores information for retrieval and analysis; The query module detects the search formula and user analysis parameters input by the user, generates a query statement, and performs a database query; The update display module updates the analysis results required by the user through the data fed back by the query module.
2. A user search linkage analysis system according to claim 1, characterized in that: It also includes a correction module and a verification module. The correction module completes the integrity of the search formula input by the user; the verification module judges the legality of the search formula input by the user. If the search formula input by the user is illegal, the update display module displays an error message.
3. A user search linkage analysis system according to claim 1, characterized in that: The query module includes a statistical query module and a list query module. The statistical query module returns data statistical information, and the list query module returns specific data information.
4. A user search linkage analysis system according to claim 1, characterized in that: It also includes a pre-search module, which is used to provide real-time feedback on whether there are any hits.
5. A user search linkage analysis system according to claim 1, characterized in that: The detection module determines whether the search formula has changed by determining whether the search box of the search formula input by the user loses focus.
6. A user search linkage analysis method, characterized in that: The steps include: Step 1: Confirm that the search environment has changed, including confirming that the user analysis parameters have changed and confirming that the search formula has changed; Step 2: Combine the search formula updated in step 1 with the user analysis parameters to generate a query statement and perform a database query. Step 3: Based on the result returned in step 2, call the update display module to update the analysis results and then display them.
7. A user search linkage analysis method according to claim 6, characterized in that: The confirmation that the search formula has changed includes: clicking the search formula input box, the input box gets the focus and the cursor starts to flash, at which time the search formula can be edited and modified; clicking the search button, or clicking any blank space to make the input box lose the focus, or pressing the Enter key, all of which will trigger the search formula to change; The confirmation of whether the analysis parameters have changed includes: whether the data dimension selected by the user for display has changed, whether the displayed chart style has changed, whether the secondary screening condition has changed, whether the current field screening has changed, whether the data range has changed, and whether intelligent translation is enabled.
8. A user search linkage analysis method according to claim 7, characterized in that: After confirming in step 1 that the search environment has changed, if it is confirmed that the search formula has changed, the pre-search module is started to provide real-time feedback on whether there are any hits.
9. A user search linkage analysis method according to claim 7, characterized in that: After step 1 confirms that the search environment has changed, if it is confirmed that the search formula has changed, the search formula is verified and completed, and then step 2 is executed. If it is confirmed that the user analysis parameters have changed, the user analysis parameters are verified and then step 2 is executed.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 6 to 9 when executing the computer program.
