1. Create the appropriate directories. Let's assume that the data directory is under /solrdata.
% mkdir -p /solrdata/core2/conf /solrdata/core2/data2. Copy the conf directory from the existing core
% cp /solrdata/core1/conf/* /solrdata/core2/conf3. Create a solr.xml file in the SOLR_HOME directory with the following:
4. Since the dataDir property is already defined in the solr.xml file, we need to comment out the dataDir element in <INSTANCE_DIR>/conf/solrconfig.xml. It will look something like this:
5. Restart SOLR. The new cores should be listed in http://<hostname>:<port>/solr
Thanks for this post. Was very helpful.
ReplyDeletesukeshnambiar@indiatimes.com
Thank you, this helped me!
ReplyDeleteCheers!
Great work, Your tutorial it's good for me, thank you
ReplyDeleteI'm a pinoy too. Not too many of us in the IT field.
ReplyDeletecan you please guide me how i can create the indexing files using DIH in the core0 and core1
ReplyDeleteuseful post. thanks! just add a closing tag for cores element
ReplyDelete