# US 2023/0409550 A1 · Generic Index for Protobuf Data

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

- Number: US 2023/0409550 A1
- Document ID: US20230409550A1
- Status: Published application
- Kind: A1
- Application number: 17/841,874
- Filed: 2022-06-16
- Published: 2023-12-21
- Earliest claimed: 2022-06-16
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Hui Wu
- Web page: https://patentgrep.com/patent/US20230409550A1

## CPC

- G06F 16/2272: {Management thereof}
- G06F 16/81: Indexing, e.g. XML tags; Data structures therefor; Storage structures
- G06F 16/2246: {Trees, e.g. B+trees}
- G06F 16/248: Presentation of query results
- G06F 16/86: {Mapping to a database}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Aspects of the disclosure are directed to an approach for building a generic framework to allow protocol buffer data to be fully text searchable and matched fields to be quickly identified. The approach includes converting protocol buffer data from a tree structure into a field-value pair structure. The field-value pair structure can represent any protocol buffer and any new protocol buffer definition change can be adopted automatically. The approach further includes building a reverse index at a record level, which can immediately indicate the fields for each token.

## Claims

### Claim 1

A method for searching protocol buffer data comprising:
converting, with one or more processors, protocol buffer data from a tree structure into a field-value pair structure, a field portion of each field-value pair representing leaf fields of the tree structure and a value portion of each field-value pair representing one or more terms appearing in the respective field; and
generating, with the one or more processors, a reverse index of the field-value pairs, the reverse index comprising a term-to-field list that maps the terms with the respective fields in which they appear.

### Claim 2 (depends on 1)

The method of claim 1, further comprising generating, with the one or more processors, a search result based on the generated reverse index.

### Claim 3 (depends on 1)

The method of claim 1, wherein the field portion of each field-value pair is a field index.

### Claim 4 (depends on 3)

The method of claim 3, wherein the field index comprises one of an integer key or a string of characters.

### Claim 5 (depends on 1)

The method of claim 1, further comprising generating, with the one or more processors, a weight for the field portion of each field-value pair based on the respective value portion.

### Claim 6 (depends on 5)

The method of claim 5, further comprising determining, with the one or more processors, a ranking score for a search result based on a summation of weights generated for the field portion of field-value pairs related to the search.

### Claim 7 (depends on 1)

The method of claim 1, further comprising highlighting, with the one or more processors, matched terms in a search result based on the generated reverse index.

### Claim 8 (depends on 1)

The method of claim 1, further comprising highlighting, with the one or more processors, related terms in a search result based on the generated reverse index.

### Claim 9

A system comprising:
one or more processors; and
one or more storage devices coupled to the one or more processors and storing instructions that, when executed by the one or more processors, causes the one or more processors to perform operations for searching protocol buffer data, the operations comprising:
converting protocol buffer data from a tree structure into a field-value pair structure, a field portion of each field-value pair representing leaf fields of the tree structure and a value portion of each field-value pair representing one or more terms appearing in the respective field; and
generating a reverse index of the field-value pairs, the reverse index comprising a term-to-field list that maps the terms with the respective fields in which they appear.

### Claim 10 (depends on 9)

The system of claim 9, wherein the operations further comprise generating a search result based on the generated reverse index.

### Claim 11 (depends on 9)

The system of claim 9, wherein the field portion of each field-value pair is a field index, the field index comprising one of an integer key or a string of characters.

### Claim 12 (depends on 9)

The system of claim 9, wherein the operations further comprise generating a weight for the field portion of each field-value pair based on the respective value portion.

### Claim 13 (depends on 12)

The system of claim 12, wherein the operations further comprise determining a ranking score for a search result based on a summation of weights generated for the field portion of field-value pairs related to the search.

### Claim 14 (depends on 9)

The system of claim 9, wherein the operations further comprise highlighting at least one of matched terms or related terms in a search result based on the generated reverse index.

### Claim 15

A non-transitory computer readable medium for storing instructions that, when executed by one or more processors, causes the one or more processors to perform operations for searching protocol buffer data, the operations comprising:
converting protocol buffer data from a tree structure into a field-value pair structure, a field portion of each field-value pair representing leaf fields of the tree structure and a value portion of each field-value pair representing one or more terms appearing in the respective field; and
generating a reverse index of the field-value pairs, the reverse index comprising a term-to-field list that maps the terms with the respective fields in which they appear.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the operations further comprise generating a search result based on the generated reverse index.

### Claim 17 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the field portion of each field-value pair is a field index, the field index comprising one of an integer key or a string of characters.

### Claim 18 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the operations further comprise generating a weight for the field portion of each field-value pair based on the respective value portion.

### Claim 19 (depends on 18)

The non-transitory computer readable medium of claim 18, wherein the operations further comprise determining a ranking score for a search result based on a summation of weights generated for the field portion of field-value pairs related to the search.

### Claim 20 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the operations further comprise highlighting at least one of matched terms or related terms in a search result based on the generated reverse index.
