I am working on some custom search plugins and I have a 2-part question regarding the file
I want to adjust the sanitization settings without hacking core files.
$lower_limit = 1;
The core script supplies a value of
3 and reads:
$lower_limit = $lang->getLowerLimitSearchWord();
I have found the reference https://api.joomla.org/cms-3/classes/Joomla.CMS.Language.Language.html#method_getLowerLimitSearchWord. It tells me:
integer The lower limit integer for length of search words (3 if no value was set for a specific language)
but this doesn't tell me how/where to override that default value. I assume I should be doing something like
COM_SEARCH_LOWER_LIMIT_SEARCH_WORD=1 or something.
Question 1. Which language override file do I need to write to and what is the appropriate syntax?
The next setting to understand is
$search_ignore = $lang->getIgnoredSearchWords();. Right now, it is showing me a whitelist of
Question 2. How do I adjust the
I found where the default values are stored, but I don't want to hack this file: https://github.com/joomla-framework/language/blob/master/Tests/data/language/en-GB/en-GB.localise.php
This JSE question is virtually a duplicate but it fails to explain how to override these defaults.
I'm not meant to touch