检索搜索管道

要检索现有搜索管道的详细信息,请使用搜索管道 API。

要查看所有搜索管道,请使用以下请求:

GET /_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"
            }
          }
        }
      }
    ]
  }
}

要查看特定管道,请将管道名称指定为路径参数:

GET /_search/pipeline/my_pipeline

您也可以使用通配符模式查看管道子集,例如:

GET /_search/pipeline/my*