# US 2017/0293617 A1 · Unified storage system for online image searching and offline image analytics

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0293617 A1
- Document ID: US20170293617A1
- Status: Published application
- Kind: A1
- Application number: 15/092,503
- Filed: 2016-04-06
- Published: 2017-10-12
- Earliest claimed: 2016-04-06
- Assignees: Baidu USA LLC
- Applicants: Baidu USA LLC
- Inventors: Haojun Wang; Shaoshan Liu; James Peng
- Web page: https://patentgrep.com/patent/US20170293617A1

## CPC

- G06F 16/51: Indexing; Data structures therefor; Storage structures
- G06F 16/137: {Hash-based (content-based indexing of textual data G06F16/31)}
- G06F 16/5866: {using information manually generated, e.g. tags, keywords, comments, manually generated location and time information}
- H04L 45/7453: using hashing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

According to one embodiment, a master storage node receives a search query for searching images from a client, where the master storage node is coupled to a number of worker storage nodes over a storage network. The master storage node performs a hash operation on one or more keywords of the search query using a first predetermined hash function, generating a first hash value. A first of the worker storage nodes is identified based on the first hash value. The master storage node redirects the search query to the first worker storage node to allow the first worker storage node service the search query. The first worker storage node is to identify one or more images from a first system memory of the first worker storage node based on the search query and to transmit the one or more images to the client.

## Claims

### Claim 1

A computer-implemented method for searching images, the method comprising:
receiving at a master storage node a search query for searching images from a client, the master storage node being coupled to a plurality of worker storage nodes over a storage network;
performing at the master storage node a hash operation on one or more keywords of the search query using a first predetermined hash function, generating a first hash value;
identifying a first of the worker storage nodes based on the first hash value; and
redirecting the search query to the first worker storage node to allow the first worker storage node service the search query, wherein the first worker storage node is to identify one or more images from a first system memory of the first worker storage node based on the search query and to transmit the one or more images to the client.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the worker storage nodes is an in-memory storage node that stores substantially all images to be served in a system memory of the worker storage node at all time during operations of the worker storage node.

### Claim 3 (depends on 1)

The method of claim 1, wherein the client is one of a Web server that provides Web image searching services to browsing users or an analytics server that provides image analytics services to analytics users.

### Claim 4 (depends on 3)

The method of claim 3, wherein images stored in the worker storage nodes are non-duplicated images that are used by the Web server and the analytics server to provide image browsing services and image analytics services to the browsing users and analytics users, respectively.

### Claim 5 (depends on 1)

The method of claim 1, wherein identifying a first of the worker storage nodes based on the first hash value comprises:
performing a lookup operation in a storage node mapping table based on the first hash value to locate a first mapping entry matching the first hash value; and
obtaining a first storage node identifier (ID) identifying the first worker storage node from the matching entry, wherein the storage node mapping table includes a plurality of mapping entries, each mapping a hash value to a storage node ID.

### Claim 6 (depends on 1)

The method of claim 1, wherein, in response to the search query, the first worker storage node is to retrieve the one or more images directly from the first system memory and to return the one or more images to the client, without having to retrieve the one or more images from a persistent storage device associated with the first worker storage node.

### Claim 7 (depends on 1)

The method of claim 1, wherein, in response to the search query, the first worker storage node is to
perform a hash operation on the search query using a second predetermined hash function, generating a second hash value, and
determine the one or more images based on the second hash value.

### Claim 8 (depends on 7)

The method of claim 7, wherein the first worker storage node is further to
perform a lookup operation in an image store index based on the hash value to determine one or more image identifiers (IDs) identifying the one or more images, and
retrieve the one or more images based on the image IDs from the system memory.

### Claim 9

A non-transitory machine-readable medium having instructions stored therein, which when executed by a processor, cause the processor to perform operations of searching images, the operations comprising:
receiving at a master storage node a search query for searching images from a client, the master storage node being coupled to a plurality of worker storage nodes over a storage network;
performing at the master storage node a hash operation on one or more keywords of the search query using a first predetermined hash function, generating a first hash value;
identifying a first of the worker storage nodes based on the first hash value; and
redirecting the search query to the first worker storage node to allow the first worker storage node service the search query, wherein the first worker storage node is to identify one or more images from a first system memory of the first worker storage node based on the search query and to transmit the one or more images to the client.

### Claim 10 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein each of the worker storage nodes is an in-memory storage node that stores substantially all images to be served in a system memory of the worker storage node at all time during operations of the worker storage node.

### Claim 11 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein the client is one of a Web server that provides Web image searching services to browsing users or an analytics server that provides image analytics services to analytics users.

### Claim 12 (depends on 11)

The non-transitory machine-readable medium of claim 11, wherein images stored in the worker storage nodes are non-duplicated images that are used by the Web server and the analytics server to provide image browsing services and image analytics services to the browsing users and analytics users, respectively.

### Claim 13 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein identifying a first of the worker storage nodes based on the first hash value comprises:
performing a lookup operation in a storage node mapping table based on the first hash value to locate a first mapping entry matching the first hash value; and
obtaining a first storage node identifier (ID) identifying the first worker storage node from the matching entry, wherein the storage node mapping table includes a plurality of mapping entries, each mapping a hash value to a storage node ID.

### Claim 14 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein, in response to the search query, the first worker storage node is to retrieve the one or more images directly from the first system memory and to return the one or more images to the client, without having to retrieve the one or more images from a persistent storage device associated with the first worker storage node.

### Claim 15 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein, in response to the search query, the first worker storage node is to
perform a hash operation on the search query using a second predetermined hash function, generating a second hash value, and
determine the one or more images based on the second hash value.

### Claim 16 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the first worker storage node is further to
perform a lookup operation in an image store index based on the hash value to determine one or more image identifiers (IDs) identifying the one or more images, and
retrieve the one or more images based on the image IDs from the system memory.

### Claim 17

A data processing system operating as a master storage node, the system comprising:
a processor;
a memory coupled to the processor for storing instructions, which when executed by the processor, cause the processor to perform operations of search images, the operations including
receiving a search query for searching images from a client, the master storage node being coupled to a plurality of worker storage nodes over a storage network,
performing a hash operation on one or more keywords of the search query using a first predetermined hash function, generating a first hash value,
identifying a first of the worker storage nodes based on the first hash value, and
redirecting the search query to the first worker storage node to allow the first worker storage node service the search query, wherein the first worker storage node is to identify one or more images from a first system memory of the first worker storage node based on the search query and to transmit the one or more images to the client.

### Claim 18 (depends on 17)

The system of claim 17, wherein each of the worker storage nodes is an in-memory storage node that stores substantially all images to be served in a system memory of the worker storage node at all time during operations of the worker storage node.

### Claim 19 (depends on 17)

The system of claim 17, wherein the client is one of a Web server that provides Web image searching services to browsing users or an analytics server that provides image analytics services to analytics users.

### Claim 20 (depends on 19)

The system of claim 19, wherein images stored in the worker storage nodes are non-duplicated images that are used by the Web server and the analytics server to provide image browsing services and image analytics services to the browsing users and analytics users, respectively.

### Claim 21 (depends on 17)

The system of claim 17, wherein identifying a first of the worker storage nodes based on the first hash value comprises:
performing a lookup operation in a storage node mapping table based on the first hash value to locate a first mapping entry matching the first hash value; and
obtaining a first storage node identifier (ID) identifying the first worker storage node from the matching entry, wherein the storage node mapping table includes a plurality of mapping entries, each mapping a hash value to a storage node ID.

### Claim 22 (depends on 17)

The system of claim 17, wherein, in response to the search query, the first worker storage node is to retrieve the one or more images directly from the first system memory and to return the one or more images to the client, without having to retrieve the one or more images from a persistent storage device associated with the first worker storage node.

### Claim 23 (depends on 17)

The system of claim 17, wherein, in response to the search query, the first worker storage node is to
perform a hash operation on the search query using a second predetermined hash function, generating a second hash value, and
determine the one or more images based on the second hash value.

### Claim 24 (depends on 23)

The system of claim 23, wherein the first worker storage node is further to
perform a lookup operation in an image store index based on the hash value to determine one or more image identifiers (IDs) identifying the one or more images, and
retrieve the one or more images based on the image IDs from the system memory.
