Retrieving search pipelines

To retrieve the details of an existing search pipeline, use the Search Pipeline API.

To view all search pipelines, use the following request:

  1. GET /_search/pipeline

copy

The response contains the pipeline that you set up in the previous section:

Response

  1. {
  2. "my_pipeline" : {
  3. "request_processors" : [
  4. {
  5. "filter_query" : {
  6. "tag" : "tag1",
  7. "description" : "This processor is going to restrict to publicly visible documents",
  8. "query" : {
  9. "term" : {
  10. "visibility" : "public"
  11. }
  12. }
  13. }
  14. }
  15. ]
  16. }
  17. }

To view a particular pipeline, specify the pipeline name as a path parameter:

  1. GET /_search/pipeline/my_pipeline

copy

You can also use wildcard patterns to view a subset of pipelines, for example:

  1. GET /_search/pipeline/my*

copy