Skip to content

Commit

Permalink
Fix refresh having a empty body (#19, #20)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkamel authored Mar 13, 2021
1 parent 14ed4ee commit 4900131
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- elasticsearch:5.4
- docker.elastic.co/elasticsearch/elasticsearch:6.7.0
- docker.elastic.co/elasticsearch/elasticsearch:7.0.0
- docker.elastic.co/elasticsearch/elasticsearch:7.9.0
- docker.elastic.co/elasticsearch/elasticsearch:7.11.2
ruby:
- 2.5
- 2.6
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# CHANGELOG

## v3.2.1

* Fix `refresh` having a empty body breaking in elasticsearch 7.11

## v3.2.0

* Fix `index_scope` not being passed in `each_record` without block
Expand Down
2 changes: 1 addition & 1 deletion lib/search_flip/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def get_index_settings(index_name)
# @return [Boolean] Returns true or raises SearchFlip::ResponseError

def refresh(index_names = nil)
http_client.post("#{index_names ? index_url(Array(index_names).join(",")) : base_url}/_refresh", json: {})
http_client.post("#{index_names ? index_url(Array(index_names).join(",")) : base_url}/_refresh")

true
end
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.2.0"
VERSION = "3.2.1"
end

0 comments on commit 4900131

Please sign in to comment.