Catmandu::Importer::Solr - Catmandu module to import data from a Solr endpoint
# From the command line $ catmandu convert Solr --url "http://localhost:8983/solr" --query "type:book" # From perl use Catmandu; my %attrs = ( url => "http://localhost:8983/solr", query => 'type:book', bag_field => '_bag', id_field => '_id' ); my $importer = Catmandu->importer('Solr',%attrs); $importer->each(sub { my $row_hash = shift; ... });
Nicolas Franck, nicolas.franck at ugent.be
nicolas.franck at ugent.be
Catmandu, Catmandu::Importer , Catmandu::Store::Solr
To install Catmandu::Solr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::Solr
CPAN shell
perl -MCPAN -e shell install Catmandu::Solr
For more information on module installation, please visit the detailed CPAN module installation guide.