---
title: "SearchSortKeys"
description: "搜索查询的有效排序键集"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/enums/search-sort-keys'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/enums/search-sort-keys.md'
---
# SearchSortKeys

搜索查询的有效排序键集

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

## Type Signature

`SearchSortKeys`

## Values

* `PRICE`

  按**商品售价**排序

* `RELEVANCE`

  按与搜索词的**相关性**排序

## Schema Definition

```graphql
enum SearchSortKeys { 
	PRICE 
	RELEVANCE  
}
```

## Argument from

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

  搜索结果列表

## Error Handling

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

