Skip to content

Commit 6ce96bc

Browse files
committed
revert
1 parent 56ced7e commit 6ce96bc

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: '#/searchParamsFacets'
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:
@@ -453,19 +463,6 @@ restrictSearchableAttributes:
453463
x-categories:
454464
- Filtering
455465

456-
searchParamsFacets:
457-
type: array
458-
items:
459-
type: string
460-
description: |
461-
Facets for which to retrieve facet values that match the search criteria and the number of matching facet values
462-
To retrieve all facets, use the wildcard character `*`.
463-
For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
464-
default: []
465-
example: ['*']
466-
x-categories:
467-
- Faceting
468-
469466
ruleContexts:
470467
type: array
471468
items:

specs/composition/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#/searchParamsFacets'
74+
$ref: '../../../common/schemas/SearchParams.yml#/baseSearchParamsWithoutQuery/properties/facets'
7575

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

0 commit comments

Comments
 (0)