You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sandro Zbinden <zb...@imagic.ch> on 2013/07/31 11:23:11 UTC

Solr show total row count in response of full import

Hey there

Is there a way to show the total row count (documents that will be inserted) when executing a full import through the Data Import Request handler ?

Currently after executing a full import and pointing to <solrcore>/dataimport you can get  the total rows processed

<str name="Total Documents Processed">6354</str>

It would be nice if you could receive a total row count like

<str name="Total Documents">10100</str>

With this information we could add another information like

<str name="Imported in Percent ">62.91</str>

This would make it easier to generate a progress bar for the end user.


Best regards

Sandro Zbinden


Re: Solr show total row count in response of full import

Posted by Chris Hostetter <ho...@fucit.org>.
: It would be nice if you could receive a total row count like
: 
: <str name="Total Documents">10100</str>
: 
: With this information we could add another information like
: 
: <str name="Imported in Percent ">62.91</str>
: 
: This would make it easier to generate a progress bar for the end user.

I don't think that's possible -- DIH has no way of knowing in advance the 
total number of documents that the DataSources are going to produce.

-Hoss