Skip to content

Commit

Permalink
Fixed example description and added changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Quang Cap <[email protected]>
  • Loading branch information
Kim Quang Cap committed Jul 5, 2024
1 parent 08c3a3f commit 368c69b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [Unreleased]
### Added
- Added `script_score` to Query DSL ([#254](https://github.com/opensearch-project/opensearch-ruby/pull/254))
### Changed
### Deprecated
### Removed
Expand Down
4 changes: 2 additions & 2 deletions lib/opensearch/dsl/search/queries/script_score.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module OpenSearch
module DSL
module Search
module Queries
# A query which wraps another query and returns a customize score for matching documents
# A query which wraps another query and returns a customized score for matching documents
#
# @example
#
Expand All @@ -39,7 +39,7 @@ module Queries
# match content: 'Twitter'
# end
#
# script source: "_score * params['multiplier']"
# script source: "_score * params['multiplier']",
# params: { multiplier: 2.0 }
# end
# end
Expand Down

0 comments on commit 368c69b

Please sign in to comment.