Skip to content

Commit

Permalink
opensearchapi: add MaxScore field to ScrollGetResp
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Hahn <[email protected]>
  • Loading branch information
Jakob3xD committed Aug 27, 2024
1 parent bac1856 commit 35591ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

### Added
- Adds `Suggest` to `SearchResp` ([#602](https://github.com/opensearch-project/opensearch-go/pull/602))
- Adds `MaxScore` to `ScrollGetResp` ([#607](https://github.com/opensearch-project/opensearch-go/pull/607))

### Changed
- Split SnapshotGetResp into sub structs ([#603](https://github.com/opensearch-project/opensearch-go/pull/603))
Expand Down
5 changes: 3 additions & 2 deletions opensearchapi/api_scroll-get.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ type ScrollGetResp struct {
MaxScore float32 `json:"max_score"`
Hits []SearchHit `json:"hits"`
} `json:"hits"`
ScrollID *string `json:"_scroll_id,omitempty"`
TerminatedEarly bool `json:"terminated_early"`
ScrollID *string `json:"_scroll_id,omitempty"`
TerminatedEarly bool `json:"terminated_early"`
MaxScore *float32 `json:"max_score"`
response *opensearch.Response
}

Expand Down

0 comments on commit 35591ee

Please sign in to comment.