Skip to content

Commit 36b4a04

Browse files
authored
update score type (opensearch-project#176)
1 parent 7a90a68 commit 36b4a04

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
### Added
77

88
### Changed
9+
update `score` type. ([#176](https://github.com/opensearch-project/opensearch-protobufs/pull/176))
910

1011
### Removed
1112

protos/schemas/search.proto

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,13 @@ message InnerHitsResult {
452452

453453
}
454454

455+
message HitUnderscoreScore {
456+
oneof hit_underscore_score {
457+
double double = 1;
458+
NullValue null_value = 2;
459+
}
460+
}
461+
455462
message HitsMetadataHitsInner {
456463

457464
optional string underscore_type = 1;
@@ -462,7 +469,7 @@ message HitsMetadataHitsInner {
462469
string underscore_id = 3;
463470

464471
// [optional] Relevance of the returned document.
465-
repeated FieldValue score = 4;
472+
optional HitUnderscoreScore score = 4;
466473

467474
// [optional] Explanation of how the relevance score (_score) is calculated for every result.
468475
optional Explanation explanation = 5;

0 commit comments

Comments
 (0)