Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add Create Search Pipeline Step #545

Closed
amitgalitz opened this issue Feb 28, 2024 · 0 comments · Fixed by #569
Closed

[FEATURE] Add Create Search Pipeline Step #545

amitgalitz opened this issue Feb 28, 2024 · 0 comments · Fixed by #569
Assignees
Labels
enhancement New feature or request v2.13.0 Issues targeting release v2.13.0

Comments

@amitgalitz
Copy link
Member

Is your feature request related to a problem?

Implement a create search pipeline provisioning step to create a search pipeline.

Example API request:

PUT /_search/pipeline/my_pipeline 
{
  "request_processors": [
    {
      "filter_query" : {
        "tag" : "tag1",
        "description" : "This processor is going to restrict to publicly visible documents",
        "query" : {
          "term": {
            "visibility": "public"
          }
        }
      }
    }
  ],
  "response_processors": [
    {
      "rename_field": {
        "field": "message",
        "target_field": "notification"
      }
    }
  ]
}

What solution would you like?

We will either expect request_processors and/or response_processors and wont do internal validation for each processor submitted within the step.

use case template step would look like this:

{
    "id": "search_pipeline_1",
    "type": "create_search_pipeline",
    "user_inputs": {
        "name": "my-search-pipeline",
        "description": "some description",
        "request_processors": [
            {
                "filter_query": {
                    "tag": "tag1",
                    "description": "This processor is going to restrict to publicly visible documents",
                    "query": {
                        "term": {
                            "visibility": "public"
                        }
                    }
                }
            }
        ],
        "response_processors": [
            {
                "rename_field": {
                    "field": "message",
                    "target_field": "notification"
                }
            }
        ]
    }
}
@amitgalitz amitgalitz added enhancement New feature or request untriaged labels Feb 28, 2024
@amitgalitz amitgalitz self-assigned this Feb 28, 2024
@amitgalitz amitgalitz added v2.13.0 Issues targeting release v2.13.0 and removed untriaged labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v2.13.0 Issues targeting release v2.13.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant