Manual:$wgDBminWordLen

Category:MediaWiki configuration settings#DBminWordLenCategory:MediaWiki configuration settings introduced before version 1.1.0#DBminWordLenCategory:MediaWiki configuration settings removed in version 1.6.0#DBminWordLenCategory:MediaWiki deprecated or obsolete features#DBminWordLenCategory:MySQL specific variables#DBminWordLen
MySQL-specific: $wgDBminWordLen
Used to discard words that MySQL 3.x will not return any results for shorter values configure MySQL directly.
Introduced in version:Before 1.1.0
Removed in version:1.6.0
Allowed values:(integer)
Default value:4

Details

This config var is extremely obsolete and applied only to MediaWiki 1.5 and below running on MySQL 3.x. Nearly everybody today should be looking at Manual:FAQ for this issue.

Minimum string length that the search engine will search on.

  • The Go function will take you to a page that is an exact match for the name.
  • The Search function will appear to search and give no results.
MySQL 3.x
Used to discard words that MySQL will not return any results for. Shorter values configure MySQL directly.
MySQL 4.x+
Ignore $wgDBminWordLen and configure MySQL directly.

To configure MySQL, see the MySQL fulltext fine-tuning documentation (4.0/4.1, 5.1). The only table with a fulltext index in wikimedia is searchindex, so after changing the MySQL configuration and restarting MySQL, issue the command REPAIR TABLE searchindex QUICK;.

Note

While the effects of the setting were removed in version 1.6, the variable wasn't removed from DefaultSettings until version 1.14 (r41038).

Category:Search variables
Category:MediaWiki configuration settings Category:MediaWiki configuration settings introduced before version 1.1.0 Category:MediaWiki configuration settings removed in version 1.6.0 Category:MediaWiki deprecated or obsolete features Category:MySQL specific variables Category:Search variables