我将 Solr Search 与 TYPO3 9x 一起使用,并在其上编制自定义内容 (sf_books) 的索引。
当我在搜索表单中键入书名并单击任何建议时,链接将重定向到列表页书而不是书详细信息页面。
这是我的 TS 设置:
plugin.tx_solr.index.queue {
sfbooks = 1
sfbooks {
table = tx_sfbooks_domain_model_book
fields {
url = CASE
url {
key.field = type
# Internal
1 = TEXT
1 {
if.isTrue.field = internalurl
typolink.parameter.field = internalurl
typolink.useCacheHash = 1
typolink.returnLast = url
}
# External
2 = TEXT
2 {
if.isTrue.field = externalurl
field = externalurl
}
default = TEXT
default {
typolink.parameter = {$plugin.tx_sfbooks_book.bookPageId}
typolink.additionalParams = &tx_sfbooks_pi1[controller]=News&tx_sfbooks_pi1[action]=detail&tx_sfbooks_pi1[news]={field:uid}&L={field:__solr_index_language}
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
}
}
}