![]() |
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 |
You have to also check against the forumid, which I believe is in the thread table.
|
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') |
All times are GMT. The time now is 11:48 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|