A much improved search experience with widgets based on the Sphinx Search Engine
You can now power your vanilla forum with Sphinx!. Sphinx is an open source full text search server, designed from the ground up with performance, relevance (aka search quality). Sphinx indexes up to 10-15 MB of text per second per single CPU core, that is 60+ MB/sec per server (on a dedicated indexing machine). This is the same engine that Craigslist uses to power their site which sees 50+ Million queries each day.
This plugin comes bundled with the sphinx search tarball and requires no knowledge to install everything. It comes with an install wizard to assist you.
Please see the github readme for much much more information:
https://github.com/mcuhq/SphinxSearchPlugin**IMPORTANT** Any versions before 20130214 Should seriously consider upgrading to at least this version. A major bug was fixed that stopped the default search from executing alongside the sphinx one.
demos:
http://homebrewforums.net/search?Search=beerhttp://mcuhq.com/mcuhq/vanilla/search?Search=test&tar=srchHere is a short photo album of the plugin:
http://imgur.com/a/jQ5WE#1Info about sphinx:
http://sphinxsearch.com/about/sphinx/Requirements:
Linux Only! (for now)
PHP >= 5.3.0
Shell Access
Spawn a Daemon (searchd)
Port Forwarding
Vanilla = v2.0.18.4
Enable URL Rewriting ($Configuration['Garden']['RewriteUrls'] = TRUE)No backend knowledge is required to install this! Everything is done for you via the install wizard. It comes bundled with the build of the sphinx search engine. To install, run the install wizard and complete the **3** step process. If the wizard encounters any errors, it will tell you. If the installer package does not work on your server, you can perform a manual installation via your distro's package manager and then tell the wizard where to find your installed files.
To enable the plugin, simply download it from Vanilla Forum's plugin portal and move it to your webserver's plugin folder. Enable it from the dashboard. Some files need to be given write permissions by the installer:
* ~SphinxSearch/Install folder
* ~SphinxSearch/Install/pid/error/output.txt files
The install process allows you to run long tasks, such as *./configure* and *./make* in the background. While this is going on, the terminal output will be presented to you. This is also possible to do while indexing your indexes, which may take a long time depending on the amount of documents in the database.
After installation, do the following in the control panel:
1. Start searchd
2. index 'Main'
3. index 'Delta'
4. index 'Stats'
5. Stop and then start searchd again
6. Search for something on your forums through the usual means
7. Setup a cron job to run the three cron files
8. DELETE ALL FILES IN YOUR /cache folder!
Changelog
20130330
- Whenever the advanced search is expanded, the div will stay collapsed for subsequent searches until it is toggled
- Fixed a bug where the xx amount of search results were not being reconstructed back to their original ranking order from sphinx. This caused the results within each page to be mixed randomly!
- Fixed a bug where sometimes the results will say "xx results found" but no results actually shown. This is because the default page landing was NOT being set correctly to 1. This is repeatable when a
previous search on a large page number is then followed by a search that returns a few results on a smaller pagination scale than the previously viewed one. No results will be shown since the GET query string tells sphinx to return the previous search's offset - Instead of checking if sphinx is installed and ready, the plugin now forces the default search to ALWAYS be sphinx until the plugin is disabled. Any errors should now be spit out on any page that fetches a query from sphinx
- Added a message indicating that apache may not have the correct read/write permissions
20130214
- Fixed a HUGE bug that caused all sphinx searches to also perform a regular MYSQL "LIKE" search!
- Put a big reminder about enabling pretty URL's in the dasbhoard
- Added better debug messages during install wizard and reminders to turn on error reporting
- Added a check to enforce Pretty URL's for the time being
- Now sphinx escapes every search query. Check your charset
- Added default charset for English/Russian
- Added debug info to the main results page. Now Sphinx will spit out any errors in your face!
- Fixed issue where regular users could would not see the suggested threads when starting a new thread
- Fixed queries with any numeric character references in them
- Added link to view stats cron in the install wizard
- Added icon image of the sphinx eye
- Added permissions check for related discussions o main/regular discussions view
- Fixed incorect query string from '?q=' to '?Search=' in the Related threads box on main results page
- Added option for different charsets in sphinx.conf template file
- Added hbf as a live demo that is better than my site as well as link back to main plugin site to readme
- Verified read permission in viewfile @Gillingham
- Fixed example cron files that were not pointing to correct paths @Gillingham
20130105
- Fixed search results not respecting user permissions (added another attribute to sphinx to filter on)
- Updated release file to 2.0.6
- Relocated definitions file to make it easier to edit
- Deleted hard coded statements in config template that would override automatic settings set in plugin's settings page
- Added more locale definitions to hitbox widget
- Fixed incorrect query string in the results page. Any filtering done in the result page would only take affect for that single page! Now all pages are affected (fixed)
- Fixed pagination results which would sometimes render blank results page. Now only 'MaxMatches' amount of results will be displayed (default is 1000 docs)
- Fixed numerous spelling mistakes
20120912
- deleted old debug stuff that caused fatal error when auto completing
- fixed problem with php classes not included...now just include all files in root of plugin
20120905
- Created temporary workaround that fixed non-Roman search phrases from being executed correctly
- Fixed stats cron file location to its actual location
- Fixed the RelatedPost widget from adding a query when it should not be
- Added slight HTML edit to support traditional plugin/theme
20120807
- Added debug table to control panel
- Fixed cron files to index at common times - also corrected file paths and comments
- Deleted "Reload Connections" button...it was useless
20120806
- Added mysql_sock to config
- Added mysql_db to config
- Added localhost entry to wizard
- Fixed FAQ link
- Added an update entry to FAQ
20120805
- Initial Release