The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#311
|
||||
|
||||
Thanks for all that info! I'm about to head home for the day but I will definitly re-read it more thoroughly later tonight.
|
#312
|
||||
|
||||
Well, I made some headway after reading through this entire thread...
First I had the issue with the coventry error, since I don't use it I just commented out the code as a quick fix for now. Then I started getting the assert error if I searched a different time frame from the default (ex: a week ago and newer). So I added the assert_options as another quick fix. What was bugging me the most was my dates were not being sorted properly, and upon digging through the code I discovered why... First, in your sphinx.conf file's "post_src" (whatever you name it - it's the first bracket code), in the sql_query you need to add lastpost to the end of the SELECT. Then below the existing sql_date_column line, add another saying sql_date_column = lastpost. You will also need to add the lastpost to the SELECT in the delta code (next bracket code bit). Rebuild your indexes completely... Then in the sphinx.php file you will notice the sort_date defaults to 'dateline', and in the 'titleonly' if/else statement it changes to 'lastpost'. The "else" part of that statement refers to all queries that searches the entire posts - which can return as either posts or threads. So basically within the 'else' code (like after the set weights) just add: PHP Code:
As promised, I'm attaching my sphinx.conf file that works with MySQL 4.0.x (because that version does not support sub-selects). I also have the above mentioned changes if you don't fully understand what I was trying to explain above. Included too is my stopwords file (it's just the MySQL default list). Tomorrow I'm going to try and go through and ensure all the current functionality works with all the various search options, then I'm going to slowly try and work my way through to add the features that were removed from the vB template. |
#313
|
|||
|
|||
The problem with adding the "lastpost" to the attributes is that it will only be accurate immediately after reindexing. On a sufficiently busy forum, with frequently updated threads, the sorting by lastpost may be off by large amount just a few hours after full reindexing.
Though it's something you can live with if the forum isn't very active. |
#314
|
||||
|
||||
Ooo... you are right, I guess that's what I get for the late night coding. Boy, that is a pickle, since the delta only adds new posts & threads there is no way to go back and update the existing data (without a full reindex).
If only there was a way to query the mysql table to grab the latest post/thread attributes based on the sphinx results. I haven't fully examined the code so I don't know what all is and isn't possible yet. Thanks for pointing out my oversight... |
#315
|
|||
|
|||
I outlined the solution to this problem in the post #306:
https://vborg.vbsupport.ru/showpost....&postcount=306 |
#316
|
|||
|
|||
Quote:
http://bugs.php.net/bug.php?id=40749 First seen here, workaround included: http://www.sphinxsearch.com/forum/vi...=340&from=1887 |
#317
|
|||
|
|||
Quote:
|
#318
|
||||
|
||||
kmike - Yep, that worked perfectly.
The more I look at the sphinx.php code, the more I think overall functionality would be better just to merge the code in with the search.php file, then I think all stock vB functionality could be brought back. I'm going to tackle this on Sunday as I have some other things I need to take care of today and tomorrow I've got plans. |
#319
|
|||
|
|||
Sphinx 0.9.7 has been released:
http://www.sphinxsearch.com/doc.html#changelog It fixes the crashes in the excerpts bulding routines and also the memory fragmentation problem. A host of new features are added, too. |
#320
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|