indexed_search显示来自不同语言的内容

时间:2016-08-04 16:15:26

标签: search typo3 typo3-7.6.x indexed

我安装了indexed_search 7.6.0并遇到问题,它显示了来自不同语言的内容。

在这个回答中:https://stackoverflow.com/a/8713301/2481955
是一个解决方案(看To solve 2.:),但似乎这在typo3 7.6

中不起作用

这是我的英文版Typoscript:

[globalVar = GP:L = 2]
    config {
      htmlTag_langKey = 2
      sys_language_uid = 2
      language = en
      locale_all = en_EN
      sys_language_overlay = hideNonTranslated
      sys_language_mode = strict
    }
      lib.language.value = 2

    plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 2
[global]

我清理了所有现金和所有索引。但是,只要我用另一种语言调用一个页面,然后用英语(2)搜索,这个错误语言的页面就会再次显示为搜索结果。

1 个答案:

答案 0 :(得分:2)

配置已更改。

旧:

plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 2

新:

plugin.tx_indexedsearch.settings.defaultOptions.languageUid = 2

示例:

plugin.tx_indexedsearch.settings.defaultOptions.languageUid < page.config.sys_language_uid

......或......

plugin.tx_indexedsearch.settings.defaultOptions.languageUid < config.sys_language_uid

...取决于您的语言是在page.config.sys_language_uid还是config.sys_language_uid中配置的。

有关更多选项,请查看/typo3_src/typo3/sysext/indexed_search/Configuration/TypoScript/setup.txt中的默认配置

相关问题