Catman...::Solr(3pm)
π Catmandu::Importer::Solr β the tea β
okay bestie, so this is a Perl manual page from the User Contributed Perl Documentation collection, filed under Catman...::Solr(3pm), and it's literally just one little module: Catmandu::Importer::Solr. That's the whole thing. It's a Catmandu module that pulls data out of a Solr endpoint, and no cap, it's tiny and adorable and does exactly one job. π
β¨ NAME β¨
Catmandu::Importer::Solr β a Catmandu module whose whole personality is importing data from a Solr endpoint. That's it. That's the vibe. π¦
β¨ SYNOPSIS β¨
two ways to do it, and honestly both ate π
from the command line, one iconic little one-liner:
# From the command line
$ catmandu convert Solr --url "http://localhost:8983/solr" --query "type:book"
from perl, if you're feeling main character energy:
# 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;
...
});
see how %attrs just slides right into Catmandu->importer('Solr',%attrs)? and then each hands you a $row_hash per row and you do whatever you want with it. literally that simple. no drama, no fuss, just rows. π
β¨ AUTHOR β¨
Nicolas Franck, reachable at "nicolas.franck at ugent.be". king behavior, honestly. π
β¨ SEE ALSO β¨
if you wanna go deeper down the rabbit hole, the girlies to check out are:
CatmanduCatmandu::ImporterCatmandu::Store::Solr
that's the whole page bestie, she's short and she knows it π«Ά
this masterpiece was built on perl v5.36.0, last touched on 2023-02-05, and lives in the Catman...::Solr(3pm) manpage. periodt. π
π¦ where this page comes from
- debian bookworm: libcatmandu-solr-perl 0.0304-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-solr-perl 0.0304-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-solr-perl 0.0304-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-solr-perl 0.0304-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-solr-perl 0.0304-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms