#2354 - Detect full-text minimum search length

Identifier #2354
Issue type Feature request or suggestion
Title Detect full-text minimum search length
Status Completed
Tags

Roadmap: v11 (custom)

Handling member PDStig
Addon core_database_drivers
Description Add a new fulltext_minimum_search_length() function to DB drivers.
Steps to reproduce

Additional information So we can tidy up code like this...

if (substr(get_db_type(), 0, 5) == 'mysql') {
$_min_word_length = $GLOBALS['SITE_DB']->query('SHOW VARIABLES LIKE \'ft_min_word_len\'', null, null);
if (array_key_exists(0, $_min_word_length)) {
$min_word_length = intval($_min_word_length[0]['Value']);
}
}
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated