Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkamel committed Jan 19, 2024
1 parent 6376cc6 commit ea5dff8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# CHANGELOG

## v3.8.0.

* Support Opensearch 1.x and 2.x

## v3.7.2

* Fix wrong AWS signatures by generating the json before passing it to http-rb
Expand Down
2 changes: 1 addition & 1 deletion lib/search_flip/aggregation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def to_hash
res[:aggregations] = aggregation_values if aggregation_values

if must_values || must_not_values || filter_values
if target.connection.version.to_i >= 2
if target.connection.distribution || target.connection.version.to_i >= 2
res[:filter] = {
bool: {}
.merge(must_values ? { must: must_values } : {})
Expand Down
2 changes: 1 addition & 1 deletion lib/search_flip/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module SearchFlip
VERSION = "3.7.2"
VERSION = "3.8.0"
end

0 comments on commit ea5dff8

Please sign in to comment.