Skip to content

Commit 20d4853

Browse files
committed
fix: facets type
1 parent a798976 commit 20d4853

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

specs/common/schemas/SearchParams.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,17 @@ baseSearchParamsWithoutQuery:
4343
restrictSearchableAttributes:
4444
$ref: '#/restrictSearchableAttributes'
4545
facets:
46-
$ref: '#/facets'
46+
type: array
47+
items:
48+
type: string
49+
description: |
50+
Facets for which to retrieve facet values that match the search criteria and the number of matching facet values
51+
To retrieve all facets, use the wildcard character `*`.
52+
For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
53+
default: []
54+
example: ['*']
55+
x-categories:
56+
- Faceting
4757
facetingAfterDistinct:
4858
$ref: '#/facetingAfterDistinct'
4959
page:
@@ -219,19 +229,6 @@ enableABTest:
219229
x-categories:
220230
- Advanced
221231

222-
facets:
223-
type: array
224-
items:
225-
type: string
226-
description: |
227-
Facets for which to retrieve facet values that match the search criteria and the number of matching facet values
228-
To retrieve all facets, use the wildcard character `*`.
229-
For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
230-
default: []
231-
example: ['*']
232-
x-categories:
233-
- Faceting
234-
235232
facetFilters:
236233
description: |
237234
Filter the search by facet values, so that only records with the same facet values are retrieved.

specs/composition-full/common/params/Search.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ exactOnSingleWordQuery:
7171
$ref: '../../../common/schemas/IndexSettings.yml#/exactOnSingleWordQuery'
7272

7373
facets:
74-
$ref: '../../../common/schemas/SearchParams.yml#/facets'
74+
$ref: '../../../common/schemas/SearchParams.yml#/baseSearchParamsWithoutQuery/properties/facets'
7575

7676
facetFilters:
7777
$ref: '../../../common/schemas/SearchParams.yml#/facetFilters'

0 commit comments

Comments
 (0)