• 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"?

ProCom

Well-known member
#1
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?

Thanks!
 

Mike

XenForo developer
Staff member
#2
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.