solrcopy 0.9.2

Command line tool useful for migration, transformations, backup, and restore of documents stored inside cores of Apache Solr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{args::Execute, connection::SolrClient};
use log::{debug, info};

pub(crate) fn info_main(params: &Execute) -> Result<(), Box<dyn std::error::Error>> {
    debug!("# INFORMATION {:?}", params);

    let mut client = SolrClient::new();
    let info = client.get_solr_info(&params.options.url)?;

    info!(
        "# {{ url: '{}', version: {}, standalone: {} }}",
        params.options.url, info.version, info.standalone
    );
    Ok(())
}