NAME

OpenSearch::Client::Core::3_0::Direct::SearchPipeline

VERSION

version 3.007002

SYNOPSIS

use OpenSearch::Client;

my $client = OpenSearch::Client->new( ... );

my $response = $client->search_pipeline-><methodname>(
  valone => $value1,
  valtwo => $value2
);

DESCRIPTION

Search pipelines

You can use search pipelines to build new or reuse existing result rerankers, query rewriters, and other components that operate on queries or results. Search pipelines make it easier for you to process search queries and search results within OpenSearch. Moving some of your application functionality into an OpenSearch search pipeline reduces the overall complexity of your application. As part of a search pipeline, you specify a list of search processors that perform modular tasks. You can then easily add or reorder these processors to customize search results for your application.

See OpenSearch documentation for search_pipeline.

METHODS

search_pipeline->delete

Deletes the specified search pipeline.

Paths served by this method:

DELETE /_search/pipeline/{id}
$resp = $client->search_pipeline->delete(
    
     # path parameters
    
    'id'                       =>  $id,        # required
    
     # Endpoint specific query string parameters
    
    'cluster_manager_timeout'  =>  $qval1,     # string
    'timeout'                  =>  $qval2,     # string
    
     # Common API query string parameters
    
    'error_trace'              =>  $qval3,     # boolean
    'filter_path'              =>  $qval4,     # list
    'human'                    =>  $qval5,     # boolean
    'pretty'                   =>  $qval6,     # boolean
    'source'                   =>  $qval7,     # string
);

OpenSearch documentation for search_pipeline.delete

search_pipeline->get

Retrieves information about a specified search pipeline.

Paths served by this method:

GET /_search/pipeline
GET /_search/pipeline/{id}
$resp = $client->search_pipeline->get(
    
     # path parameters
    
    'id'                       =>  $id,        # optional
    
     # Endpoint specific query string parameters
    
    'cluster_manager_timeout'  =>  $qval1,     # string
    
     # Common API query string parameters
    
    'error_trace'              =>  $qval2,     # boolean
    'filter_path'              =>  $qval3,     # list
    'human'                    =>  $qval4,     # boolean
    'pretty'                   =>  $qval5,     # boolean
    'source'                   =>  $qval6,     # string
);

OpenSearch documentation for search_pipeline.get

search_pipeline->put

Creates or replaces the specified search pipeline.

Paths served by this method:

PUT /_search/pipeline/{id}
$resp = $client->search_pipeline->put(
    
    'body'                     =>  $body,      # optional
    
     # path parameters
    
    'id'                       =>  $id,        # required
    
     # Endpoint specific query string parameters
    
    'cluster_manager_timeout'  =>  $qval1,     # string
    'timeout'                  =>  $qval2,     # string
    
     # Common API query string parameters
    
    'error_trace'              =>  $qval3,     # boolean
    'filter_path'              =>  $qval4,     # list
    'human'                    =>  $qval5,     # boolean
    'pretty'                   =>  $qval6,     # boolean
    'source'                   =>  $qval7,     # string
);

OpenSearch documentation for search_pipeline.put

MANUAL

Documentation index OpenSearch::Client::Manual

HISTORY

This distribution is derived from Search::Elasticsearch version 7.714. All subsequent changes are unique to this distribution.

AUTHOR

Mark Dootson <mdootson@cpan.org> ( current maintainer )

CREDITS

OpenSearch::Client is based on Search::Elasticsearch version 7.714 by Enrico Zimuel <enrico.zimuel@elastic.co>.

COPYRIGHT AND LICENSE

Copyright (C) 2026 by Mark Dootson ( this distribution )

Copyright (C) 2021 by Elasticsearch BV ( original distribution )

This is free software, licensed under:

The Apache License, Version 2.0, January 2004