Ok now I'm trying this but I'm still getting unexpected results:
$query = "SELECT * FROM BB_Topics INNER JOIN BB_Messages ON (BB_Topics.BB_Topic_Id = BB_Messages.BB_Topic_Id) WHERE ((MATCH (BB_Topics.Message) AGAINST ('{$search}')) || (MATCH (BB_Topics.Title) AGAINST ('{$search}')) ||(MATCH (BB_Messages.Message) AGAINST ('{$search}'))) AND BB_Topics.BB_Index_Id = '{$index}'";
This query seams to only return records where a match exists in BB_Messages.Message, and is ignoring the other two fields.
Main Topics
Browse All Topics





by: mherchlPosted on 2007-04-18 at 13:21:28ID: 18934871
SELECT *
FROM BB_Topics
LEFT JOIN BB_Messages ON (BB_Topics.BB_Topic_Id = BB_Messages.BB_Topic_Id) AND MATCH (BB_Messages.Message) AGAINST ('This Text Exists')
WHERE MATCH (BB_Topics.Message, BB_Topics.Title) AGAINST ('This Text Exists') AND BB_Topics.BB_Index_Id = '1'