[TYPO3-Solr] Pages get indexed with wrong URL
Hauke Meyer
meyer at visionconnect.de
Wed Feb 27 15:15:56 CET 2013
After working on some projects with solr and this extension I must say
there are a lot of things that can go wrong. Not because of the authors
of the extension or solr did a bad job but because the things are
complicated!
- You must be sure of your configuration! What does the Object-Browser
shoes you? Especially when you simulate "L=0" or "L=1"
- Are you sure your language switching works right? No, it does not ;-)
Otherwise it would work.
- If anything goes wrong and you have some PHP skills you can have a
look at "classes/class.tx_solr_util.php" why the hack the
"getSolrConfiguration" gives you the wrong kernel. The indexing itself
is running through the classes below "classes/indexque", but I expect
the error inside your configuration.
But this is just the beginning! In the end I promise you the failure is
on your side and it has a simple looking reason.
Sorry for not be a better help
Hauke
Am 26.02.2013 12:01, schrieb Schwarzenberg:
> Does nobody has an idea?
> Perhaps it's because German is setup as the default language
> (config.sys_language_uid = 0) ? Would it perhaps be better to set
> English as the default Language with sys_language_uid = 0 because
> typo3-solr probably makes some assumptions in this direction?
>
>
> Best Regards, Heiko
>
>> Hello List,
>>
>> I have a multilangue site with german as default (id=0) and english
>> (id=1) as second language. solr
>> has a two-core-setup.
>> For some reason, all german pages are indexed with the english URL.
>>
>> here is the relevant config:
>>
>> # realurl
>> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
>> '_DEFAULT' =>
>> array (
>>
>> [..]
>>
>> 'preVars' =>
>> array (
>> 0 =>
>> array (
>> 'GETvar' => 'L',
>> 'valueMap' =>
>> array (
>> 'de' => '0',
>> 'en' => '1',
>> ),
>> 'noMatch' => 'bypass',
>> ),
>> ),
>> ),
>> );
>>
>> # typoscript
>>
>> config.baseURL = {$BASE_URL}
>> config.tx_realurl_enable = 1
>> config.simulateStaticDocuments = 0
>>
>> config.uniqueLinkVars = 1
>> config.tx_realurl_enable = 1
>> config.typolinkCheckRootline = 1
>>
>> config.sys_language_uid = 0
>> config.language = de
>> config.locale_all = de_DE.utf8
>> config.htmlTag_langKey = en
>>
>> config.linkVars = L(0-3)
>>
>> [globalVar = GP:L = 1]
>> config.sys_language_uid = 1
>> config.language = en
>> config.locale_all = en_GB.utf8
>> config.htmlTag_langKey = en
>>
>> plugin.tx_solr.solr.path = /solr-typo3/core_en
>> [global]
>>
>> plugin.tx_solr.solr.path = /solr-typo3/core_de
>>
>>
>>
>> what could be wrong?
>>
>>
>> best regards,
>> heiko
>> _______________________________________________
>> TYPO3-project-solr mailing list
>> TYPO3-project-solr at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr
>>
> _______________________________________________
> TYPO3-project-solr mailing list
> TYPO3-project-solr at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr
More information about the TYPO3-project-solr
mailing list