You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by co...@apache.org on 2023/09/01 08:46:29 UTC

[solr] 01/02: SOLR-16958: Fix spurious warning about LATEST luceneMatchVersion

This is an automated email from the ASF dual-hosted git repository.

colvinco pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 7bdce4cb704ec511a31db18185b2789c357ee1e9
Author: Colvin Cowie <co...@gmail.com>
AuthorDate: Fri Sep 1 09:44:41 2023 +0100

    SOLR-16958: Fix spurious warning about LATEST luceneMatchVersion
---
 solr/core/src/java/org/apache/solr/core/SolrConfig.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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: "