Skip to content

Commit

Permalink
Corrected example for temporary pipeline (#5555)
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit d8b6f66)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Nov 9, 2023
1 parent ace9c3e commit 84d94fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _search-plugins/search-pipelines/using-search-pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ POST /my-index/_search
"text_field" : "some search text"
}
},
"pipeline" : {
"search_pipeline" : {
"request_processors": [
{
"filter_query" : {
Expand Down Expand Up @@ -157,4 +157,4 @@ PUT /my_index/_settings
"index.search.default_pipeline" : "_none"
}
```
{% include copy-curl.html %}
{% include copy-curl.html %}

0 comments on commit 84d94fb

Please sign in to comment.