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 2011/11/02 15:22:11 UTC

svn commit: r1196602 - /incubator/stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java/org/apache/stanbol/entityhub/indexing/destination/solryard/SolrYardIndexingDestination.java

Author: rwesten
Date: Wed Nov  2 14:22:11 2011
New Revision: 1196602

URL: http://svn.apache.org/viewvc?rev=1196602&view=rev
Log:
The yard configuration now uses FilenameUtils.getName(...) on the SolrServerLocation to ensure that only the relative path to the SolrCore is written as value for the SolrYard.SOLR_SERVER_LOCATION property even if the absolute file to this directory is stored within the SolrYardCondig instance.

Modified:
    incubator/stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java/org/apache/stanbol/entityhub/indexing/destination/solryard/SolrYardIndexingDestination.java

Modified: incubator/stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java/org/apache/stanbol/entityhub/indexing/destination/solryard/SolrYardIndexingDestination.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java/org/apache/stanbol/entityhub/indexing/destination/solryard/SolrYardIndexingDestination.java?rev=1196602&r1=1196601&r2=1196602&view=diff
==============================================================================
--- incubator/stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java/org/apache/stanbol/entityhub/indexing/destination/solryard/SolrYardIndexingDestination.java (original)
+++ incubator/stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java/org/apache/stanbol/entityhub/indexing/destination/solryard/SolrYardIndexingDestination.java Wed Nov  2 14:22:11 2011
@@ -30,6 +30,7 @@ import java.util.zip.ZipEntry;
 import java.util.zip.ZipOutputStream;
 
 import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.FilenameUtils;
 import org.apache.commons.io.IOUtils;
 import org.apache.stanbol.entityhub.core.mapping.FieldMappingUtils;
 import org.apache.stanbol.entityhub.core.site.CacheUtils;
@@ -591,8 +592,7 @@ public class SolrYardIndexingDestination
         //The default values for the following parameters are OK 
         //solrYardConfig.getMaxBooleanClauses();
         //solrYardConfig.getMaxQueryResultNumber();
-        
-        yardConfig.put(SolrYard.SOLR_SERVER_LOCATION, solrYardConfig.getSolrServerLocation());
+        yardConfig.put(SolrYard.SOLR_SERVER_LOCATION, FilenameUtils.getName(solrYardConfig.getSolrServerLocation()));
         //the server type needs not to be set. It is automatically detected by
         //the value of the server location
         //solrYardConfig.getSolrServerType();