You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ds...@apache.org on 2023/09/20 05:30:35 UTC
[solr] branch branch_9x updated: QueryElevationComponent: declare some methods as protected (#1901)
This is an automated email from the ASF dual-hosted git repository.
dsmiley pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new a9cbf2c7faf QueryElevationComponent: declare some methods as protected (#1901)
a9cbf2c7faf is described below
commit a9cbf2c7faf543faa47eaf53129a1c8567f16cf5
Author: David Smiley <ds...@salesforce.com>
AuthorDate: Wed Sep 20 01:26:34 2023 -0400
QueryElevationComponent: declare some methods as protected (#1901)
Co-authored-by: Nazerke Seidan <ns...@salesforce.com>
---
.../org/apache/solr/handler/component/QueryElevationComponent.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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);