Help:Configuration parameter "$smwgFulltextSearchMinTokenSize"

From semantic-mediawiki.org
Jump to: navigation, search
edit with form (experimental)


Title $smwgFulltextSearchMinTokenSize
Description Sets the minimum word/token length to help to decide whether MATCH or LIKE operators are to be used for a condition statement
Default setting
3
Software Semantic MediaWiki
First version supported 2.5.0
Last version supported still available
Configuration Full-text search
Keyword Full-text search

$smwgFulltextSearchMinTokenSize is a configuration parameter that sets the minimum word/token length to help to decide whether MATCH or LIKE operators are to be used for a condition statement of the full-text search. This helps to switch back to LIKE in cases where the minimum threshold is not applicable. The configuration parameter is specific to the relational data stores MySQL and MariaDB. The setting was introduced in Semantic MediaWiki 2.5.0.1

The default setting to this configuration parameter is "3". If this configuration parameter is changed it must be set to an integer between "1" and "16" corresponding to either the configuration parameter innodb_ft_min_token_size (integer between "0" and "16") or configuration parameter ft_min_word_len (integer higher than "1").

Important noteImportant Note: The "rebuildFulltextSearchTable.php" maintenance script has to be run after changing the setting of this configuration parameter.
NoteNote: This setting only takes effect if the full-text search feature was enabled.

See also