Skip to content

Commit 89246c7

Browse files
committed
[API] Support if_primary_term param on index API
1 parent 5e26532 commit 89246c7

File tree

1 file changed

+2
-1
lines changed
  • elasticsearch-api/lib/elasticsearch/api/actions

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ def index(arguments={})
119119
:ttl,
120120
:version,
121121
:version_type,
122-
:if_seq_no ].freeze)
122+
:if_seq_no,
123+
:if_primary_term ].freeze)
123124
end
124125
end
125126
end

0 commit comments

Comments
 (0)