---
name: "Catmandu::Importer::Solr"
section: "3pm"
platform: "linux"
package: "libcatmandu-solr-perl"
version: "0.0304-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Importer::Solr"
---

# Catmandu::Importer::Solr(3pm)

Catmandu module to import data from a Solr endpoint

## NAME

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

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

## AUTHOR

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

## SEE ALSO

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