Skip to content

Commit 8107109

Browse files
edgurgelkarmi
authored andcommitted
[API] Fixed delete_by_query example in documentation
Closes #104 [ci skip]
1 parent ae08dc5 commit 8107109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module Actions
1313
#
1414
# @example Deleting documents using the Query DSL
1515
#
16-
# client.delete_by_query index: 'myindex', body: { term: { published: false } }
16+
# client.delete_by_query index: 'myindex', body: { query: { term: { published: false } } }
1717
#
1818
# @option arguments [List] :index A comma-separated list of indices to restrict the operation;
1919
# use `_all`to perform the operation on all indices (*Required*)

0 commit comments

Comments
 (0)