Manual:$wgCountTotalSearchHits

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgCountTotalSearchHits and the translation is 33% complete.

Other languages:
English • ‎日本語 • ‎polski
Search: $wgCountTotalSearchHits
Allow the default search engine to count the total number of search matches, to be shown on Special:Search.
導入されたバージョン: 1.16.0 (r61008)
除去されたバージョン: 1.24.0 (Gerrit change 144642; git #8c953947)
可能な値: 真偽値
既定値: false
他の設定: アルファベット順 | 機能順

詳細[edit]

Set to true to have the default search engine count total search matches to present in the Special:Search UI. This feature is currently supported only by default MySQL and SQLite search engines.

This could however be slow on larger wikis, and is pretty flaky with the current title vs content split. Recommend avoiding until that's been worked out cleanly; but this may aid in testing the search UI and API to confirm that the result count works.

It was removed because it was broken in latests releases (if $wgCountTotalSearchHits was set to true, then the total number of hits returned was zero, which caused Special:Search to display no results), in favor of using Extension:CirrusSearchExtension:CirrusSearch instead.