Response message for SearchService.Search
method.
JSON representation |
---|
{ "results": [ { object ( |
Fields | |
---|---|
results[] |
A list of matched documents. The order represents the ranking. |
facets[] |
Results of facets requested by user. |
guidedSearchResult |
Guided search result. |
totalSize |
The estimated total count of matched items irrespective of pagination. The count of |
attributionToken |
A unique search token. This should be included in the |
redirectUri |
The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only |
nextPageToken |
A token that can be sent as |
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. |
summary |
A summary as part of the search results. This field is only returned if |
appliedControls[] |
Controls applied as part of the Control service. |
queryExpansionInfo |
Query expansion information for the returned results. |
Facet
A facet result.
JSON representation |
---|
{
"key": string,
"values": [
{
object ( |
Fields | |
---|---|
key |
The key for this facet. E.g., "colors" or "price". It matches |
values[] |
The facet values for this field. |
dynamicFacet |
Whether the facet is dynamically generated. |
FacetValue
A facet value which contains value names and their count.
JSON representation |
---|
{ "count": string, // Union field |
Fields | |
---|---|
count |
Number of items that have this facet value. |
Union field facet_value . A facet value which contains values. facet_value can be only one of the following: |
|
value |
Text value of a facet, such as "Black" for facet "colors". |
interval |
Interval value for a facet, such as [10, 20) for facet "price". It matches |
GuidedSearchResult
Guided search result. The guided search helps user to refine the search results and narrow down to the real needs from a broaded search results.
JSON representation |
---|
{
"refinementAttributes": [
{
object ( |
Fields | |
---|---|
refinementAttributes[] |
A list of ranked refinement attributes. |
followUpQuestions[] |
Suggested follow-up questions. |
RefinementAttribute
Useful attribute for search result refinements.
JSON representation |
---|
{ "attributeKey": string, "attributeValue": string } |
Fields | |
---|---|
attributeKey |
Attribute key used to refine the results e.g. 'movie_type'. |
attributeValue |
Attribute value used to refine the results e.g. 'drama'. |
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 |