lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jan...@apache.org
Subject svn commit: r1305781 - /lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java
Date Tue, 27 Mar 2012 08:45:58 GMT
Author: janhoy
Date: Tue Mar 27 08:45:58 2012
New Revision: 1305781

URL: http://svn.apache.org/viewvc?rev=1305781&view=rev
Log:
SOLR-1052: Removed dead code

Modified:
    lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java

Modified: lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java?rev=1305781&r1=1305780&r2=1305781&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java
(original)
+++ lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java
Tue Mar 27 08:45:58 2012
@@ -29,41 +29,17 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import java.util.List;
-import java.util.Map;
-import java.util.HashMap;
 
-//
-// For performance reasons, we don't want to re-read
-// config params each time an index writer is created.
-// This config object encapsulates IndexWriter config params.
-//
 /**
+ * This config object encapsulates IndexWriter config params,
+ * defined in the <indexConfig> section of solrconfig.xml
  * @version $Id$
  */
 public class SolrIndexConfig {
   public static final Logger log = LoggerFactory.getLogger(SolrIndexConfig.class);
   
-  public static final String defaultsName ="indexDefaults";
   final String defaultMergePolicyClassName;
   public static final String DEFAULT_MERGE_SCHEDULER_CLASSNAME = ConcurrentMergeScheduler.class.getName();
-  static final SolrIndexConfig defaultDefaults = new SolrIndexConfig();
-
-  private SolrIndexConfig() {
-    luceneVersion = Version.LUCENE_31;
-    useCompoundFile = true;
-    maxBufferedDocs = -1;
-    maxMergeDocs = -1;
-    mergeFactor = -1;
-    ramBufferSizeMB = 16;
-    maxFieldLength = -1;
-    writeLockTimeout = -1;
-    lockType = null;
-    termIndexInterval = IndexWriterConfig.DEFAULT_TERM_INDEX_INTERVAL;
-    mergePolicyInfo = null;
-    mergeSchedulerInfo = null;
-    defaultMergePolicyClassName = TieredMergePolicy.class.getName();
-  }
-
   public final Version luceneVersion;
   
   public final boolean useCompoundFile;



Mime
View raw message