[TYPO3-Solr] Setting multilanguage for solr

Olivier Dobberkau olivier.dobberkau at dkd.de
Mon Apr 18 20:52:47 CEST 2011


Am 18.04.11 15:58, schrieb Nikolay Orlenko:

> What I have done:
> 1. Created two folders for new cores site_domainde_lang0 and
> site_domainde_lang1
> 2. Copied config files and folders from /opt/solr-tomcat/solr/conf/ to
> created folders (site_domainde_lang0 and site_domainde_lang1)
> 3. Created solr.xml in /opt/solr-tomcat/solr/
> with content:
>
> <?xml version="1.0" encoding="UTF-8">
> <solr persistent="true" sharedLib="lib">
> <cores adminPath="/admin/cores">
> <core name="dev-domainde-1-0-de_DE" instanceDir="site_domainde_lang0" />
> <core name="dev-domainde-1-1-en_EN" instanceDir="site_domainde_lang1" />
> </cores>
> </solr>

hi nikolay,

try it this way...

<solr persistent="true">
<!--
adminPath: RequestHandler path to manage cores.
If 'null' (or absent), cores will not be manageable via request handler
	-->
<cores adminPath="/admin/cores" shareSchema="true">

<core name="core_de" instanceDir="typo3cores" schema="german/schema.xml" 
    dataDir="data/core_de" />
<core name="core_en" instanceDir="typo3cores" 
schema="english/schema.xml"   dataDir="data/core_en" />
</cores>
</solr>


olivier


More information about the TYPO3-project-solr mailing list