mlx
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
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.
For testing purposes I just edited library/XenForo/Search/SourceHandler/Abstract.php and replaced
withpublic 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.