Forum Boards (depraced!) > XenForo - Sphinx Search Engine v0.0.1 - x-MoBiLe

XenForo - Sphinx Search Engine v0.0.1 - x-MoBiLe


Date: 15 October 2010 | Posted by: SKRiPTERZ.iNFO
Sphinx Search Engine v0.0.1 for XenForo v1.0.0

Please consider this a very first proof of concept beta release.

XenForo is new to me. So if Im doing something terribly wrong here please let me know

This release assumes that you already know how to setup Sphinx Search Engine, including how to setup cronjobs to reindex your search index and update your delta search index inbetween. A beginner friendly documentation will probably come soon. I just didn't have time for this yet.

I've been using the latest Sphinx 1.10-beta release. An example sphinx.conf is included.

I believe it should work with Sphinx 0.9.9 as well. I didn't have time to test this though.


Installation

   1. Upload all files from the "upload" folder to your XenForo directory
   2. Go to your XenForo Admin Control Panel and click Install Add-on
   3. Select addon_xt_sphinx.xml and click Install Add-on
   4. add the source and index definitions from the included sphinx.conf to your sphinx.conf
   5. reindex your search index
   6. edit library/XenForo/Search/SourceHandler/Abstract.php

      go to the end of the file and replace:

      CODE
      return new XenForo_Search_SourceHandler_MySqlFt();
      with:

      CODE
      return new SphinxSearch_Search_Sphinx();
   7. enjoy your Sphinx Search Engine
   8. please report any bugs and suggestions

P.S. personally i am reindexing every 24 hours at 4a.m. and run the delta each and every minute. This setup works fine for us, but we only have about 3 million posts to reindex anyway. So for really big forums a delta update every 5 minutes might be better. And you need to decide when and if to run the reindex. That really depends on your setup and hardware I guess.


http://www.mediafire.com/?4clb8r641ie0ejx

See full article