|
NAMESearch::Elasticsearch::Transport - Provides interface between the client class and the Elasticsearch clusterVERSIONversion 6.00DESCRIPTIONThe Transport class manages the request cycle. It receives parsed requests from the (user-facing) client class, and tries to execute the request on a node in the cluster, retrying a request if necessary.This class does Search::Elasticsearch::Role::Transport and Search::Elasticsearch::Role::Is_Sync. CONFIGURATION"send_get_body_as"$e = Search::Elasticsearch->new( send_get_body_as => 'POST' ); Certain endpoints like "search()" in Search::Elasticsearch::Client::6_0::Direct default to using a "GET" method, even when they include a request body. Some proxy servers do not support "GET" requests with a body. To work around this, the "send_get_body_as" parameter accepts the following:
METHODS"perform_request()"Raw requests can be executed using the transport class as follows:$result = $e->transport->perform_request( method => 'POST', path => '/_search', qs => { from => 0, size => 10 }, body => { query => { match => { title => "Elasticsearch clients" } } } ); Other than the "method", "path", "qs" and "body" parameters, which should be self-explanatory, it also accepts:
AUTHORClinton Gormley <drtech@cpan.org>COPYRIGHT AND LICENSEThis software is Copyright (c) 2017 by Elasticsearch BV.This is free software, licensed under: The Apache License, Version 2.0, January 2004
Visit the GSP FreeBSD Man Page Interface. |