From e7fa50db39d0463a5b9a8f54e2541548bced7530 Mon Sep 17 00:00:00 2001 From: Tim Vossen <61426691+upwards-gravity@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:04:43 +0100 Subject: [PATCH] Corrected example for temporary pipeline (#5555) The temporary pipeline has to be referenced with `search_pipeline` instead of `pipeline` in the JSON. Otherwise, you get the error `{"error":{"root_cause":[{"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [pipeline].","line":8,"col":16}],"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [pipeline].","line":8,"col":16},"status":400}`. Tested with Docker image `opensearchproject/opensearch:2.11.0`. Signed-off-by: Tim Vossen <61426691+upwards-gravity@users.noreply.github.com> --- _search-plugins/search-pipelines/using-search-pipeline.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_search-plugins/search-pipelines/using-search-pipeline.md b/_search-plugins/search-pipelines/using-search-pipeline.md index 7b721ecdb57..882c94d99ef 100644 --- a/_search-plugins/search-pipelines/using-search-pipeline.md +++ b/_search-plugins/search-pipelines/using-search-pipeline.md @@ -38,7 +38,7 @@ POST /my-index/_search "text_field" : "some search text" } }, - "pipeline" : { + "search_pipeline" : { "request_processors": [ { "filter_query" : { @@ -157,4 +157,4 @@ PUT /my_index/_settings "index.search.default_pipeline" : "_none" } ``` -{% include copy-curl.html %} \ No newline at end of file +{% include copy-curl.html %}