You must first stop the MM Application Server, and then use the following options of the MetaKarta setup utility to configure the Solr server URL and collection name:
$MM_HOME/Setup.sh -?
[{ -iu | --index-url }] <string> Solr: set the url of the solr server
[{ -ic | --index-collection }] <string> Solr: set the name of the collection to use
For example:
$MM_HOME/Setup.sh -iu
solr.MyCompany.com -ic mm
Then you can restart the MM Application Server.
If you are not starting from scratch on an empty repository, and instead already have existing local index files for Lucene at $MM_HOME/data/Search or from the bundled Solr Server at $MM_HOME/data/solr, then a migration to the external Solr Server will occur as explained in the following sections.