Ok so I read up a bit on fulltext search. Sure, the document is from 2004, so a lot might have changed. That is why I'm asking here.
I have a database with various tables. I want to search through the database and sort via relevance. I've learned that fulltext search will make my job very simple. I then decided I'd make fulltext search easier, and just smash everything into one table, with that ID linking to other tables. So basically I've got this:
Table: fileKeywords
,------,--------------------------------------------------,
| ID | keywords |
|------|--------------------------------------------------|
| x | *content of row* |
'------'--------------------------------------------------'
The ID in this table links to id's in other tables, but all the contents of the other tables are in here so no need to worry about that.
What I'm interested in is the fulltext query I'll have to create. From my understanding, it'll have to be like this:
SELECT id FROM fileKeywords WHERE MATCH (keywords) AGAINST (query WITH QUERY EXPANSION) AS score FROM fileKeywords WHERE MATCH (keywords) AGAINST (query);
Is this correct? Or am I missing something?
I'm new to this search thing...