- 1 year ago
Start solr cloud and attach to existing collection
Comment
1 / 1
To start Solr Cloud and attach to an existing collection, you need to follow these steps:
Start ZooKeeper:
- Solr Cloud relies on ZooKeeper for cluster coordination. Ensure that ZooKeeper is running and accessible.
Start Solr Cloud in SolrCloud mode:
- Open a command prompt or terminal and navigate to your Solr installation directory.
- Execute the following command to start Solr in SolrCloud mode, specifying the ZooKeeper connection string and the desired Solr port:
Replacebashbin/solr start -cloud -p 8983 -z <ZooKeeperHost>:<ZooKeeperPort>
<ZooKeeperHost>
and<ZooKeeperPort>
with the appropriate ZooKeeper connection details.
Attach to the existing collection:
- Open a web browser and access the Solr Admin UI at
http://localhost:8983/solr
. - Go to the "Collections" page and click on the "Add a Collection" button.
- Provide the required information, including the collection name, configuration, and number of shards and replicas.
- Make sure to specify the existing collection name in the "Collection Name" field. Solr will recognize it as an existing collection and attach to it.
- Click the "Add Collection" button to create and attach to the existing collection.
- Open a web browser and access the Solr Admin UI at
By following these steps, you can start Solr Cloud, connect it to ZooKeeper, and attach to an existing collection. Make sure to adjust the port number, ZooKeeper connection details, and other parameters as per your specific environment and requirements.