A PC terminal system based on client automatic learning search navigation implementation method and system
Patent Information
- Application Number
- CN202511793997.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-02
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2045-12-02
AI Technical Summary
[0005]内部管理系统现有的搜索导航的技术方案是专门为系统搭载一个独立搜索导航配置管理系统或搜索导航业务模块,然后在由管理员去配置搜索词对应的导航路由,这样增加了管理员的工作量,而且内容搜索还需要有专人去维护,搭载独立的搜索导航管理系统增加了项目实施和维护成本
[0017] The PC-based search navigation implementation method of this application automatically collects business data through a request interceptor, and uses an asynchronous approach to combine the business data of the business modules into a string fragment as a search term. The current route is used as the functional route navigation to form the search function navigation. Each user's login and operation of the client will help the search navigation improve the function of the search term. Automatic learning and modular integration save manpower costs, service project implementation and maintenance costs.
Smart Images

Figure CN121614684B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a PC-based search and navigation implementation method and system based on client-side automatic learning. Background Technology
[0002] With the development of the times and the continuous updates of the Internet, enterprises or organizations have accelerated their digital transformation of internal management systems, transferring their management processes to internal management systems. As a result, there are more and more business modules, and each business module has dozens or even more business menu functions. The improvement of the functions of the internal management system has also brought different troubles to users and system administrators from another perspective. Therefore, the search and navigation of business menu functions has become increasingly important.
[0003] As internal management systems accumulate more and more business information, business data search will also become part of the search navigation, allowing users and administrators to quickly locate the function they are looking for by searching the content.
[0004] Search navigation, also known as global search, generally refers to a search method that allows users or administrators to use a search method on a platform or database without being restricted by relative search. This helps users or administrators find the business menu functions or business content they want by entering as little content as possible, thereby maximizing the work efficiency of users or administrators.
[0005] The existing technical solution for search navigation in internal management systems is to install a separate search navigation configuration management system or search navigation business module on the system, and then the administrator configures the navigation routes corresponding to the search terms. This increases the workload of the administrator, and content search also requires dedicated personnel to maintain. Installing a separate search navigation management system increases the project implementation and maintenance costs. Summary of the Invention
[0006] The purpose of this invention is to provide a search and navigation implementation method for PC systems based on client-side automatic learning, which at least solves one of the above-mentioned technical problems.
[0007] One aspect of the present invention provides a method for implementing search navigation based on client-side automatic learning in a PC system, the method comprising: Step 1: Enable the response interceptor; Step 2: The response interceptor intercepts the web client's request and response. When the request generates a response result, the response interceptor obtains the response object corresponding to the response result, extracts the response status code from the response object, and determines whether the response status code is equal to 200. If it is equal to 200, the interceptor obtains the navigation route address, route address name, and response result of the current business function, converts the response result into a search content string fragment, uses the navigation route address, route address name, and search content string fragment to form a search navigation object, and stores the search navigation object in the search term automatic collection queue. Step 3: Every preset period, retrieve all search navigation objects from the automatic search term collection queue, and the search navigation objects form the first search navigation object set; Step 4: Extract the navigation route addresses of all search navigation objects in the first search navigation object set, and query the historically saved search navigation objects from the database based on the navigation route addresses; all search navigation objects in the first search navigation object set and the queried historically saved search navigation objects form the second search navigation object set; Step 5: After deduplicating the second search navigation object set according to the first search navigation object set, store the information of the search navigation objects in the second search navigation object set that are not stored in the database into the database.
[0008] Optionally, the PC-based search navigation implementation method based on client-side automatic learning further includes: Step 6: Obtain input content information; Step 7: Based on the input content information, query all search navigation objects in the database that contain the input content information to obtain a set of search navigation objects; Step 8: Display the collection of search navigation objects in the operable display area.
[0009] Optionally, step 1: enabling the response interceptor includes: After the web client detects the status signal that the user has successfully logged in, it calls the function to start the response interceptor; when the response interceptor is started successfully, the global variable InterceptorOpen is set to true.
[0010] Optionally, the step of deduplicating the second search navigation object set according to the first search navigation object set and then storing the information of the search navigation objects in the second search navigation object set that are not stored in the database into the database includes: Using the route address of the search navigation object as the key and the search navigation object as the value, store all objects in the second search navigation object set into the Map variable of search. Declare a List variable named saveSearch and iterate through the first search navigation object set to remove search navigation objects that already exist in the second search navigation object set from the first search navigation object set.
[0011] Optionally, the step of cyclically searching the first set of search navigation objects to remove search navigation objects that already exist in the second set of search navigation objects includes: Step 401: Obtain the search navigation object corresponding to the current loop and assign it to a variable named cSearchObj. Obtain the route address from the cSearchObj variable and assign it to a string variable named path. Use path to obtain the search navigation object from the search variable and assign it to a variable named usedSearchObj. If it is determined that the string fragment in the usedSearchObj variable contains the string fragment in the cSearchObj variable, then end the current loop and execute the next loop. If it is determined that the string fragment in the usedSearchObj variable does not contain the string fragment in the cSearchObj variable, proceed to step 402. Step 402: Concatenate the string fragments in the usedSearchObj variable and the string fragments in the cSearchObj variable together and assign the result to the string fragment in the usedSearchObj variable. Add the usedSearchObj variable to the saveSearch collection and continue the loop until all unique search navigation objects are stored in the saveSearch collection.
[0012] Optionally, the step of cyclically searching the first set of search navigation objects to remove search navigation objects that already exist in the second set of search navigation objects further includes: Step 403: Save the saveSearch collection. If the save is successful, a 001 response code will be returned. If the save fails, a 005 response code will be returned. Proceed to step 404. Step 404: Check the response code of the search navigation data saving interface. If the response code is equal to 005, put the first search navigation object set back into the automatic search term collection queue. The scheduled task is now complete.
[0013] Optionally, obtaining the input content information includes: Define an input box element in the HTML page, define the ID value of the input box element as searchId, call the search navigation input box binding function, and pass searchId to the search navigation input box binding function; Check the parameters passed to the function binding the search navigation input box. If the parameters passed to the function binding the search navigation input box are not empty, then... The DOM object of the input field is obtained by passing parameters to the function binding the search navigation input field and assigned to a global variable named `searchDom`. If the global variable `searchDom` is not empty, then... Use the `searchDom` variable to enable input event listening for the input box. If the input content in the input box is obtained and assigned to a string variable named `searchVal`, then the `searchVal` variable is used to request the search navigation data query interface.
[0014] Optionally, the step of querying all search navigation objects in the database that contain the input content information to obtain a set of search navigation objects includes: The search navigation data query interface retrieves the value of the searchVal variable, queries all search navigation objects containing searchVal based on the value of searchVal, obtains a collection of search navigation objects, and returns the collection of search navigation objects.
[0015] Optionally, displaying the set of search navigation objects in the operable display area includes: Upon receiving the returned set of search navigation objects, the set of search navigation objects is displayed in the drop-down option area of the input box. The drop-down option area of the input box can display the navigation name and string fragment of the search navigation object, and hide the navigation route address of the search navigation object.
[0016] This application also provides a PC-based search navigation implementation system based on client-side automatic learning. The PC-based search navigation implementation system includes a Java server and a web client; the Java server includes a Java SDK package; the web client includes a JavaScript SDK package; wherein... The Java SDK package includes a search navigation data query interface and a search navigation data storage interface. After the search navigation data query interface is called, it returns a collection of search navigation objects. Each search navigation object in the first collection of search navigation objects contains a navigation route address, a route address name, and a string fragment of the search content. The search navigation data storage interface is used to receive a set of search navigation objects as a required parameter, and returns a response code after being called. The JavaScript SDK package includes functions for binding the search navigation input box, a response interceptor, a scheduled task, and an automatic search term collection queue. The response interceptor includes a start function and a stop function. The Java server and web client work together to implement the PC-side system search and navigation implementation method based on client-side automatic learning as described in any one of claims 1 to 9.
[0017] The PC-based search navigation implementation method of this application automatically collects business data through a request interceptor, and uses an asynchronous approach to combine the business data of the business modules into a string fragment as a search term. The current route is used as the functional route navigation to form the search function navigation. Each user's login and operation of the client will help the search navigation improve the function of the search term. Automatic learning and modular integration save manpower costs, service project implementation and maintenance costs. Attached Figure Description
[0018] Figure 1 This is a flowchart illustrating the search and navigation implementation method of the PC-side system based on client-side automatic learning in this application. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be described in more detail below with reference to the accompanying drawings. In the drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The described embodiments are some, but not all, embodiments of this application. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application. The embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0020] This application provides a PC-based search navigation implementation system based on client-side automatic learning. The PC-based search navigation implementation system includes a Java server and a web client; the Java server includes a Java SDK package; the web client includes a JavaScript SDK package; wherein, The Java SDK package contains two interfaces. The first interface is for querying search navigation data. This interface does not require any parameters and returns a collection of search navigation objects (each containing three pieces of data: the navigation route address, the route address name, and the search content string fragment). The second interface is for saving search navigation data. This interface requires one parameter, which is also a collection of search navigation objects (each containing three pieces of data: the navigation route address, the route address name, and the search content string fragment). This parameter is mandatory. The function returns a response code (001 for success, 005 for failure). The JavaScript SDK package includes a search navigation input box binding function, a response interceptor, a scheduled task, and an automatic search term collection queue.
[0021] The search navigation input box binding function requires one parameter, which is a string (the ID of the input tag in HTML; the input tag is an input box element, and the ID represents a unique code in the HTML structure). The function parameter is required and cannot be empty. After successfully binding the input box based on the passed parameter (the ID of the input tag), the search navigation input box binding function obtains the DOM node object of the input tag. Based on the DOM node object, it adds a listener for input events in the input box. When the content of the input box changes, it sends a request to the search navigation data query interface along with the string value in the input box, obtaining a collection of search navigation objects (each search navigation object contains three data: the first data is the navigation route address, the second data is the route address name, and the third data is a string fragment). The collection of search navigation objects is then displayed in the input box dropdown option area.
[0022] The response interceptor is mainly used to listen to the client's request and response results. It obtains the response result and converts it into a string fragment and the current business function route address. The current business function route address is used as the key, and an object is composed of three data as the value. The first data in the object is the navigation route address, the second data is the route address name, and the third data is the response result string (search content string fragment). The route is stored as the value in the search term automatic collection queue.
[0023] The response interceptor has two functions. The first function starts the response interceptor, requires no parameters, and has no return value. The second function stops the response interceptor, also requires no parameters, and has no return value.
[0024] The main function of the scheduled task is to automatically collect all content from the queue every 60 seconds, carrying search terms, and request the search navigation data saving interface.
[0025] The main function of the automatic search term collection queue is to store search terms in a queue container. The Java server and web client work together to implement a search and navigation method for PC systems based on client-side automatic learning.
[0026] like Figure 1 The PC-based search and navigation implementation method based on client-side automatic learning, as shown, includes: Step 1: Enable the response interceptor; Step 2: The response interceptor intercepts the web client's request and response. When the request generates a response result, the response interceptor obtains the response object corresponding to the response result, extracts the response status code from the response object, and determines whether the response status code is equal to 200. If it is equal to 200, the interceptor obtains the navigation route address, route address name, and response result of the current business function, converts the response result into a search content string fragment, uses the navigation route address, route address name, and search content string fragment to form a search navigation object, and stores the search navigation object in the search term automatic collection queue. Step 3: Every preset period, retrieve all search navigation objects from the automatic search term collection queue, and the search navigation objects form the first search navigation object set; Step 4: Extract the navigation route addresses of all search navigation objects in the first search navigation object set, and query the historically saved search navigation objects from the database based on the navigation route addresses; all search navigation objects in the first search navigation object set and the queried historically saved search navigation objects form the second search navigation object set; Step 5: After deduplicating the second search navigation object set according to the first search navigation object set, store the information of the search navigation objects in the second search navigation object set that are not stored in the database into the database.
[0027] In this embodiment, the PC-side system's search and navigation implementation method based on client-side automatic learning further includes: Step 6: Obtain input content information; Step 7: Based on the input content information, query all search navigation objects in the database that contain the input content information to obtain a set of search navigation objects; Step 8: Display the collection of search navigation objects in the operable display area.
[0028] In this embodiment, step 1: enabling the response interceptor includes: After the web client detects the status signal that the user has successfully logged in, it calls the function to start the response interceptor; when the response interceptor is started successfully, the global variable InterceptorOpen is set to true.
[0029] In this embodiment, the step of deduplicating the second search navigation object set according to the first search navigation object set and then storing the information of the search navigation objects in the second search navigation object set that are not stored in the database into the database includes: Using the route address of the search navigation object as the key and the search navigation object as the value, store all objects in the second search navigation object set into the Map variable of search. Declare a List variable named saveSearch and iterate through the first search navigation object set to remove search navigation objects that already exist in the second search navigation object set from the first search navigation object set.
[0030] In this embodiment, the step of cyclically searching the first set of search navigation objects to remove search navigation objects that already exist in the second set of search navigation objects includes: Step 401: Obtain the search navigation object corresponding to the current loop and assign it to a variable named cSearchObj. Obtain the route address from the cSearchObj variable and assign it to a string variable named path. Use path to obtain the search navigation object from the search variable and assign it to a variable named usedSearchObj. If it is determined that the string fragment in the usedSearchObj variable contains the string fragment in the cSearchObj variable, then end the current loop and execute the next loop. If it is determined that the string fragment in the usedSearchObj variable does not contain the string fragment in the cSearchObj variable, proceed to step 402. Step 402: Concatenate the string fragments in the usedSearchObj variable and the string fragments in the cSearchObj variable together and assign the result to the string fragment in the usedSearchObj variable. Add the usedSearchObj variable to the saveSearch collection and continue the loop until all unique search navigation objects are stored in the saveSearch collection.
[0031] In this embodiment, the step of cyclically searching the first set of search navigation objects to remove search navigation objects that already exist in the second set of search navigation objects further includes: Step 403: Save the saveSearch collection. If the save is successful, a 001 response code will be returned. If the save fails, a 005 response code will be returned. Proceed to step 404. Step 404: Check the response code of the search navigation data saving interface. If the response code is equal to 005, put the first search navigation object set back into the automatic search term collection queue. The scheduled task is now complete.
[0032] In this embodiment, obtaining the input content information includes: Define an input box element in the HTML page, define the ID value of the input box element as searchId, call the search navigation input box binding function, and pass searchId to the search navigation input box binding function; Check the parameters passed to the function binding the search navigation input box. If the parameters passed to the function binding the search navigation input box are not empty, then... The DOM object of the input field is obtained by passing parameters to the function binding the search navigation input field and assigned to a global variable named `searchDom`. If the global variable `searchDom` is not empty, then... Use the `searchDom` variable to enable input event listening for the input box. If the input content in the input box is obtained and assigned to a string variable named `searchVal`, then the `searchVal` variable is used to request the search navigation data query interface.
[0033] In this embodiment, the step of querying all search navigation objects in the database that contain the input content information to obtain a set of search navigation objects includes: The search navigation data query interface retrieves the value of the searchVal variable, queries all search navigation objects containing searchVal based on the value of searchVal, obtains a collection of search navigation objects, and returns the collection of search navigation objects.
[0034] In this embodiment, displaying the set of search navigation objects in the operable display area includes: Upon receiving the returned set of search navigation objects, the set of search navigation objects is displayed in the drop-down option area of the input box. The drop-down option area of the input box can display the navigation name and string fragment of the search navigation object, and hide the navigation route address of the search navigation object.
[0035] The following examples further illustrate this application in detail. It is understood that these examples do not constitute any limitation on this application.
[0036] The Java server integrates the Java SDK package, and the web client integrates the JavaScript SDK package.
[0037] Enable response interceptor: Step 1: Integrate the JavaScript SDK package into the web client. After the user logs in successfully on the web client, call the first function of the response interceptor to start the response interceptor (the first function starts the response interceptor, does not require parameters, has no return value, and its purpose is to start the response interceptor). After the response interceptor is successfully started, a global variable named InterceptorOpen will be assigned the value true.
[0038] Response interceptor operation process: The first step of the response interceptor: When the response interceptor intercepts the request and response, it checks if the global variable InterceptorOpen is not equal to true, and the interception ends. Then it checks if the global variable InterceptorOpen is equal to true and proceeds to the second step of the response interceptor.
[0039] The second step of the response interceptor: After the response interceptor is successfully started, when a user operates a function of the business module and triggers a request, the response interceptor is triggered when the request has a response result, and the process proceeds to the third step of the response interceptor.
[0040] The third step of the response interceptor: The response interceptor obtains the response object, checks the response status code in the response object, and if the response status code is not equal to 200, the current interception operation ends. If the response status code is equal to 200, proceed to the fourth step of the response interceptor.
[0041] The fourth step of the response interceptor is to obtain the current navigation route address, obtain the current route address name, obtain the response content and convert it into a string fragment, use the current navigation route address, the current route address name and the string fragment converted from the response content to form a search navigation object, and store the search navigation object as a value in the automatic search term collection queue.
[0042] Scheduled task execution: The first step of the scheduled task: After the web client integrates the javascript SDK package, the scheduled task will start automatically. The scheduled task will be executed every 30 seconds. The execution content is to retrieve all the search navigation objects from the search term automatic collection queue to obtain a first set of search navigation objects. The first set of search navigation objects is then used to request the search navigation data saving interface, and then the second step of the scheduled task is started. The second step of the scheduled task: Upon receiving the request, the search navigation data saving interface retrieves the first set of search navigation objects, obtains all route addresses from the first set of search navigation objects, retrieves the second set of search navigation objects from the database based on the route addresses, loops through the second set of search navigation objects, uses the route address of the search navigation object as the key and the search navigation object as the value, and stores all objects in the second set of search navigation objects into a Map variable named `search`, declares a List variable named `saveSearch`, and loops through the first set of search navigation objects, proceeding with the following loop processing: Step 401: Obtain the search navigation object corresponding to the current loop and assign it to a variable named cSearchObj. Obtain the route address from the cSearchObj variable and assign it to a string variable named path. Use path to obtain the search navigation object from the search variable and assign it to a variable named usedSearchObj. Determine if the string fragment in the usedSearchObj variable contains the string fragment in the cSearchObj variable. End the current loop and execute the next loop. Determine if the string fragment in the usedSearchObj variable does not contain the string fragment in the cSearchObj variable and proceed to step 402.
[0043] Step 402: Concatenate the string fragments in the usedSearchObj variable and the string fragments in the cSearchObj variable together and assign the result to the string fragment in the usedSearchObj variable. Add the usedSearchObj variable to the saveSearch collection and proceed to the next iteration of the loop.
[0044] Once the loop completes, all unique search navigation objects are found and stored in the saveSearch collection, then proceed to the third step of the scheduled task.
[0045] The third step of the scheduled task is to save the saveSearch collection. If the save is successful, a 001 response code will be returned; if the save fails, a 005 response code will be returned. Then proceed to the fourth step of the scheduled task.
[0046] Step 4 of the scheduled task: Check the response code of the search navigation data saving interface (001: saving indicates success, 005: indicating failure). If the response code is 005, put the search navigation object set 1 back into the search term automatic collection queue. The scheduled task is complete. If the response code is 001, it means saving was successful. The scheduled task is complete.
[0047] Bind and enable input listener events for the search navigation input box: The first step for the input box is to define an input box element in the HTML page, define the ID value of the input box element as searchId, call the search navigation input box binding function, pass searchId to the search navigation input box binding function, and proceed to the second step of the input box.
[0048] Step 2 for the input box: Check the parameters passed to the search navigation input box binding function. If the parameters are empty, the binding function fails, the search navigation input box becomes unusable, and the binding process ends. If the parameters are not empty, proceed to step 3 for the input box: Step 3 for the input box: Use the parameters passed to the search navigation input box binding function to obtain the DOM object of the input box and assign it to a global variable named `searchDom`. If the `searchDom` global variable is empty, the search navigation input box binding function fails to bind, the search navigation input box becomes unusable, and the binding function ends. If the `searchDom` global variable is not empty, proceed to step 4 for the input box.
[0049] Step 4 for the input box: Use the searchDom variable to enable input event listening for the input box.
[0050] Enter the event listener content in the input box: The first step of the event listener is to retrieve the input content from the input box and assign it to a string variable named searchVal. Then, the search navigation data query interface is requested with the searchVal variable, thus proceeding to the second step of the event listener.
[0051] The second step of the event listener is to use the search navigation data query interface to obtain the value of the searchVal variable, query all search navigation objects containing searchVal based on the value of the searchVal variable, obtain a collection of search navigation objects, return the collection of search navigation objects, and then proceed to the third step of the event listener.
[0052] The third step in listening for events is to receive the returned collection of search navigation objects and display it in the input box dropdown area (showing the navigation name and string fragment of the search navigation object, and hiding the navigation route address of the search navigation object).
[0053] Route navigation in the input box dropdown option area: Click on the navigation name or string fragment of the search navigation object displayed in the drop-down option area of the input box to obtain the navigation route address of the hidden search navigation object, and use the navigation route address of the search navigation object to navigate to the specific function page of the business module.
[0054] Turn off the response interceptor.
[0055] The first step to close the response interceptor is to integrate the JavaScript SDK package into the web client. After the user logs out successfully, the second function of the response interceptor is called to close the response interceptor (the second function closes the response interceptor, does not require parameters, has no return value, and its purpose is to close the response interceptor). After the response interceptor is successfully closed, a global variable named InterceptorOpen will be assigned the value false. At this point, the process of closing the response interceptor is complete.
[0056] This application has the following advantages: The simple and lightweight integration of Java SDK packages and JavaScript SDK packages can effectively reduce development manpower costs.
[0057] The response interceptor can be turned on and off flexibly controlled, allowing developers to control whether to intercept and automatically process requests based on business modules and scenarios, giving them more flexible management capabilities.
[0058] The response interceptor automatically collects the queue cache using search terms, reducing the time spent on business requests.
[0059] The scheduled task method uploads search terms and automatically collects the search navigation object set in the queue to prevent excessive service requests from putting pressure on the server.
[0060] If the scheduled task fails to upload the collection of search and navigation objects, it will postpone the upload, effectively reducing the server load.
[0061] This solution provides Java SDK and JavaScript SDK packages that automatically collect search navigation object sets based on client-side user operations. Each user's login and client operation functions help improve the search navigation's search term functionality. Automatic learning and modular integration save on labor costs, project implementation, and maintenance costs.
[0062] For example, developers integrate the Java SDK package into the Java server and the JavaScript SDK package into the web client (e.g., business modules A, B, C, and D; assuming business modules A and B require the methods described in this application, while business modules C and D do not). In the HTML page, the developers define an input element with the ID value `searchId`. After successful login on the web client, the search navigation input box binding function is called. Then, during the initialization of business modules A and B, the first function of the response interceptor is called to enable the interceptor. When business modules A and B are opened by the user, the search navigation object set will be automatically collected. Finally, during the creation of business modules C and D, the second function of the response interceptor is called to disable the interceptor. When business modules C and D are opened by the user, the automatic collection of the search navigation object set will not be triggered.
[0063] Although the present invention has been described in detail above with general descriptions and specific embodiments, modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, all such modifications or improvements made without departing from the spirit of the present invention fall within the scope of protection claimed by the present invention.
Claims
1. A method for implementing search and navigation in a PC system based on client-side automatic learning, characterized in that, The PC-based system's search and navigation implementation method based on client-side automatic learning includes: Step 1: Enable the response interceptor; Step 2: The response interceptor intercepts the web client's request and response. When the request generates a response result, the response interceptor obtains the response object corresponding to the response result, extracts the response status code from the response object, and determines whether the response status code is equal to 200. If it is equal to 200, the interceptor obtains the navigation route address, route address name, and response result of the current business function, converts the response result into a search content string fragment, uses the navigation route address, route address name, and search content string fragment to form a search navigation object, and stores the search navigation object in the search term automatic collection queue. Step 3: Every preset period, retrieve all search navigation objects from the automatic search term collection queue, and the search navigation objects form the first search navigation object set; Step 4: Extract the navigation route addresses of all search navigation objects in the first search navigation object set, and query the historically saved search navigation objects from the database based on the navigation route addresses; all search navigation objects in the first search navigation object set and the queried historically saved search navigation objects form the second search navigation object set; Step 5: After deduplicating the second search navigation object set according to the first search navigation object set, store the information of the search navigation objects in the second search navigation object set that are not stored in the database into the database; The PC-based search and navigation implementation method based on client-side automatic learning further includes: Step 6: Obtain input content information; Step 7: Based on the input content information, query all search navigation objects in the database that contain the input content information to obtain a set of search navigation objects; Step 8: Display the collection of search navigation objects in the operable display area; Step 1: Enabling the response interceptor includes: After the web client detects the status signal of successful user login, it calls the function to start the response interceptor; when the response interceptor is started successfully, the global variable InterceptorOpen is set to true. The step of deduplicating the second search navigation object set according to the first search navigation object set and then storing the information of the search navigation objects in the second search navigation object set that are not stored in the database into the database includes: Using the route address of the search navigation object as the key and the search navigation object as the value, store all objects in the second search navigation object set into the Map variable of search. Declare a List type variable named saveSearch and search the first search navigation object set in a loop, thereby removing the search navigation objects that already exist in the first search navigation object set from the second search navigation object set. The step of iteratively searching the first set of search navigation objects to remove search navigation objects that already exist in the first set of search navigation objects from the second set of search navigation objects includes: Step 401: Obtain the search navigation object corresponding to the current loop and assign it to a variable named cSearchObj. Obtain the route address from the cSearchObj variable and assign it to a string variable named path. Use path to obtain the search navigation object from the search variable and assign it to a variable named usedSearchObj. If it is determined that the string fragment in the usedSearchObj variable contains the string fragment in the cSearchObj variable, then end the current loop and execute the next loop. If it is determined that the string fragment in the usedSearchObj variable does not contain the string fragment in the cSearchObj variable, proceed to step 402. Step 402: Concatenate the string fragments in the usedSearchObj variable and the string fragments in the cSearchObj variable together and assign the result to the string fragment in the usedSearchObj variable. Put the usedSearchObj variable into the saveSearch collection and proceed to the next loop until all unique search navigation objects are stored in the saveSearch collection. The step of cyclically searching the first set of search navigation objects to remove search navigation objects that already exist in the first set of search navigation objects from the second set of search navigation objects further includes: Step 403: Save the saveSearch collection. If the save is successful, a 001 response code will be returned. If the save fails, a 005 response code will be returned. Proceed to step 404. Step 404: Check the response code of the search navigation data saving interface, determine that the response code is equal to 005, put the first search navigation object set back into the search term automatic collection queue, and the scheduled task is completed; The acquisition of input content information includes: Define an input box element in the HTML page, define the ID value of the input box element as searchId, call the search navigation input box binding function, and pass searchId to the search navigation input box binding function; Check the parameters passed to the function binding the search navigation input box. If the parameters passed to the function binding the search navigation input box are not empty, then... The DOM object of the input field is obtained by passing parameters to the function binding the search navigation input field and assigned to a global variable named `searchDom`. If the global variable `searchDom` is not empty, then... Use the searchDom variable to start the input event listener for the input box. If the input content in the input box is obtained and assigned to a string variable named searchVal, then the search navigation data query interface is requested with the searchVal variable. The step of querying the database for all search navigation objects containing the input content information to obtain a set of search navigation objects includes: The search navigation data query interface obtains the value of the searchVal variable, queries all search navigation objects containing searchVal based on the value of the searchVal variable, obtains a collection of search navigation objects, and returns the collection of search navigation objects. The step of displaying the search navigation object set in the operable display area includes: Upon receiving the returned set of search navigation objects, the set of search navigation objects is displayed in the input box drop-down option area. The input box drop-down option area can display the navigation name and string fragment of the search navigation object, and hide the navigation route address of the search navigation object.
2. A PC-based search and navigation system based on client-side automatic learning, characterized in that, The PC-based system, a search and navigation implementation system based on client-side automatic learning, includes a Java server and a web client; the Java server includes a Java SDK package; the web client includes a JavaScript SDK package; wherein... The Java SDK package includes a search navigation data query interface and a search navigation data storage interface. After the search navigation data query interface is called, it returns a collection of search navigation objects. Each search navigation object in the first collection of search navigation objects contains a navigation route address, a route address name, and a string fragment of the search content. The search navigation data storage interface is used to receive a set of search navigation objects as a required parameter, and returns a response code after being called. The JavaScript SDK package includes functions for binding the search navigation input box, a response interceptor, a scheduled task, and an automatic search term collection queue. The response interceptor includes a start function and a stop function. The Java server and web client work together to implement the search and navigation method based on client-side automatic learning in the PC system as described in claim 1.
Citation Information
Patent Citations
Method and device for finding positioning method by application program
CN104572752A