You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2021/03/12 19:55:03 UTC

[GitHub] [solr] bruno-roustant commented on a change in pull request #3: SOLR-15170: Elevation file in data dir now works in Solr Cloud.

bruno-roustant commented on a change in pull request #3:
URL: https://github.com/apache/solr/pull/3#discussion_r593414197



##########
File path: solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java
##########
@@ -370,14 +374,8 @@ private ElevationProvider loadElevationProvider(SolrCore core) throws IOExceptio
     }
     log.info("Loading QueryElevation from data dir: {}", configFileName);
 
-    XmlConfigFile cfg;
-    ZkController zkController = core.getCoreContainer().getZkController();
-    if (zkController != null) {
-      cfg = new XmlConfigFile(core.getResourceLoader(), configFileName, null, null);
-    } else {
-      InputStream is = VersionedFile.getLatestFile(core.getDataDir(), configFileName);

Review comment:
       It's not removed, the block is just refactored.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org