Re: dataimports response returns before done?
After issueing a dataimport, I've noticed solr returns a response prior to finishing the import. Is this correct? Is there anyway i can make solr not return until it finishes? Yes, you can add synchronous=true to your request. But be aware that it could take a long time and you can see http timeout exception. If not, how do I ping for the status whether it finished or not? See command=status On Fri, Dec 3, 2010 at 8:55 PM, Tri Nguyen tringuye...@yahoo.com wrote: Hi, After issueing a dataimport, I've noticed solr returns a response prior to finishing the import. Is this correct? Is there anyway i can make solr not return until it finishes? If not, how do I ping for the status whether it finished or not? thanks, tri
dataimports response returns before done?
Hi, After issueing a dataimport, I've noticed solr returns a response prior to finishing the import. Is this correct? Is there anyway i can make solr not return until it finishes? If not, how do I ping for the status whether it finished or not? thanks, tri
Re: dataimports response returns before done?
--- On Fri, 12/3/10, Tri Nguyen tringuye...@yahoo.com wrote: From: Tri Nguyen tringuye...@yahoo.com Subject: dataimports response returns before done? To: solr user solr-user@lucene.apache.org Date: Friday, December 3, 2010, 7:55 PM Hi, After issueing a dataimport, I've noticed solr returns a response prior to finishing the import. Is this correct? Is there anyway i can make solr not return until it finishes? If not, how do I ping for the status whether it finished or not? So you want to do something at the end of the import? http://wiki.apache.org/solr/DataImportHandler#EventListeners may help. Also you can always poll solr/dataimport url and check status (busy,idle)