Skip to content

Commit b334752

Browse files
committed
[API] Updates open_point_in_time with request body
1 parent f151035 commit b334752

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module Actions
3030
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
3131
# @option arguments [String] :keep_alive Specific the time to live for the point in time (*Required*)
3232
# @option arguments [Hash] :headers Custom HTTP headers
33+
# @option arguments [Hash] :body An index_filter specified with the Query DSL
3334
#
3435
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html
3536
#
@@ -47,7 +48,7 @@ def open_point_in_time(arguments = {})
4748
arguments = arguments.clone
4849
headers = arguments.delete(:headers) || {}
4950

50-
body = nil
51+
body = arguments.delete(:body)
5152

5253
_index = arguments.delete(:index)
5354

0 commit comments

Comments
 (0)