item C<decoder>
A code reference to use for decoding responses. Defaults to using
C<decode_json> from L<JSON::PP>.
=item C<default_args>
A hash reference with default parameters that will be passed
e decoder.
By default Solr returns JSON, therefore the fastest decoder for this would be
L<JSON::XS>. You can swap out L<JSON::PP> for L<JSON::XS> like so:
use JSON::XS ();
use WebService::Solr::Ti
ny;
my $solr = WebService::Solr::Tiny->new( decoder => \&JSON::XS::decode_json );
However it's possible to make Solr return a compact binary format known as
JavaBin, to do so we send C<wt=javabin>
item C<decoder>
A code reference to use for decoding responses. Defaults to using
C<decode_json> from L<JSON::PP>.
=item C<default_args>
A hash reference with default parameters that will be passed
e decoder.
By default Solr returns JSON, therefore the fastest decoder for this would be
L<JSON::XS>. You can swap out L<JSON::PP> for L<JSON::XS> like so:
use JSON::XS ();
use WebService::Solr::Ti
ny;
my $solr = WebService::Solr::Tiny->new( decoder => \&JSON::XS::decode_json );
However it's possible to make Solr return a compact binary format known as
JavaBin, to do so we send C<wt=javabin>
:Tiny->new( keep_alive => 1 ) };
$self->{decoder} //=
do { require JSON::PP; \&JSON::PP::decode_json };
$self->{default_args} //= {};
$self->{url} //= 'http://localho