AW: AW: AW: OutOfMemory when batchupdating from SolrJ

2016-02-22 Thread Clemens Wyss DEV
uot; instead of creating a > new ArrayList Will do that, allthough I am not hunting for nano's, at least not at the moment ;) -Ursprüngliche Nachricht- Von: Shawn Heisey [mailto:apa...@elyograg.org] Gesendet: Montag, 22. Februar 2016 15:57 An: solr-user@lucene.apache.org Betreff

Re: AW: AW: OutOfMemory when batchupdating from SolrJ

2016-02-22 Thread Shawn Heisey
On 2/22/2016 1:55 AM, Clemens Wyss DEV wrote: > SolrClient solrClient = getSolrClient( coreName, true ); > Collection batch = new ArrayList(); > while ( elements.hasNext() ) > { > IIndexableElement elem = elements.next(); > SolrInputDocument doc = createSolrDocForElement( elem, provider, locale

AW: AW: OutOfMemory when batchupdating from SolrJ

2016-02-22 Thread Clemens Wyss DEV
> solrClient.add( documents ); // [2] is of course: solrClient.add( batch ); // [2] -Ursprüngliche Nachricht- Von: Clemens Wyss DEV [mailto:clemens...@mysign.ch] Gesendet: Montag, 22. Februar 2016 09:55 An: solr-user@lucene.apache.org Betreff: AW: AW: OutOfMemory when batchupdating f

AW: AW: OutOfMemory when batchupdating from SolrJ

2016-02-22 Thread Clemens Wyss DEV
Find attached the relevant part of the batch-update: ... SolrClient solrClient = getSolrClient( coreName, true ); Collection batch = new ArrayList(); while ( elements.hasNext() ) { IIndexableElement elem = elements.next(); SolrInputDocument doc = createSolrDocForElement( elem, provider, locale