lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Kuhlmann <k...@solarier.de>
Subject Re: is the SolrJ call to add collection of documents a blocking function call ?
Date Tue, 20 Mar 2012 08:12:38 GMT
Hi Ramdev,

add() is a blocking call. Otherwise it had to start an own background 
thread which is not what a library like Solrj should do (how many 
threads at most? At which priority? Which thread group? How long keep 
them pooled?)

And, additionally, you might want to know whether the transmission was 
successful, or whether your guinea pig has eaten the network cable just 
in the middle of the transmission.

But it's easy to write your own background task that adds your documents 
to the Solr server. Using Java's ExecutionService class, this is done 
within two minutes.

Greetings,
Kuli

Am 19.03.2012 16:48, schrieb ramdev.wudali@thomsonreuters.com:
> Hi:
>     I am trying to index a collection of SolrInputDocs to a Solr server. I was wondering
if the call I make to add the documents (the add(Collection<SolrInputDocument>)  call
) is a blocking function call ?
>
> I would also like to know if the add call is a call that would take longer for a larger
collection of documents
>
>
> Thanks
>
> Ramdev
>


Mime
View raw message