mirror of https://github.com/apache/lucene.git
SOLR-12972: remove deprecated, unused SolrIndexConfig.luceneVersion
This commit is contained in:
parent
7abb25eff5
commit
eb8010405d
|
@ -31,7 +31,6 @@ import org.apache.lucene.index.MergePolicy;
|
|||
import org.apache.lucene.index.MergeScheduler;
|
||||
import org.apache.lucene.search.Sort;
|
||||
import org.apache.lucene.util.InfoStream;
|
||||
import org.apache.lucene.util.Version;
|
||||
import org.apache.solr.common.util.NamedList;
|
||||
import org.apache.solr.common.util.Utils;
|
||||
import org.apache.solr.core.DirectoryFactory;
|
||||
|
@ -63,9 +62,6 @@ public class SolrIndexConfig implements MapSerializable {
|
|||
private static final String DEFAULT_MERGE_POLICY_FACTORY_CLASSNAME = DefaultMergePolicyFactory.class.getName();
|
||||
public static final String DEFAULT_MERGE_SCHEDULER_CLASSNAME = ConcurrentMergeScheduler.class.getName();
|
||||
|
||||
@Deprecated
|
||||
public final Version luceneVersion;
|
||||
|
||||
public final boolean useCompoundFile;
|
||||
|
||||
public final int maxBufferedDocs;
|
||||
|
@ -86,7 +82,6 @@ public class SolrIndexConfig implements MapSerializable {
|
|||
* Internal constructor for setting defaults based on Lucene Version
|
||||
*/
|
||||
private SolrIndexConfig(SolrConfig solrConfig) {
|
||||
luceneVersion = solrConfig.luceneMatchVersion;
|
||||
useCompoundFile = false;
|
||||
maxBufferedDocs = -1;
|
||||
ramBufferSizeMB = 100;
|
||||
|
@ -119,8 +114,6 @@ public class SolrIndexConfig implements MapSerializable {
|
|||
// config section
|
||||
Object unused = solrConfig.getNode(prefix, false);
|
||||
|
||||
luceneVersion = solrConfig.luceneMatchVersion;
|
||||
|
||||
// Assert that end-of-life parameters or syntax is not in our config.
|
||||
// Warn for luceneMatchVersion's before LUCENE_3_6, fail fast above
|
||||
assertWarnOrFail("The <mergeScheduler>myclass</mergeScheduler> syntax is no longer supported in solrconfig.xml. Please use syntax <mergeScheduler class=\"myclass\"/> instead.",
|
||||
|
|
Loading…
Reference in New Issue