---
title: "PredictiveSearchResult"
description: "预测搜索结果，表示与预测搜索查询匹配的列表"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/predictive-search-result'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/predictive-search-result.md'
---
# PredictiveSearchResult

预测搜索结果，表示与预测搜索查询匹配的列表

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`PredictiveSearchResult`

## Fields

* `products`

  [[Product]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product.md)

  与搜索查询匹配的产品

* `queries`

  [[SearchQuerySuggestion!]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/search-query-suggestion.md)

  与搜索查询相关的查询建议

## Schema Definition

```graphql
type PredictiveSearchResult { 
	products: [Product]
	queries: [SearchQuerySuggestion!] 
}
```

## Field from

* [Query](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/queries/predictive-search.md).predictiveSearch

  预测搜索结果数组

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

