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

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

mlx

Well-known member
#1
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();
}
with
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.
 

Kier

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