[TYPO3-Solr] Step by step for multisite multi language?

Nikolay Orlenko okolya at gmail.com
Mon Jun 6 20:15:24 CEST 2011


Hello Andre!

Here are small step-by-step tutorial. Thanks to Oliver for his supporting :)

1. Run solr script on your server for tomcat and solr installing 
http://forge.typo3.org/projects/extension-solr/repository/entry/trunk/resources/shell/install-solr.sh
2. Configure multicores on server. I think good topic with multi core 
config files you can find here 
http://forumdev.typo3.org/mv/msg/215249/749679/#msg_749679
3. Important! Configure connectors of different languages to different 
cores on TYPO3. If you add new additional languages, for example 
ukranian, add condition in typoscript and set right path to solr core.
Example for ukranian
[globalVar = GP:L = 1]
plugin.tx_solr.solr.path = /solr/core_ua/
[global]
4. Set solr host in typoscript constants.
plugin.tx_solr.solr.host = server_ip
5. Add to crontab commands for commiting index.
Could be
curl http://server_ip:8080/solr/core_en/update -H “Content-Type: 
text/xml”—data-binary ’<commit />’
curl http://server_ip:8080/solr/core_ua/update -H “Content-Type: 
text/xml”—data-binary ’<commit />’
For additional language add new command for each core.
Command should be run 2 times per day at least.
6. Have a look here 
http://forge.typo3.org/projects/extension-solr/wiki/Setup_the_Solr_Extension#Before-going-production
7. Note. Solr start to index pages when admin is not logged in BE and 
page is cached.

BR, Nikolay



More information about the TYPO3-project-solr mailing list