From de28026c568b436d10ffe0ea9794add0b85d9f06 Mon Sep 17 00:00:00 2001 From: Shuyi Z <159193473+amberzsy@users.noreply.github.com> Date: Sun, 15 Sep 2024 22:36:52 -0700 Subject: [PATCH] remove knn from search request body (#580) * remove knn from search request body Signed-off-by: amberzsy * add CHANGELOG Signed-off-by: amberzsy --------- Signed-off-by: amberzsy --- CHANGELOG.md | 2 +- spec/namespaces/_core.yaml | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d91649a6..dc837e95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/spec/namespaces/_core.yaml b/spec/namespaces/_core.yaml index c9d5927b..3c2187e7 100644 --- a/spec/namespaces/_core.yaml +++ b/spec/namespaces/_core.yaml @@ -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: