logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Importer::Solr - Catmandu module to import data from a Solr endpoint

Author

       Nicolas Franck, "nicolas.franck at ugent.be"

Name

       Catmandu::Importer::Solr - Catmandu module to import data from a Solr endpoint

See Also

       Catmandu, Catmandu::Importer , Catmandu::Store::Solr

perl v5.36.0                                       2023-02-05                      Catmandu::Importer::Solr(3pm)

Synopsis

           # 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;
                   ...
           });

See Also