Skip to content

Commit 07c169f

Browse files
authored
fix(specs): browseResponse, IndexSettings and searchResponse (#900)
1 parent f829d14 commit 07c169f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

specs/common/schemas/IndexSettings.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ indexSettingsAsSearchParams:
322322
- Query strategy
323323
distinct:
324324
$ref: '#/distinct'
325+
attributeForDistinct:
326+
description: Name of the de-duplication attribute to be used with the distinct feature.
327+
type: string
325328
synonyms:
326329
type: boolean
327330
description: Whether to take into account an index's synonyms for a particular search.

specs/search/common/schemas/SearchResponse.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ browseResponse:
1212
baseBrowseResponse:
1313
type: object
1414
additionalProperties: false
15-
required:
16-
- cursor
1715
properties:
1816
cursor:
1917
$ref: '../../../common/schemas/SearchParams.yml#/cursor'
@@ -39,7 +37,6 @@ baseSearchResponse:
3937
- hitsPerPage
4038
- processingTimeMS
4139
- exhaustiveNbHits
42-
- exhaustiveTypo
4340
- query
4441
- params
4542
properties:

tests/CTS/methods/requests/search/setSettings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@
293293
"exactPhrase"
294294
],
295295
"distinct": 3,
296+
"attributeForDistinct": "test",
296297
"synonyms": false,
297298
"replaceSynonymsInHighlight": true,
298299
"minProximity": 6,
@@ -426,6 +427,7 @@
426427
"exactPhrase"
427428
],
428429
"distinct": 3,
430+
"attributeForDistinct": "test",
429431
"synonyms": false,
430432
"replaceSynonymsInHighlight": true,
431433
"minProximity": 6,

0 commit comments

Comments
 (0)