Solr Collection Setup
A dedicated Solr collection needs to be created for Talend Data Catalog to store search data. Take the following steps to set up the new collection.
Create a new configset
Configsets are a set of configuration files used in a Solr installation. When you create a collection in SolrCloud, you can specify a named configset. In SolrCloud, configsets are stored in ZooKeeper and not the file system.
You may copy a predefined configset from the %MM_HOME%\data\solr\mm to $SOLR_HOME\configsets, and then upload the configset to ZooKeeper as a named configset mm using the following command:
bin\solr zk upconfig -n mm -d mm -z localhost:9983
Note: The default zooKeeper port number is 9983.
Create a new collection
You may create a new collection named mm using the Solr Admin UI. Make sure that you select the configset mm as the value of the config set parameter.
Or you may use the Solr Collections API to create a new collection named mm using the following command:
curl -X POST http://localhost:8983/api/collections
-H "Content-Type: application/json" -d '
{
"create": {
"name": "mm",
"config": "mm",
"numShards":1,
"replicationFactor":1
}
}
'
Note 1: The default solr port number is 8983.
Note 2: The above command uses the Solr V2 Collections API. The V2 Collections API would work if your Solr server is on Solr 9.x. If your Solr server is on Solr 8.x, you can use the Solr V1 Collections API, such as
http://localhost:8983/solr/admin/collections?action=CREATE&name=mm&collection.configName=mm&numShards=1&replicationFactor=1