Replace library/XenForo/Search/SourceHandler/MySqlFt.php


Well-known member
I'm working on a Sphinx Search Engine handler to replace the default MySQL full text search.

For testing purposes I just edited library/XenForo/Search/SourceHandler/Abstract.php and replaced
public static function getDefaultSourceHandler()
return new XenForo_Search_SourceHandler_MySqlFt();
public static function getDefaultSourceHandler()
return new SphinxSearch_Search_Sphinx();
It's working nicely this way.

I just can't seem to figure out how to override that method with a proper Code Event Listener.

Any ideas?

Needless to say that I'm going to post the result as a free add-on.


XenForo developer
Staff member
The use of getDefaultSourceHandler() looks like there is intended to be a soft return value there, which has not yet been put in place. For now I think you're along the right lines until a listener becomes available.