We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20557
    • 43 Posts
    Hi,

    I am using AjaxSearch 1.8.3a.

    Is it possible to set "minChars" to be 2? If I do so in a call to the snippit or even directly in the config file, I still get a message saying: "At least 3 characters are required for your search term".

    If I increase the number, it works fine... so is 3 the minimum possible? I am sure I managed to set it to 2 on a previous version of AjaxSearch.

    Thanks and regards,
    Matt
      • 5811
      • 1,717 Posts
      Change the line $dcfg[’minChars’] = 3; in the config/default.config.inc.php file (or in your own config file)
      And change the line
      define('MIN_CHARS',3);     // minimum number of characters
      in the classes/search.class.inc.php file.
        • 20557
        • 43 Posts
        Thanks for the quick reply coroico.
          • 1924
          • 119 Posts
          Hi,

          i´ve got the same problem. I´ve changed everything as mentioned above, but result. I allwasy get the same error message. sad Any hints?

          Best regards, Alex
            • 20557
            • 43 Posts
            Apollo009: Have you had any luck with this?

            Make sure you are editing the "classes/search.class.inc.php file" and not the default config file.

            You could also try adding "&minChars=`2`" to the snippit call.