The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#371
|
||||
|
||||
True, I'm not there yet with multiple servers.
Use this instead: Code:
$cl = new SphinxClient(); $cl->SetServer($sphinx_server, $sphinx_port); $cl->SetLimits(0, $vbulletin->options['maxresults']); $cl->SetMatchMode(SPH_MATCH_ALL); ... $res = $cl->Query($vbulletin->GPC['query'] , $sphinx_index); ... if (!is_array($res)) { $sphinxerror = $cl->GetLastError(); if ($sphinxerror) { // server not running } } Edit: Let me dig into this more... I think that searchd will still spit an error, even if it's running, something like (no error). I will post at sphinx site to ask Andrew how exacly the last error works. |
#372
|
||||
|
||||
Quote:
|
#373
|
||||
|
||||
Never mind, I sort it.
|
#374
|
|||
|
|||
I still would like to know: when you have Sphinx search in place, do you need to have FULLTEXT index(es) in Vbulletin at all?
Maybe it is a stupid question and FAQ and RTFM etc, but please take a second to answer yes or no if you know the answer, thanks! |
#375
|
|||
|
|||
Nope.
|
#376
|
|||
|
|||
not only do you not need the fulltext indexes, but also that having them will not give you the full benefit of an external search solution as mysql will continue to spend (waste) time keeping them up to date.
|
#377
|
||||
|
||||
Hmmm amcd, you dropped the indexes? I never thought of that.
What exactly you guys did related to this issue? Thanks for your reply. |
#378
|
||||
|
||||
Quote:
Remember to close the forum while you drop the indexes but you should find that inserts to these tables are much faster. |
#379
|
||||
|
||||
Thanks for the info.
Can you post the queries? |
#380
|
||||
|
||||
If you're using FULLTEXT MySQL search then the word table won't be being used. I'd truncate the word table rather than dropping it just in case.
FULLTEXT search works (from memory) using indexes on the thread and post tables. You can drop those two after cutting over to sphinx. edit: nice edit there TECK while I was posting |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|