Subtitle: Why Magento sometimes makes people crazy.
Pop quiz. What does this bit of code do? Hint: It’s used on the catalog search page, and “query” means the text a user entered
Mage::helper('catalogsearch')->isMinQueryLength()
If you said
returns
true
if the search textis
of themin
imumquery
length
You’d be logically right, but 100% wrong. This method returns true
if the query text is too short
My guess is this method was written by a non-native english language speaker, and something got lost in the translation.