1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Searching terms with dashes "too short"?

Discussion in 'Troubleshooting and Problems' started by ProCom, Jan 30, 2014.

  1. ProCom

    ProCom Active Member

    My users are trying to search for something like "abc-123" but they get a search result error that says it is too short.

    I understand that there are 3 character limits, etc., but how do I force the search to see this as a single 7 character search vs. 2 words with three characters and a dash between? Quotes around the word doesn't work.

    Is there an option for (besides changing the search system / elasticsearch) that will allow this search to work?

  2. Mike

    Mike XenForo Developer Staff Member

    MySQL splits on characters including "-", so that would be seen as 2 3-letter words and thus likely under your limit. There's no way around the MySQL limit itself.

    You could try reducing the minimum length setting in XF in case your server has been set to index 3 character words though.
    ProCom likes this.
  3. ProCom

    ProCom Active Member

    Thanks Mike, it's good to know that it's just a function of MySQL vs. something specific to XF.

Share This Page