Social Network Search Query Prediction and Caching

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Social networking systems face challenges in efficiently searching for objects within social graphs due to the complexity of network structures and the need for faster query processing, especially in mobile contexts where data transmission can be slow.

Innovation Solution

The system generates structured queries with auto-populated search terms and anticipates user queries, pre-generating search results which are cached on the client device, allowing for immediate retrieval when the query is completed, thereby speeding up the search process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If the system performs real-time search queries on complex social graphs, then search accuracy is maintained, but response time increases and user experience deteriorates

Engineering Contradiction:
Improvesearch accuracyVSAvoidresponse time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs preliminary actions by predicting user search queries based on current context (location, time, social connections) and pre-computing search results before the user actually submits the query. This allows the system to have results ready in advance, significantly reducing response time while maintaining accuracy through context-aware prediction

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system dynamically adjusts search behavior based on user context and behavior patterns. It adapts prediction models in real-time based on user interactions, social graph changes, and environmental factors, allowing the system to optimize between accuracy and speed based on current conditions

Inventive Principle:
Principle #15Dynamics

2Quantity of substance

If the system transmits search results from server to mobile device, then comprehensive results are provided, but data transmission time increases due to network limitations

Engineering Contradiction:
Improvesearch results completenessVSAvoiddata transmission speed
Core Design Contradiction:
Quantity of substanceVSSpeed

Solution Approach 1:

The system pre-computes and prepares search results on the server side before the user needs them, based on predicted queries. This shifts the computational workload to the server, allowing faster local retrieval on mobile devices without compromising result completeness

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates copies of predicted search results and caches them locally on the mobile device. This allows the device to display results immediately from local storage without waiting for network transmission, while the server maintains the master copy for updates and accuracy

Inventive Principle:
Principle #26Copying

3Measurement precision

If the system waits for complete user query input before generating results, then query accuracy is ensured, but user waiting time increases

Engineering Contradiction:
Improvequery accuracyVSAvoiduser waiting time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs preliminary query generation and result computation based on partial user input and contextual information before the user finishes typing. It predicts the complete query intent from partial input and prepares results in advance, reducing waiting time while maintaining accuracy through context-aware prediction

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system performs partial search actions based on incomplete query input, using context clues to anticipate the full query intent. It provides preliminary results based on partial information and refines them as the user continues inputting, rather than waiting for complete input before any action

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS10255365B2Priming search results on online social networks
Publication Date: 2019.04.09 META PLATFORMS INC
  • US10255365B2 patent drawing
  • US10255365B2 patent drawing
  • US10255365B2 patent drawing

AI summary

In one embodiment, a method includes receiving from a client device of a first user of an online social network a partial query input including a first character string. The method may determine one or more predicted queries based on the partial query input. The method may generate one or more search results for each of the predicted queries. The method may send, in response to receiving the partial query input, one or more of the search results to the client device for storage in a cache of the client device. The method may also retrieve, in response to receiving a completed query input from the first user, one or more of the search results from the cache of the client device for display. The completed query input may include a second character string, where the second character string may include at least the first character string.