Blog Joomla Search Term Limit on Joomla

Search Term Limit on Joomla

Search term must be a minimum of 3 characters and a maximum of 20 characters. What if you want to search only 2 characters thing? Or you want to limit your search at minimum using at least 10 characters?

Just go to /administrator/components/com_search/helpers/search.php

See line 69

{xtypo_code}        if ( $searchword && JString::strlen( $searchword ) < 3 ) {
            $searchword     = '';
            $restriction     = true;
        }{/xtypo_code}

Change that 3 to whatever number you like.


blog comments powered by Disqus

Hello!

Yofie Setiawan

My name is Yofie, I manage a solid team of web designers and web developers based in Jakarta, Indonesia. We are experts in building websites with Joomla CMS and are able to build websites using Responsive Web Design technology. If you are interested in hiring us for a project, Contact Us!