1. 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

Discussion in 'XenForo Development Discussions' started by mlx, Oct 13, 2010.

  1. mlx

    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.
    Vladislav Rastrusny likes this.
  2. Kier

    Kier 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.
    Vladislav Rastrusny likes this.
  3. mlx

    mlx Well-Known Member

    Alright then. I'll just post it as is with an instruction how to set it up tomorrow :)
  4. Andy.N

    Andy.N Well-Known Member

    Sphinx search in XenForo? Weeeeee...
    Watching thread.
  5. Kier

    Kier XenForo Developer Staff Member

    I was thinking the same :)
  6. mlx

    mlx Well-Known Member

Share This Page