The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Simple MySQL vBulletin search from my main site
I'm trying to integrate my vBulletin forum into my main site's search engine and would like to write a MySQL query to locate posts containing a particular keyword. I'm using the following query:
PHP Code:
I'd be massively grateful if someone could please give me a pointer. Many thanks, Matt |
#2
|
||||
|
||||
You have to also check against the forumid, which I believe is in the thread table.
|
#3
|
||||
|
||||
Performing the search this way is server intensive, it actually has to look at the entire contents of text fields to do the match.
Assuming you have swapped to fulltext searching in admincp, vbulletin comes with fulltext indices which will greatly improve the efficiency of the search select whatever from post where match(title, pagetext) against ('word') |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|