SearchResult Stay organized with collections Save and categorize content based on your preferences.
- JSON representation
- Chunk
- DocumentMetadata
- PageSpan
- ChunkMetadata
- AnnotationMetadata
- StructuredContent
- StructureType
- DoubleList
- RankSignals
- CustomSignal
Represents the search results.
| JSON representation |
|---|
{"id":string,"document":{object ( |
| Fields | |
|---|---|
id |
|
document |
The document data snippet in the search response. Only fields that are marked as |
chunk |
The chunk data in the search response if the |
modelScores |
Output only. Google provided available scores. |
rankSignals |
Optional. A set of ranking signals associated with the result. |
Chunk
Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode.
| JSON representation |
|---|
{"name":string,"id":string,"content":string,"documentMetadata":{object ( |
| Fields | |
|---|---|
name |
The full resource name of the chunk. Format: This field must be a UTF-8 encoded string with a length limit of 1024 characters. |
id |
Unique chunk ID of the current chunk. |
content |
Content is a string from a document (parsed content). |
documentMetadata |
Metadata of the document from the current chunk. |
derivedStructData |
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document. |
pageSpan |
Page span of the chunk. |
chunkMetadata |
Output only. Metadata of the current chunk. |
dataUrls[] |
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[ |
annotationContents[] |
Output only. Annotation contents if the current chunk contains annotations. |
annotationMetadata[] |
Output only. The annotation metadata includes structured content in the current chunk. |
relevanceScore |
Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on |
DocumentMetadata
Document metadata contains the information of the document of the current chunk.
| JSON representation |
|---|
{"uri":string,"title":string,"mimeType":string,"structData":{object}} |
| Fields | |
|---|---|
uri |
Uri of the document. |
title |
Title of the document. |
mimeType |
The mime type of the document.https://www.iana.org/assignments/media-types/media-types.xhtml. |
structData |
Data representation. The structured JSON data for the document. It should conform to the registered |
PageSpan
Page span of the chunk.
| JSON representation |
|---|
{"pageStart":integer,"pageEnd":integer} |
| Fields | |
|---|---|
pageStart |
The start page of the chunk. |
pageEnd |
The end page of the chunk. |
ChunkMetadata
Metadata of the current chunk. This field is only populated onSearchService.Search API.
| JSON representation |
|---|
{"previousChunks":[{object ( |
| Fields | |
|---|---|
previousChunks[] |
The previous chunks of the current chunk. The number is controlled by |
nextChunks[] |
The next chunks of the current chunk. The number is controlled by |
AnnotationMetadata
The annotation metadata includes structured content in the current chunk.
| JSON representation |
|---|
{"structuredContent":{object ( |
| Fields | |
|---|---|
structuredContent |
Output only. The structured content information. |
imageId |
Output only. Image id is provided if the structured content is based on an image. |
StructuredContent
The structured content information.
| JSON representation |
|---|
{"structureType":enum ( |
| Fields | |
|---|---|
structureType |
Output only. The structure type of the structured content. |
content |
Output only. The content of the structured content. |
StructureType
Defines the types of the structured content that can be extracted.
| Enums | |
|---|---|
STRUCTURE_TYPE_UNSPECIFIED | Default value. |
SHAREHOLDER_STRUCTURE | Shareholder structure. |
SIGNATURE_STRUCTURE | signature structure. |
CHECKBOX_STRUCTURE | Checkbox structure. |
DoubleList
Double list.
| JSON representation |
|---|
{"values":[number]} |
| Fields | |
|---|---|
values[] |
Double values. |
RankSignals
A set of ranking signals.
| JSON representation |
|---|
{"defaultRank":number,"customSignals":[{object ( |
| Fields | |
|---|---|
defaultRank |
Optional. The default rank of the result. |
customSignals[] |
Optional. A list of custom clearbox signals. |
keywordSimilarityScore |
Optional. Keyword matching adjustment. |
relevanceScore |
Optional. Semantic relevance adjustment. |
semanticSimilarityScore |
Optional. Semantic similarity adjustment. |
pctrRank |
Optional. Predicted conversion rate adjustment as a rank. |
topicalityRank |
Optional. Topicality adjustment as a rank. |
documentAge |
Optional. Age of the document in hours. |
boostingFactor |
Optional. Combined custom boosts for a doc. |
CustomSignal
Custom clearbox signal represented by name and value pair.
| JSON representation |
|---|
{"name":string,"value":number} |
| Fields | |
|---|---|
name |
Optional. name of the signal. |
value |
Optional. Float value representing the ranking signal (e.g. 1.25 for BM25). |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-12 UTC.