Skip to content

Commit

Permalink
remove knn from search request body (#580)
Browse files Browse the repository at this point in the history
* remove knn from search request body

Signed-off-by: amberzsy <[email protected]>

* add CHANGELOG

Signed-off-by: amberzsy <[email protected]>

---------

Signed-off-by: amberzsy <[email protected]>
  • Loading branch information
amberzsy committed Sep 16, 2024
1 parent c2c666f commit de28026
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Fixed security spec to add support for 400 and 403s ([#439](https://github.com/opensearch-project/opensearch-api-specification/pull/439))
- Fixed required parameters in `NodeInfo` and `NodeOperatingSystemInfo` ([#483](https://github.com/opensearch-project/opensearch-api-specification/pull/483))
- Fixed query DSL `neural` field `query_image` set `contentEncoding` and `model_id` as optional ([#512](https://github.com/opensearch-project/opensearch-api-specification/pull/512))
- Fixed `knn` query specification ([#538](https://github.com/opensearch-project/opensearch-api-specification/pull/538))
- Fixed `knn` query specification ([#538](https://github.com/opensearch-project/opensearch-api-specification/pull/538))([#580](https://github.com/opensearch-project/opensearch-api-specification/pull/580))
- Fixed content-type for `/hot_threads` ([#543](https://github.com/opensearch-project/opensearch-api-specification/pull/543))
- Fixed `geo_distance` query spec ([#560](https://github.com/opensearch-project/opensearch-api-specification/pull/560))
- Fixed `/_cluster/settings` returning flat results ([#545](https://github.com/opensearch-project/opensearch-api-specification/pull/545))
Expand Down
7 changes: 0 additions & 7 deletions spec/namespaces/_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2434,13 +2434,6 @@ components:
type: array
items:
$ref: '../schemas/_common.query_dsl.yaml#/components/schemas/FieldAndFormat'
knn:
description: Defines the approximate kNN search to run.
oneOf:
- $ref: '../schemas/_common.query_dsl.yaml#/components/schemas/KnnQuery'
- type: array
items:
$ref: '../schemas/_common.query_dsl.yaml#/components/schemas/KnnQuery'
rank:
$ref: '../schemas/_common.yaml#/components/schemas/RankContainer'
min_score:
Expand Down

0 comments on commit de28026

Please sign in to comment.