Function solr_post::solr_post

source ·
pub async fn solr_post(
    config: PostConfig,
    on_start: Option<Box<dyn FnMut(u64)>>,
    on_next: Option<Box<dyn FnMut(u64)>>,
    on_finish: Option<Box<dyn FnMut()>>
) -> usize
Expand description

Post files to Solr server concurrently based on the configuration optionally you can provide callbacks for on_start, on_next, and on_finish on_start will be called with the total number of files to index on_next will be called with the number of files indexed for tracking progress on_finish will be called when the indexing is complete returns the total number of files indexed