- JSON representation
- SearchResult
- QueryExpansionInfo
- ExperimentInfo
- ServingConfigExperiment
- ConversationalSearchResult
- AdditionalFilter
- SuggestedAnswer
- TileNavigationResult
Response message for SearchService.Search
method.
JSON representation |
---|
{ "results": [ { object ( |
Fields | |
---|---|
results[] |
A list of matched items. The order represents the ranking. |
facets[] |
Results of facets requested by user. |
totalSize |
The estimated total count of matched items irrespective of pagination. The count of |
correctedQuery |
Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on correctedQuery. Otherwise the original query is used for search. |
attributionToken |
A unique search token. This should be included in the |
nextPageToken |
A token that can be sent as |
queryExpansionInfo |
Query expansion information for the returned results. |
redirectUri |
The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only |
appliedControls[] |
The fully qualified resource name of applied controls. |
invalidConditionBoostSpecs[] |
The invalid |
experimentInfo[] |
Metadata related to A/B testing |
conversationalSearchResult |
This field specifies all related information that is needed on client side for UI rendering of conversational retail search. |
tileNavigationResult |
This field specifies all related information for tile navigation that will be used in client side. |
SearchResult
Represents the search results.
JSON representation |
---|
{
"id": string,
"product": {
object ( |
Fields | |
---|---|
id |
|
product |
The product data snippet in the search response. Only
If relevancy can be deternmined, use |
matchingVariantCount |
|
matchingVariantFields |
If a For example, a key "sku1" with field mask "products.color_info" indicates there is a match between "sku1" |
variantRollupValues |
The rollup matching For textual and numerical attributes, the rollup values is a list of string or double values with type
For |
personalLabels[] |
Specifies previous events related to this product for this user based on This is set only when Possible values:
|
QueryExpansionInfo
Information describing query expansion including whether expansion has occurred.
JSON representation |
---|
{ "expandedQuery": boolean, "pinnedResultCount": string } |
Fields | |
---|---|
expandedQuery |
Bool describing whether query expansion has occurred. |
pinnedResultCount |
Number of pinned results. This field will only be set when expansion happens and |
ExperimentInfo
Metadata for active A/B testing Experiment
.
JSON representation |
---|
{ "experiment": string, // Union field |
Fields | |
---|---|
experiment |
The fully qualified resource name of the experiment that provides the serving config under test, should an active experiment exist. For example: |
Union field experiment_metadata . Information associated with the specific experiment entity being recorded. experiment_metadata can be only one of the following: |
|
servingConfigExperiment |
A/B test between existing Cloud Retail Search |
ServingConfigExperiment
Metadata for active serving config A/B tests.
JSON representation |
---|
{ "originalServingConfig": string, "experimentServingConfig": string } |
Fields | |
---|---|
originalServingConfig |
The fully qualified resource name of the original |
experimentServingConfig |
The fully qualified resource name of the serving config |
ConversationalSearchResult
This field specifies all related information that is needed on client side for UI rendering of conversational retail search.
JSON representation |
---|
{ "conversationId": string, "refinedQuery": string, "additionalFilters": [ { object ( |
Fields | |
---|---|
conversationId |
Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's |
refinedQuery |
The current refined query for the conversational search. This field will be used in customer UI that the query in the search bar should be replaced with the refined query. For example, if |
additionalFilters[] |
This field is deprecated but will be kept for backward compatibility. There is expected to have only one additional filter and the value will be the same to the same as field |
followupQuestion |
The follow-up question. e.g., |
suggestedAnswers[] |
The answer options provided to client for the follow-up question. |
additionalFilter |
This is the incremental additional filters implied from the current user answer. User should add the suggested addition filters to the previous |
AdditionalFilter
Additional filter that client side need to apply.
JSON representation |
---|
{
"productAttributeValue": {
object ( |
Fields | |
---|---|
productAttributeValue |
Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future. |
SuggestedAnswer
Suggested answers to the follow-up question.
JSON representation |
---|
{
"productAttributeValue": {
object ( |
Fields | |
---|---|
productAttributeValue |
Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future. |