If I have a mysql query thats looks something like : Select * from table MATCH (`column1`, `column2`, `column3`) AGAINST ('somewords') AS Relevance How can I make one of the columns relevance count higher then the others? Like column1 should give twice the amount of relevance as column2? I hope you get my point! Thank you!
How about something like this... select *, ( (1.2 * (match(column1) against ('+somewords' in boolean mode)))+ (0.6 * (match(column2) against ('+somewords' in boolean mode))) + (0.2 * (match(column2) against ('+somewords' in boolean mode))) ) as relevance from [table] where ( match(column1,column2,column3) against ('+somewords' in boolean mode) ) having relevance > 0 order by relevance desc; Code (markup): Adding most weight to column 1, less to column 2 etc...
Yeah I actually found a similar thing.. Thank you The problem is though the increased querytime I received.. A query could take up to 30-40 seconds, and thats not that good Will the problem get solved if I make one index for each column and not one index with all three columns?