XenForo search errors instead of reporting the search is too long


Well-known member
Affected version
XenForo generates an \XF\Entity\Search record for search once done, which has a length limit of 200 characters for the search keywords. However, searches are sent to the search backend before attempting to save the search results.

This means the search can potentially send too long a query to the backend and will instead log a server error instead of reporting to the user the search was too long.

This is most noticeable with the elasticsearch backend, a keyword search which is quite long but just under the limit and then a user who can't view a large number of forums when searching for body+title (ie not title-only), and also then uses a number of facet search terms.

Related XFES error:
Top Bottom