Each word in your search query must be at least two characters long (SMF 2 search error)

spiros · 1 · 1325

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 856973
    • Gender:Male
  • point d’amour
Each word in your search query must be at least two characters long (SMF 2 search error)

In Sources/Search.php

Find

Code: [Select]
        // Don't allow very, very short words.
        elseif ($smcFunc['strlen']($value) < 2)
        {
            $context['search_errors']['search_string_small_words'] = true;
            unset($searchArray[$index]);
        }

Replace

Code: [Select]
        // Don't allow very, very short words.
        elseif ($smcFunc['strlen']($value) < 2)
        {
            unset($searchArray[$index]);
        }
« Last Edit: 23 Feb, 2022, 19:14:46 by spiros »
Look up Multiple Greek, Ancient Greek and Latin dictionaries — Οὕτω τι βαθὺ καὶ μυστηριῶδες ἡ σιγὴ καὶ νηφάλιον, ἡ δὲ μέθη λάλον· ἄνουν γὰρ καὶ ὀλιγόφρον, διὰ τοῦτο καὶ πολύφωνον (Plutarch)


 

Search Tools