The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Sphinx Search
Sphinx Implementation for vBulletin:
Version 0.1 Hooray! Just sharing as usual, let the discussions begin (in b4 TECK "MINE IS BETTER") Only tested with Sphinx-0.9.8-rc2 (r1234; Mar 29, 2008). If you are upgrading from my old tutorial, backup your search.php (you know, just in case you need the old hacked up version again) and restore the original from the zip/tar, no more file modifications! http://sphinxsearch.com/downloads.html Tested on 3.6.10, should work on 3.7 if you modify /*insert query*/ on Line 522 (I removed 'prefixchoice' field because it doesn't exist in 3.6) No support for tags/thread prefix yet, because I don't have access to a 3.7 installation at the moment Similar threads is also being worked on Alpha release for some feedback, hopefully it will be production ready soon I assume you already have Sphinx up and running... see attached sphinx.conf.example for a minimalistic setup Installation notes inside search_sphinx.php Well yeah enjoy. And PM me if you need help The old post is here: https://vborg.vbsupport.ru/showpost....&postcount=387 The Good:
The Bad:
The Ugly:
*The Infamous Post Sorting Quirk What happens here is that when you "Search Entire Posts" and "Show Results as Threads", do you want you threads sorted by:
Our Sphinx setup does not have first post and last post dateline stored in its post index (and it would be pretty much useless too) so the first two options are not available. vBulletin offers a function called "sort_search_items()" (search.php:633 3.7) which could, in theory, be used to sort the threads by last post dateline. It does not fix the problem though. Let's assume we set maxresults to 5. We are searching for threads for "funny". We have 7 threads created today: 1. Thread "Cows", Created 08:00, Last Post 17:00 | "Funny Cows", Created 09:00 2. Thread "Cats", Created 09:00, Last Post 14:00 | "Funny Cats", Created 14:00 3. Thread "Dogs", Created 10:00, Last Post 12:00 | "Funny Dogs", Created 11:00 4. Thread "Mice", Created 11:00, Last Post 15:00 | "Funny Mice", Created 13:00 5. Thread "Rats", Created 12:00, Last Post 13:00 | "Funny Rats", Created 12:00 6. Thread "Eels", Created 13:00, Last Post 19:00 | "Funny Eels", Created 18:00 7. Thread "Fish", Created 14:00, Last Post 18:00 | "Funny Fish", Created 17:00 Do we want to show threads 6, 7, 2, 4, 5 (Sphinx)? Or do we want to show threads 6, 7, 1, 4, 2 (vB)? vBulletin finds all 7 posts, orders them by last post descending, and grabs the top 5. Sphinx will find the newest 5 matching posts and then returns you the associated threads. Reordering search results with "sort_search_items()" does not fix the problem because there might be older threads with very recent replies that Sphinx won't even consider. Let's consider an 8th thread: 8. Thread "Bees", Created 2002, Last Post 20:00 | "Funny Bees", Created 2002 vBulletin will list this one on top, Sphinx will not consider it. So even re-sorting the search items will not make this thread appear. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|