错别字3。标头中的扩展"Indexed Search"。如何从搜索结果中排除目标页面?



目标页面被排除在setup.typoscript的搜索结果之外。但在结果中它出现了。

targetPid为179。

setup.typoscript

lib.headerSearch = USER
lib.headerSearch {
userFunc = TYPO3CMSExtbaseCoreBootstrap->run
extensionName = IndexedSearch
pluginName = Pi2
vendorName = TYPO3CMS
switchableControllerActions {
Search {
enter image description here            1 = form
2 = search
}
}
features {
requireCHashArgumentForActionArguments = 0
}
view < plugin.tx_indexedsearch.view
templateRootPaths {
0 = EXT:indexed_search/Resources/Private/Templates/
10 = {$plugin.tx_indexedsearch.view.templateRootPath}
20 = EXT:site_package/Resources/Private/Templates/
}
partialRootPaths {
0 = EXT:indexed_search/Resources/Private/Partials/
10 = {$plugin.tx_indexedsearch.view.partialRootPath}
20 = EXT:site_package/Resources/Private/Partials/Search/
}
partialRootPaths {
10 = EXT:bootstrap_package/Resources/Private/Partials/IndexedSearch/
20 = EXT:site_package/Resources/Private/Partials/Search/
}

settings =< plugin.tx_indexedsearch.settings    
settings.results.excludeUidList = 179
}

excldeuidlist exists in results

结果页出现在结果集[-1].rows

excludeUidList是属于TypoScriptHMENU的参数,但IIRC不属于索引搜索。

如果您想从搜索结果中排除一个页面,只需转到该页编辑表单的behaviour选项卡并单击Include in Search[no_search]开关

您确定excludeUidList是有效的设置吗?我在文档中找不到:https://docs.typo3.org/c/typo3/cms-indexed-search/main/en-us/Configuration/TypoScript/Index.html

indexed_search就像一个普通的爬虫:所以你可以"隐藏"通过元标签和页面设置的页面:

page.meta {
robots = INDEX,FOLLOW    
robots.override = NOINDEX,NOFOLLOW 
robots.override.if.isTrue.field = no_search 
}

相关内容

  • 没有找到相关文章

最新更新