Skip to content

Commit 5271100

Browse files
committed
[API] Removes knn_search
This API was only ever experimental and was deprecated, it isn't supported in 9.0, and only works with `compatible-with=8` is set.
1 parent 10804c6 commit 5271100

File tree

4 files changed

+2
-119
lines changed

4 files changed

+2
-119
lines changed

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

Lines changed: 0 additions & 82 deletions
This file was deleted.

elasticsearch-api/lib/elasticsearch/api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
module Elasticsearch
1919
module API
2020
VERSION = '9.0.0'.freeze
21-
ES_SPECIFICATION_COMMIT = '4396e621134e40fe50a4b770c0487c1770763e43'.freeze
21+
ES_SPECIFICATION_COMMIT = 'c02d8eb89a4efb3e719bd783715e2bf312479af8'.freeze
2222
end
2323
end

elasticsearch-api/spec/unit/actions/knn_search_spec.rb

Lines changed: 0 additions & 35 deletions
This file was deleted.

elasticsearch-api/spec/unit/perform_request_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
spec.visibility != 'public' ||
2828
# TODO: Once the test suite is migrated to elasticsearch-specification, these should be removed
2929
spec.module_namespace.flatten.first == 'rollup' ||
30-
['scroll', 'clear_scroll', 'connector.last_sync'].include?(spec.endpoint_name)
30+
['scroll', 'clear_scroll', 'connector.last_sync', 'knn_search'].include?(spec.endpoint_name)
3131

3232
# These are the path parts defined by the user in the method argument
3333
defined_path_parts = spec.path_params.inject({}) do |params, part|

0 commit comments

Comments
 (0)