You don't always need to handle multiple languages in a single index, either, it's because you have your application in multiple languages showing only one of them at the same time or some other requirement. Whatever your cause is, this recipe will guide you on how to handle separable data in a single instance of Solr server through the use of multicore deployment.
First of all, you need to create the
solr.xml file and place it in your
$SOLR_HOME directory. Let's assume that our application will handle two languages—English and German. The sample
solr.xml file might look like this:
<?xml version="1.0" encoding="UTF-8" ?> <solr> <cores adminPath="/admin/cores/"> <core name="en" ...