Create the Solr Cores (Cloud)
The cores for Windchill Index Search, Windchill PartsLink, S1000D and Service Information Manager modules are automatically created at the time of installation. This section describes how to create the cores manually when the cores created by PSI got removed for some reason.
* 
The cores of the Windchill Index Search, Windchill PartsLink, S1000D and Service Information Manager modules are automatically created, even if the modules are not installed. Therefore, if you later decide to install these modules, you are not required to create the respective cores.
1. Open a command prompt and start Solr using the following commands:
Start Solr (Windows):
<INDEX_SEARCH_HOME>/bin/Index_Search_Server.bat start
Start Solr (Unix):
sh <INDEX_SEARCH_HOME>/bin/Index_Search_Server.sh start
where <INDEX_SEARCH_HOME> is the installation directory in which the index search server is installed.
2. From the command prompt, navigate to <INDEX_SEARCH_HOME>/solr/bin and execute the following command to create the core for the required module:
Windows:
solr.cmd create -c <Collection Name> -n <ConfigSet Name> -d <ConfigSet Path> -shards <Number of shards> -replicationFactor <Number of replicas (Solr nodes)>
Unix:
solr create -c <Collection Name> -n <ConfigSet Name> -d <ConfigSet Path> -shards <Number of shards> -replicationFactor <Number of replicas (Solr nodes)>
* 
Execute the command only once from any installation. Zookeeper will make the core available to the entire Solr cloud.
Windchill Index Search
Windows:
solr.cmd create -c wblib -n wblib -d
D:\ptc\IndexSearchServer_Solr1\solr_schemas\wblib -shards 1 -replicationFactor 2
Unix:
solr create -c wblib -n wblib -d
/opt/ptc/IndexSearchServer_Solr1/solr_schemas/wblib -shards 1 -replicationFactor 2
Windchill PartsLink
Windows:
solr.cmd create -c clfstructurelib -n clfstructurelib -d D:\ptc\IndexSearchServer_Solr1\solr_schemas\clfstructurelib -shards 1 -replicationFactor 2
Unix:
solr create -c clfstructurelib -n clfstructurelib -d /opt/ptc/IndexSearchServer_Solr1/solr_schemas/clfstructurelib -shards 1 -replicationFactor 2
S1000D
Windows:
solr.cmd create -c sisaadlib -n sisaadlib -d
D:\ptc\IndexSearchServer_Solr1\solr_schemas\sisaadlib -shards 1 -replicationFactor 2
Unix:
solr create -c sisaadlib -n sisaadlib -d
/opt/ptc/IndexSearchServer_Solr1/solr_schemas/sisaadlib -shards 1 -replicationFactor 2
Service Information Manager
Windows:
solr.cmd create -c sisatalib -n sisatalib -d
D:\ptc\IndexSearchServer_Solr1\solr_schemas\sisatalib -shards 1 -replicationFactor 2
Unix:
solr create -c sisatalib -n sisatalib -d
/opt/ptc/IndexSearchServer_Solr1/solr_schemas/sisatalib -shards 1 -replicationFactor 2
3. Open the Solr administrator interface and verify that Solr is running and the cores are available:
http://<SOLR_HOSTNAME>:<SOLR_PORT>/solr
War dies hilfreich?