SearchResult Stay organized with collections Save and categorize content based on your preferences.
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. |
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-08-26 UTC.