Skip to content

Commit 9e6420d

Browse files
Remove duplicate hits from SearchResult (#956)
* remove duplicate hits from SearchResult Signed-off-by: xil <[email protected]> * Add changelog Signed-off-by: xil <[email protected]> --------- Signed-off-by: xil <[email protected]> Signed-off-by: Harsha Vamsi Kalluri <[email protected]> Co-authored-by: Harsha Vamsi Kalluri <[email protected]>
1 parent 1285cbe commit 9e6420d

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
341341
- Removed `shape` query ([#531](https://github.com/opensearch-project/opensearch-api-specification/pull/531))
342342
- Removed unsupported DataStream Lifecycle types ([#600](https://github.com/opensearch-project/opensearch-api-specification/pull/600))
343343
- Removed unsupported runtime field types ([#634](https://github.com/opensearch-project/opensearch-api-specification/pull/634))
344+
- Removed duplicate hits from SearchResult ([#956](https://github.com/opensearch-project/opensearch-api-specification/pull/956))
344345
- Removed duplicate Suggest from SearchResult ([#957](https://github.com/opensearch-project/opensearch-api-specification/pull/957))
345346
### Fixed
346347

spec/schemas/_core.search.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,19 +1326,7 @@ components:
13261326
x-version-added: '2.12'
13271327
$ref: '_common.yaml#/components/schemas/PhaseTook'
13281328
hits:
1329-
allOf:
1330-
- $ref: '#/components/schemas/HitsMetadata'
1331-
- type: object
1332-
properties:
1333-
hits:
1334-
type: array
1335-
items:
1336-
allOf:
1337-
- $ref: '#/components/schemas/Hit'
1338-
- type: object
1339-
properties:
1340-
_source:
1341-
$ref: '#/components/schemas/TDocument'
1329+
$ref: '#/components/schemas/HitsMetadata'
13421330
processor_results:
13431331
x-version-added: '3.0'
13441332
type: array
@@ -1411,4 +1399,4 @@ components:
14111399
- title: phrase
14121400
$ref: '#/components/schemas/PhraseSuggest'
14131401
- title: term
1414-
$ref: '#/components/schemas/TermSuggest'
1402+
$ref: '#/components/schemas/TermSuggest'

0 commit comments

Comments
 (0)