O'Reilly logo

Apache Solr 3.1 Cookbook by Rafał Kuć

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making multilingual data searchable with multicore deployment

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.

How to do it...

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" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required