Skip to content

[Feature Request] Support of search pipelines in multisearch template #18508

Closed
@ocuenca-coursera

Description

@ocuenca-coursera

Is your feature request related to a problem? Please describe

I would be great if we can specify in a multisearch template request the search pipeline to execute as in msearch:

GET /_msearch
{ "index": "test"}
{ "query": { "match_all": {} }, "from": 0, "size": 10, "search_pipeline": "my_pipeline"}
{ "index": "test-1", "search_type": "dfs_query_then_fetch"}
{ "query": { "match_all": {} }, "search_pipeline": "my_pipeline1" }

Describe the solution you'd like

Would be the same idea as msearch, so a multisearch template request using search pipelines would look like this:

GET _msearch/template
{"index":"shakespeare"}
{"id":"line_search_template","params":{"text_entry":"All the world's a stage","limit":false,"size":2}, "search_pipeline": "my_pipeline2"}
{"index":"shakespeare"}
{"id":"play_search_template","params":{"play_name":"Henry IV"}, "search_pipeline": "my_pipeline1"}

Related component

Search:Query Capabilities

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Search:Query CapabilitiesdiscussIssues intended to help drive brainstorming and decision makingenhancementEnhancement or improvement to existing feature or requestv3.2.0

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions