ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Search Term Character Limit / Minimum

May 01, 2012 12:28pm

Subscribe [2]
  • #1 / May 01, 2012 12:28pm

    Aaren Hofferth

    55 posts

    I have a client that needs to have state abbreviations (AZ, WA, NC) searchable, which doesn’t work with EE, since there is a search limit of 3 characters for MySQL. I read this thread (http://ellislab.com/forums/viewthread/187656/), in which someone else had this issue. I’m wondering if anyone has any solutions for this limitation. I’ve read solutions online in similar situations where a supplemental “_” character was added to a search to meet the minimum requirements to search the DB. I’m surprised this hasn’t come up before, since it seems like a pretty basic requirement. Perhaps I’m missing something.

    Thanks!

  • #2 / May 01, 2012 12:51pm

    Bhashkar Yadav

    727 posts

    Hi Aaren Hofferth,

    i think, there is no way for setting limit of search characters from CP.

    you can overcome from this :

    1) set the character limit by the setting the value of $min_length in mod.search.php
    2) look into the file system\expressionengine\config\stopwords.php, if there is any word being used as search term or as “common search words” which you are using for search.

    I hope this would help you.


    Best Regards,

  • #3 / May 07, 2012 5:37pm

    Aaren Hofferth

    55 posts

    All the threads I’ve read said it wasn’t possible to do that, so I didn’t bother, however, that solution seems to work pretty well, thanks ! 😊

  • #4 / Jul 26, 2012 6:15am

    m0nkey

    4 posts

    You would probably need to change your SQL config to allow search for less than 3 characters, by default on most servers this is set to 3 characters or more

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases