2016-08-01 38 views
1

我有一個配置了TYPO3站點的索引搜索引擎。TYPO3索引搜索顯示錯誤分頁

它顯示的搜索結果,但錯誤的分頁。選擇第一個除外的其他頁面後,它顯示了正確的pagination.First頁面顯示129個結果

第1頁第二頁第三頁第4頁....第10頁下一頁>>

但我們r去10頁該頁面是空的,結果showig共有19個結果

第一頁第二頁下一頁>>

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 
+1

你使用哪種版本的方式? –

+0

typo3 7.6版本 –

+1

您能更清楚地知道什麼是「錯誤的分頁」?鏈接被破壞?更少/更多的頁面,比需要?不與搜索結果關聯? –

回答

2

可能的問題可能出現在訪問受限制的頁面中,默認情況下不會將其考慮在內。

indexed_search manual

search.exactCount

強制許可檢查對每條記錄同時顯示搜索結果 。否則,記錄只檢查到當前結果 頁面,這可能會導致結果計數器不打印 確切數量的搜索匹配。

通過啓用此設置,不會停止循環,從而導致 精確的結果計數,其代價是由此 開銷引起的(顯而易見的)放慢成本。

所以,你可以簡單地設置plugin.tx_indexedsearch.search.exactCount = 1來解決這個問題。