Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16958: Fix spurious warning about LATEST luceneMatchVersion

Colvin Cowie7bdce4cb704e
diff --git a/solr/core/src/java/org/apache/solr/core/SolrConfig.java b/solr/core/src/java/org/apache/solr/core/SolrConfig.java
index 89bcf88b9cb..d425235f201 100644
--- a/solr/core/src/java/org/apache/solr/core/SolrConfig.java
+++ b/solr/core/src/java/org/apache/solr/core/SolrConfig.java
@@ -420,8 +420,7 @@ public class SolrConfig implements MapSerializable {
pe);
}
- // The use of == is intentional here because the latest matchVersion will be equal() to
- // Version.LATEST, but will not be == to Version.LATEST
+ // The use of == is intentional here because the latest 'V.V.V' version will be equal() to Version.LATEST, but will not be == to Version.LATEST unless 'LATEST' was supplied.
if (version == Version.LATEST && !versionWarningAlreadyLogged.getAndSet(true)) {
log.warn(
"You should not use LATEST as luceneMatchVersion property: "