Skip to content

Commit

Permalink
[API] Updates knn_search
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Dec 12, 2024
1 parent 05a8169 commit 743a64b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ def knn_search(arguments = {})

_index = arguments.delete(:index)

method = if body
Elasticsearch::API::HTTP_POST
else
Elasticsearch::API::HTTP_GET
end
method = Elasticsearch::API::HTTP_GET

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

0 comments on commit 743a64b

Please sign in to comment.