Net::Groonga::HTTP - Client library for Groonga httpd.
use Net::Groonga::HTTP; my $groonga = Net::Groonga::HTTP->new( end_point => 'http://127.0.0.1:10041/d/', ); my $res = $groonga->status(); use Data::Dumper; warn Dumper($res);
Net::Groonga::HTTP is a client library for Groonga http server.
Groonga is a fast full text search engine. Please look http://groonga.org/.
Net::Groonga::HTT->new(%args);
You can create instance with following arguments:
API end point URL for Groonga httpd.
Example:
Net::Groonga::HTTP->new(end_point => 'http://127.0.0.1:10041/d/');
Instance of Furl to access Groonga httpd.
Net::Groonga::HTTP->new(ua => Furl->new());
$groonga->call($function, %args)
Call a http server. Function name is $function. Pass the %args.
$function
%args
This method returns instance of Net::Groonga::HTTP::Response.
$groonga->load( table => 'Entry', values => \@values, );
Load the data to database. This method encodes values to JSON automatically, if it's arrayref.
You can use these methods if you are lazy.
Copyright (C) tokuhirom.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
tokuhirom <tokuhirom@gmail.com>
To install Net::Groonga::HTTP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Groonga::HTTP
CPAN shell
perl -MCPAN -e shell install Net::Groonga::HTTP
For more information on module installation, please visit the detailed CPAN module installation guide.