Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

QueryElevationComponent: declare some methods as protected (#1901)

David Smiley757fa0f11454
diff --git a/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java b/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java
index 3d5b7eb28af..61816a7c5f1 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java
@@ -329,8 +329,7 @@ public class QueryElevationComponent extends SearchComponent implements SolrCore
*
* @return The cached or loaded {@link ElevationProvider}.
*/
- @VisibleForTesting
- ElevationProvider getElevationProvider(IndexReader reader, SolrCore core) {
+ protected ElevationProvider getElevationProvider(IndexReader reader, SolrCore core) {
synchronized (LOCK) {
if (cacheElevationProvider != null && Objects.equals(cacheIndexReader.get(), reader)) {
return cacheElevationProvider; // cache hit !
@@ -377,7 +376,8 @@ public class QueryElevationComponent extends SearchComponent implements SolrCore
*
* @return The loaded {@link ElevationProvider}; not null.
*/
- private ElevationProvider loadElevationProvider(SolrCore core) throws IOException, SAXException {
+ protected ElevationProvider loadElevationProvider(SolrCore core)
+ throws IOException, SAXException {
Document xmlDocument;
try {
xmlDocument = SafeXMLParsing.parseConfigXML(log, core.getResourceLoader(), configFileName);