[TYPO3-Solr] Multitree Setup

Ingo Renner ingo at typo3.org
Fri Aug 19 15:30:17 CEST 2011


Am 19.08.11 11:44, schrieb Heiko Kromm | Paints:

Hi there,

> website.com (page is siteroot, id1)
> - de (id 2)
> - en (id 3)
> - ru (id 4)

> [PIDinRootline = 3]
> plugin . tx_solr . solr . path = /solr /core_en /
> [end]
>
> [PIDinRootline = 3]
> plugin . tx_solr . solr . path = /solr /core_ru /
> [end]
>
> But it seems that this does not work.

... it won't ...

When you clear the configuration cache, the solr extension tries to find 
the configured Solr connections. It does so by looking up the root pages 
(flag "is root page") and running combinations with the languages on 
root (pid 0).
So in the end your condition will not match since you're using a page ID 
condition instead of a language (L GET parameter) condition.

To make it work you need to

* give a domain record to each of your sub-trees (and set the root flag 
for each of it).

OR

* restructure your site to have only one tree/root with multi-language - 
the classic single tree multi language concept which is recommended in 
TYPO3.


Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2, Admin Google Summer of Code

TYPO3 - Open Source Enterprise Content Management System
http://typo3.org

Apache Solr for TYPO3 -
Open Source Enterprise Search meets Open Source Enterprise CMS
http://www.typo3-solr.com


More information about the TYPO3-project-solr mailing list