Skip to content

fixed search_pipeline for request body#1091

Open
ThyTran1402 wants to merge 2 commits intoopensearch-project:mainfrom
ThyTran1402:feat/fixed_search_pipeline_request_body
Open

fixed search_pipeline for request body#1091
ThyTran1402 wants to merge 2 commits intoopensearch-project:mainfrom
ThyTran1402:feat/fixed_search_pipeline_request_body

Conversation

@ThyTran1402
Copy link
Copy Markdown

@ThyTran1402 ThyTran1402 commented Apr 14, 2026

Description

Root cause: search_pipeline in SearchRequestBody is typed as type: string (pipeline name only), but OpenSearch also supports passing an inline pipeline definition as object form directly in the request body.

Fixed:
Added a new SearchPipelineRef union type that accepts either:

  • A string: the name of an existing stored pipeline
  • A SearchPipelineStructure object: an inline pipeline definition with request_processors, response_processors, and/or phase_results_processors

Related PR: #1011

Issues Resolved

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Thy Tran <58045538+ThyTran1402@users.noreply.github.com>
Signed-off-by: Thy Tran <58045538+ThyTran1402@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant