1 CONTINUED articles solr environment to build (a),
name: custom name, recommendations and instanceDir consistent
Examples of categories under solrhome directory: instanceDir
dataDir: default data to fill
config: Specifies the configuration file, / usr / local / solrhome / new_core / conf / solrconfig.xml
schema: schema.xml specified file, new_core / conf / schema file (actually a managed-schema file)
note! In schema.xml below an exclamation point!
If you take care of him will be prompted to click on Add Core solrconfig.xml File not found
1.1 Solution:
The first step: enter the solrhome / new_core directory, copy /solr-7.7.0/server/solr/configsets/_default/conf folder to new_core directory .
# Cp -r /usr/local/solr/solr-7.3.1/server/solr/configsets/_default/conf ./
second step: switch to solrhome directory, copy /usr/local/solr/solr-7.7.0 / contrib folder to solrhome directory .
# Cp -r /usr/local/solr/solr-7.7.0/contrib/ ./
The third step: copy solr-7.7.0 / dist folder to solrhome directory
# Cp -r /usr/local/solr/solr-7.7.0/dist/ ./
Step Four: Modify the core profile solrhome / new_core / conf / solrconfig.xml,
The main contrib directory is modified, the relative position of the dist directory.
<lib dir="${solr.install.dir:..}/contrib/extraction/lib" regex=".*\.jar" /> <lib dir="${solr.install.dir:..}/dist/" regex="solr-cell-\d.*\.jar" /> <lib dir="${solr.install.dir:..}/contrib/clustering/lib/" regex=".*\.jar" /> <lib dir="${solr.install.dir:..}/dist/" regex="solr-clustering-\d.*\.jar" /> <lib dir="${solr.install.dir:..}/contrib/langid/lib/" regex=".*\.jar" /> <lib dir="${solr.install.dir:..}/dist/" regex="solr-langid-\d.*\.jar" /> <lib dir="${solr.install.dir:..}/contrib/velocity/lib" regex=".*\.jar" /> <lib dir="${solr.install.dir:..}/dist/" regex="solr-velocity-\d.*\.jar" />
Step five: Restart Core Services to create normal, then
instanceDir folder (new_core) in core.properties will automatically generate a file .
3 Supplement
After the need to create a core of solrCore time again, I would not be too much trouble.
New_core directory can be directly copied first created, you can modify the name core.properties file .