You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2016/02/23 10:20:38 UTC

svn commit: r1731814 - /stanbol/branches/release-0.12/entityhub/yard/solr/src/main/java/org/apache/stanbol/entityhub/yard/solr/impl/SolrYard.java

Author: rwesten
Date: Tue Feb 23 09:20:38 2016
New Revision: 1731814

URL: http://svn.apache.org/viewvc?rev=1731814&view=rev
Log:
minor: adapted the SolrYard so that it ignores update requests with an empty list of Representations

Modified:
    stanbol/branches/release-0.12/entityhub/yard/solr/src/main/java/org/apache/stanbol/entityhub/yard/solr/impl/SolrYard.java

Modified: stanbol/branches/release-0.12/entityhub/yard/solr/src/main/java/org/apache/stanbol/entityhub/yard/solr/impl/SolrYard.java
URL: http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/yard/solr/src/main/java/org/apache/stanbol/entityhub/yard/solr/impl/SolrYard.java?rev=1731814&r1=1731813&r2=1731814&view=diff
==============================================================================
--- stanbol/branches/release-0.12/entityhub/yard/solr/src/main/java/org/apache/stanbol/entityhub/yard/solr/impl/SolrYard.java (original)
+++ stanbol/branches/release-0.12/entityhub/yard/solr/src/main/java/org/apache/stanbol/entityhub/yard/solr/impl/SolrYard.java Tue Feb 23 09:20:38 2016
@@ -686,6 +686,10 @@ public class SolrYard extends AbstractYa
                 added.add(representation);
             }
         }
+        if(inputDocs.isEmpty()){ //empty data sent ... nothing to do
+            log.debug("strore called with empty collection of Representations");
+            return representations;
+        }
         long created = System.currentTimeMillis();
         if(closed){
             log.warn("The SolrYard '{}' was already closed!",config.getName());