Skip to content

Add new config setting for minimum search length#12

Merged
ivanomatteo merged 3 commits into
ivanomatteo:mainfrom
outofcontrol:add-min-len-search-config
Jan 29, 2026
Merged

Add new config setting for minimum search length#12
ivanomatteo merged 3 commits into
ivanomatteo:mainfrom
outofcontrol:add-min-len-search-config

Conversation

@allcreatures

Copy link
Copy Markdown
Contributor

This commit adds a new config file variable called ft_min_word_len. QueryParserMysqlFullTextBool.php is updated to use this variable instead of a hard coded value.

Reason: There are some instances when the minimum search length is not appropriate for a project. This change lets the developer set their own minimum search term length, to ensure it matches their MySQL/MariaDB variable for ft_min_word_len (MyISAM) or innodb_ft_min_token_size (InnoDB).

Test ran successfully.

@allcreatures allcreatures deleted the add-min-len-search-config branch July 26, 2023 17:56
@allcreatures allcreatures restored the add-min-len-search-config branch July 26, 2023 17:57
@allcreatures allcreatures reopened this Jul 26, 2023
@naboo

naboo commented Oct 3, 2025

Copy link
Copy Markdown

Would this be something that could be approved? Would be nice to include searchable words smaller then 3 per default.

@allcreatures did you do any workaround for this yourself until its approved? (old ticket now...)

@ivanomatteo ivanomatteo merged commit 246e3aa into ivanomatteo:main Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants