TYPO3 索引搜索显示错误的分页
TYPO3 Indexed search showing wrong pagination
我有一个使用 TYPO3 站点配置的索引搜索引擎。
它显示了搜索结果,但分页错误。选择除第一个页面以外的其他页面后,显示正确pagination.First页面显示129个结果
page1 page2 page3 page4.... page10 Next>>
但是我们要转到第 10 页,页面是空的,结果显示共有 19 个结果
page1 page2 Next >>
page.config.index_enable = 1
page.config.index_externals = 0
lib.topsearchbar = COA
lib.topsearchbar {
10 = TEXT
10.typolink.parameter = 101
10.typolink.returnLast = url
10.wrap = <form action="|" autocomplete="off" method="post" class="search-form"><fieldset><div class="form-group has-feedback">
20 = COA
20 {
10 = TEXT
10.data = GPvar : tx_indexedsearch |sword
10.wrap (
<input type="search" id="search" class="form-control search-input" name="tx_indexedsearch[sword]" placeholder="search" />
<span class="ion-android-search search-open-btn"></span>
)
20 = COA
20 {
10 = TEXT
10.value = <input type="hidden" name="tx_indexedsearch[sections]" value="0" />
15 = TEXT
15.value = <input type="hidden" name="tx_indexedsearch[lang]" value="0" />
}
}
wrap = | </div></fieldset></form>
}
[globalVar = GP:L = 1]
lib.topsearchbar.20.20.15.value = <input type="hidden" name="tx_indexedsearch[lang]" value="1" />
[global]
plugin.tx_indexedsearch.settings.displayAdvancedSearchLink = 0
plugin.tx_indexedsearch.settings.displayLevel1Sections = 0
plugin.tx_indexedsearch.settings.clearSearchBox = 1
可能的问题可能出现在访问受限的页面中,默认情况下不会考虑这些问题。
search.exactCount
Force permission check for every record while displaying search
results. Otherwise, records are only checked up to the current result
page, and this might cause that the result counter does not print the
exact number of search hits.
By enabling this setting, the loop is not stopped, which causes an
exact result count at the cost of an (obvious) slowdown caused by this
overhead.
所以,您可以简单地设置plugin.tx_indexedsearch.search.exactCount = 1
来解决这个问题。
错别字 3 9 是 plugin.tx_indexedsearch.settings.exactCount = 1
我有一个使用 TYPO3 站点配置的索引搜索引擎。
它显示了搜索结果,但分页错误。选择除第一个页面以外的其他页面后,显示正确pagination.First页面显示129个结果
page1 page2 page3 page4.... page10 Next>>
但是我们要转到第 10 页,页面是空的,结果显示共有 19 个结果
page1 page2 Next >>
page.config.index_enable = 1
page.config.index_externals = 0
lib.topsearchbar = COA
lib.topsearchbar {
10 = TEXT
10.typolink.parameter = 101
10.typolink.returnLast = url
10.wrap = <form action="|" autocomplete="off" method="post" class="search-form"><fieldset><div class="form-group has-feedback">
20 = COA
20 {
10 = TEXT
10.data = GPvar : tx_indexedsearch |sword
10.wrap (
<input type="search" id="search" class="form-control search-input" name="tx_indexedsearch[sword]" placeholder="search" />
<span class="ion-android-search search-open-btn"></span>
)
20 = COA
20 {
10 = TEXT
10.value = <input type="hidden" name="tx_indexedsearch[sections]" value="0" />
15 = TEXT
15.value = <input type="hidden" name="tx_indexedsearch[lang]" value="0" />
}
}
wrap = | </div></fieldset></form>
}
[globalVar = GP:L = 1]
lib.topsearchbar.20.20.15.value = <input type="hidden" name="tx_indexedsearch[lang]" value="1" />
[global]
plugin.tx_indexedsearch.settings.displayAdvancedSearchLink = 0
plugin.tx_indexedsearch.settings.displayLevel1Sections = 0
plugin.tx_indexedsearch.settings.clearSearchBox = 1
可能的问题可能出现在访问受限的页面中,默认情况下不会考虑这些问题。
search.exactCount
Force permission check for every record while displaying search results. Otherwise, records are only checked up to the current result page, and this might cause that the result counter does not print the exact number of search hits.
By enabling this setting, the loop is not stopped, which causes an exact result count at the cost of an (obvious) slowdown caused by this overhead.
所以,您可以简单地设置plugin.tx_indexedsearch.search.exactCount = 1
来解决这个问题。
错别字 3 9 是 plugin.tx_indexedsearch.settings.exactCount = 1