lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <>
Subject Re: searching while importing
Date Wed, 13 Oct 2010 22:38:48 GMT
  If you are using the DataImportHandler, you will not be able to search 
new data until the full-import or delta-import is complete and the 
update is committed.  When I do a full reindex, it takes about 5 hours, 
and until it is finished, I cannot search it.

I have not tried to issue a manual commit in the middle of an import to 
see whether that makes data inserted up to that point searchable, but I 
would not expect that to work.

If you need this kind of functionality, you may need to change your 
build system so that a full import clears the index manually and then 
does a series of delta-import batches.

On 10/13/2010 3:51 PM, Tri Nguyen wrote:
> Hi,
> Can I perform searches against the index while it is being imported?
> Does importing add 1 document at a time or will solr make a temporary index and
> switch to that index when indexing is done?
> Thanks,
> Tri

View raw message