diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 0428c8819dc..5399031f36c 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -51,6 +51,9 @@ Upgrading from Solr 5.x
to allow for multiple full query results (DocLists) per Solr request.
TransformContext was rendered redundant and was removed. (yonik)
+* DefaultSimilarityFactory has been removed. If you currently have DefaultSimilarityFactory explicitly
+ refrenced in your schema.xml, edit your config to use the functionally identical ClassicSimilarityFactory.
+ See SOLR-8239 for more details.
Detailed Change List
diff --git a/solr/core/src/java/org/apache/solr/search/similarities/DefaultSimilarityFactory.java b/solr/core/src/java/org/apache/solr/search/similarities/DefaultSimilarityFactory.java
deleted file mode 100644
index e3b18f5c902..00000000000
--- a/solr/core/src/java/org/apache/solr/search/similarities/DefaultSimilarityFactory.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package org.apache.solr.search.similarities;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import org.apache.lucene.search.similarities.Similarity;
-
-import org.apache.solr.common.params.SolrParams;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-
-/**
- * @deprecated This class has been renamed to ClassicSimilarityFactory
to reflect the renaming of the underlying Similarity returned.
- *
- * @see ClassicSimilarityFactory
- */
-@Deprecated
-public class DefaultSimilarityFactory extends ClassicSimilarityFactory {
-
- public static final Logger log = LoggerFactory.getLogger(DefaultSimilarityFactory.class);
-
- @Override
- public void init(SolrParams params) {
- super.init(params);
- log.warn("DefaultSimilarityFactory has been renamed and deprecated. " +
- "Please update your configuration file to refer to ClassicSimilarityFactory instead");
- }
-
-}
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-tfidf.xml b/solr/core/src/test-files/solr/collection1/conf/schema-tfidf.xml
index f9bbde982b4..66988ae67b4 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-tfidf.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-tfidf.xml
@@ -38,22 +38,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
- false
-
-
-
text
diff --git a/solr/core/src/test/org/apache/solr/search/similarities/TestClassicSimilarityFactory.java b/solr/core/src/test/org/apache/solr/search/similarities/TestClassicSimilarityFactory.java
index 6b9ca9ceb5d..feafd3311be 100644
--- a/solr/core/src/test/org/apache/solr/search/similarities/TestClassicSimilarityFactory.java
+++ b/solr/core/src/test/org/apache/solr/search/similarities/TestClassicSimilarityFactory.java
@@ -22,7 +22,7 @@ import org.apache.lucene.search.similarities.Similarity;
import org.junit.BeforeClass;
/**
- * Tests {@link DefaultSimilarityFactory} when specified on a per-fieldtype basis with various init options.
+ * Tests {@link ClassicSimilarityFactory} when specified on a per-fieldtype basis with various init options.
* @see SchemaSimilarityFactory
*/
public class TestClassicSimilarityFactory extends BaseSimilarityTestCase {
@@ -42,15 +42,4 @@ public class TestClassicSimilarityFactory extends BaseSimilarityTestCase {
assertEquals(false, sim.getDiscountOverlaps());
}
- /** Default w/ default parameters */
- public void testDefaultWithDefaults() throws Exception {
- ClassicSimilarity sim = getSimilarity("text__default", ClassicSimilarity.class);
- assertEquals(true, sim.getDiscountOverlaps());
- }
- /** Default w/ explicit params */
- public void testDefaultWithParams() throws Exception {
- ClassicSimilarity sim = getSimilarity("text_overlap__default", ClassicSimilarity.class);
- assertEquals(false, sim.getDiscountOverlaps());
- }
-
}