You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
support for Solr-8.x (--reload-core raises org.apache.solr.core.SolrResourceNotFoundException) (story currency.xml NOT found & elevate.xml NOT found)
#1827
Open
8lurry opened this issue
Dec 13, 2021
· 2 comments
to line 1085,
after commenting out (NOT a solution but works for triages) this code-block from solrconfig.xml template, Solr reloads without complaining.
How do we want to fix this?
PS: solr-cloud has completely different structure (zookeeper and all) and is NOT a concern of this issue.
The text was updated successfully, but these errors were encountered:
This issue has been created due to specific requirements in the your solr core configuration files:
schema.xml Dependency: The presence of the declaration in the schema.xml file necessitates the existence of the currency.xml configuration file. This declaration indicates the use of a custom field type named "currency" with specific attributes such as precision step, default currency, and a reference to the currency.xml configuration. See the line of code below, which exists in the schema.xml file:
solrconfig.xml Dependency: Additionally, the solrconfig.xml file includes a configuration for the QueryElevationComponent search component named "elevator". This component is crucial for elevating certain search results and requires proper configuration to function correctly. See the line of code below, which exists in the solrconfig.xml file:
This command configures the core with advanced configsets, resulting in the 'conf' folder containing both 'elevate.xml' and 'currency.xml' files.
Solution 3 :
If your core is already created and has been indexed with a significant amount of data, creating a new core from scratch may not be desirable. In such cases, navigate to the 'configsets' folder within your Solr installation directory. The path may vary depending on the version of Solr installed.
From this 'conf' folder within the 'configsets', simply copy the 'elevate.xml' and 'currency.xml' files and paste them into the 'conf/' directory of your core.
For instance, if your core resides at:
/solr-8.9.0/server/solr/<YOUR_CORE>/conf/
Paste the files into this location.
These steps ensure that your existing core is equipped with the necessary configurations without the need to recreate it from scratch.
Running an Standalone solr core on Solr-8.11.0 and trying to do::
$
python manage.py build_solr_schema --configure-directory="$SOLR_HOME/my_core/conf" --reload-core=my_core
initially raises:
org.apache.solr.core.SolrResourceNotFoundException
looking at the trace I found out that solr asks for
currency.xml
looking at the source code, I blame the following line of code:
django-haystack/haystack/templates/search_configuration/schema.xml
Line 625 in f7a1597
after commenting out (NOT a solution but works for triages) line 211 & 625 from
schema.xml
template and retrying the::$
python manage.py build_solr_schema --configure-directory="$SOLR_HOME/my_core/conf" --reload-core=my_core
raises:
org.apache.solr.handler.component.QueryElevationComponent$InitializationException
looking at the trace, I found out that solr looks for
elevate.xml
looking at the source code, I blame the code block starting from here:
django-haystack/haystack/templates/search_configuration/solrconfig.xml
Line 1071 in f7a1597
after commenting out (NOT a solution but works for triages) this code-block from
solrconfig.xml
template, Solr reloads without complaining.How do we want to fix this?
PS: solr-cloud has completely different structure (zookeeper and all) and is NOT a concern of this issue.
The text was updated successfully, but these errors were encountered: