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]>
  • Loading branch information
upwards-gravity authored and vagimeli committed Dec 20, 2023
1 parent 57e1b8c commit e7fa50d
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 e7fa50d

Please sign in to comment.