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

Fixed Search Results

R

ragtek

Guest
#2

Brogan

XenForo moderator
Staff member
#4
The search is just returning all posts in chronological order as the search term isn't being used:

The following words were not included in your search because they are too short, too long, or too common: ,

I've mentioned to Mike and Kier what seems to be a different issue with the actual search term [Duplicate] not being included in the error text.
 
#5
Ah ok thanks,
but I have 2 suggestions:
- make the error more "visible"
- Why display results, if the search string is invalid?
 

Brogan

XenForo moderator
Staff member
#7
The SQL stop words actually produce a different error.

The search could not be completed because the search keywords were too short, too long, or too common.
 
#8
I don't understand what you two are saying.

There are three issues:
- the string [Duplicate] ist not displayed in the error message
- the string [Duplicate] is ignored, because ??? (mysql index or something inside xenforo)
- the search page displays results (all threads) when there's a single invalid
string ("[Duplicate]" at least)

I mean "invalid" for the search engine: mysql/xenforo/php/sphinx/..., no matter if this is because of syntax rules, content rules, length rules or a bug.
 

Mike

XenForo developer
Staff member
#9
I've fixed this now. The [ and ] are split characters in MySQL, so it was interpreting the query as having "duplicate" being optional. I adjusted our analysis code to take this into account.