Skip to content

Commit 743a64b

Browse files
committed
[API] Updates knn_search
1 parent 05a8169 commit 743a64b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ def knn_search(arguments = {})
5151

5252
_index = arguments.delete(:index)
5353

54-
method = if body
55-
Elasticsearch::API::HTTP_POST
56-
else
57-
Elasticsearch::API::HTTP_GET
58-
end
54+
method = Elasticsearch::API::HTTP_GET
5955

6056
path = "#{Utils.__listify(_index)}/_knn_search"
6157
params = Utils.process_params(arguments)

0 commit comments

Comments
 (0)