Fast Search Music Sharing Reverse Index Partial Matching

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Users face frustration with slow search response times in music sharing environments, requiring them to enter complete queries and wait for results, leading to fatigue and a search for alternative engines that provide faster responses.

Innovation Solution

A method and system that processes character inputs of music data using a reverse index in a music database, allowing for partial query matching and caching of previous searches on client devices to provide results before the query is complete, while minimizing concurrency issues and optimizing keystroke timing to enhance responsiveness.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of time

If the user enters complete query characters in the search engine, then the search query is transmitted to the server, but the user experiences fatigue and long waiting time

Engineering Contradiction:
Improvesearch response timeVSAvoiduser input effort
Core Design Contradiction:
Loss of timeVSEase of operation

Solution Approach 1:

The system performs preliminary actions by pre-processing music data into a reverse index structure before user queries arrive. When a user types characters, the system can immediately search the pre-processed reverse index without waiting for complete query input, enabling partial matching and reducing response time significantly.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The search process is segmented into character-by-character processing rather than requiring complete query entry. Each character typed by the user triggers an independent search operation in the reverse index, allowing the system to respond progressively as the user types rather than waiting for the entire query.

Inventive Principle:
Principle #1Segmentation

2Speed

If the server processes complete queries before returning results, then data accuracy is maintained, but the search response becomes slow

Engineering Contradiction:
Improvesearch response speedVSAvoidquery processing accuracy
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The reverse index is pre-built by processing complete music database records beforehand, organizing data by characters and patterns. This preliminary organization allows the server to quickly retrieve accurate results for partial queries without processing the entire database in real-time, maintaining both speed and accuracy.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system performs partial actions by searching only for matching patterns up to the current character position rather than processing complete queries. This partial matching approach returns sufficient results quickly while the reverse index structure ensures accuracy is maintained through pre-computed character relationships.

Inventive Principle:
Principle #16Partial or excessive action

3Productivity

If the client device caches previous searches and results, then search speed is optimized, but device memory and bandwidth are consumed

Engineering Contradiction:
Improvesearch operation efficiencyVSAvoidcached data volume
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The caching mechanism implements local quality by storing only the most relevant and frequently accessed search patterns and results in the client device's local cache. This selective caching based on usage patterns and data relevance optimizes search speed for common queries while minimizing unnecessary data storage consumption.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The system discards outdated or rarely accessed cached data and recovers memory for new search patterns. The caching mechanism automatically manages data lifecycle by removing old entries and making space for current search queries, maintaining efficient cache utilization without excessive data accumulation.

Inventive Principle:
Principle #34Discarding and recovering

Data Source

PatentUS10896221B2Fast search in a music sharing environment
Publication Date: 2021.01.19 APPLE INC
  • US10896221B2 patent drawing
  • US10896221B2 patent drawing
  • US10896221B2 patent drawing

AI summary

A method, apparatus and system of method and system of directory sharing and management in a group communication environment is disclosed. In one embodiment, a method of a fast-search server includes processing a character of a query of music data, referencing the character with a reverse index of a music database, determining that the character matches a data record of the music database using the reverse index and returning the data record of the music database prior to receiving all characters of the query of music data from a user. The reverse index may be created from a combination of letters appearing as a string in a data field of the music database. The method may include preforking the character of the query of music data along with other processes in the fast-search server to minimize concurrency issues and to minimize threading locks.