Client-Side Search Pre-Rendering and Resource Reuse
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional search methods on the Internet are slow due to the delay between user input and the initiation of the search request, leading to slow search response speeds.
Innovation Solution
A method where the client sends a search request to the server in real time as the user inputs keywords, pre-renders search result page resources in containers, and implements a multi-resource reusing strategy to improve search response speed by reusing identical resources across containers.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If the client waits for user input completion before sending search request, then the system resource consumption is reduced, but the search response speed becomes slow
Solution Approach 1:
The patent applies preliminary action by pre-fetching and pre-rendering search result page resources before the user actually initiates the search. When the user types keywords, the system proactively sends search requests and renders results in advance, so that when the user clicks the search button, the results are already prepared and can be displayed immediately, eliminating the waiting time.
Solution Approach 2:
The patent uses copying by creating container elements that replicate the structure and content of actual search result pages. These container elements are pre-filled with search results and stored in the client's memory, allowing instant display without needing to fetch and render the actual pages at the moment of user interaction.
2Speed
If the client pre-renders search result pages in advance, then the search response speed is improved, but the client's memory consumption increases
Solution Approach 1:
The patent applies segmentation by dividing the search result page into multiple container elements, each representing a portion of the results. Instead of loading the entire search result page at once, the system segments the results and pre-renders only necessary portions in separate containers, reducing the overall memory consumption while still achieving fast response times.
Solution Approach 2:
The patent uses local quality by selectively pre-rendering only specific portions of search results that are most likely to be needed, rather than uniformly pre-rendering all possible results. The system identifies and prioritizes certain result sections based on user behavior patterns, allocating memory resources efficiently to the most valuable content.
3Adaptability or versatility
If multiple search result pages are rendered simultaneously, then the user can quickly access any search result, but the device's processing resources are overwhelmed
Solution Approach 1:
The patent applies dynamics by making the pre-rendering process adaptive and dynamic rather than static. The system continuously monitors user typing behavior, keyword changes, and search patterns to dynamically adjust which search results are pre-rendered and in what priority. This allows the system to optimize resource allocation in real-time based on actual user needs.
Solution Approach 2:
The patent uses feedback by monitoring user interactions with pre-rendered search results and using this information to adjust future pre-rendering decisions. The system learns from user behavior patterns, such as which results are clicked most frequently or which keywords lead to searches, and uses this feedback to prioritize pre-rendering of relevant results, reducing unnecessary processing load.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
A search method and apparatus, an electronic device and a storage medium are provided, which relate to the intelligent search technology field. The method includes: sending a first search request to a server in response to a first keyword inputted by a user; in a process of returning resources of a first search result page by the server, pre-rendering the returned resources in a first container; when detecting that the user changes a current keyword to a second keyword, sending a second search request to the server; in a process of returning resources of a second search result page by the server, pre-rendering the returned resources in a second container; and when a search instruction inputted by the user is detected, outputting resources in a container corresponding to the current keyword in response to the search instruction. The search response speed may be improved according to the present application.