haythemkh commented on code in PR #962:
URL: https://github.com/apache/solr/pull/962#discussion_r938567551


##########
solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java:
##########
@@ -413,35 +409,30 @@ private ElevationProvider loadElevationProvider(SolrCore 
core) throws Exception
    * @throws RuntimeException If the config does not provide an XML content of 
the expected format
    *     (either {@link RuntimeException} or {@link 
org.apache.solr.common.SolrException}).
    */
-  protected ElevationProvider loadElevationProvider(XmlConfigFile config) {
+  protected ElevationProvider loadElevationProvider(Document doc) {
     Map<ElevatingQuery, ElevationBuilder> elevationBuilderMap = new 
LinkedHashMap<>();
-    XPath xpath = XPathFactory.newInstance().newXPath();

Review Comment:
   because the need for which it is used is simple and it adds one more 
dependence when we can get rid of it without complicating the code.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to