I could not find answer to my question anywhere. I have done a research but without any luck.
Let’s say that we query a following statement:
SELECT `id`, MATCH(`name`,`content`) AGAINST ('some keywords') AS `score` FROM `pages` WHERE MATCH(`name`,`content`) AGAINST ('some keywords')
Is MySQL going to give me a score according for the whole table pages, will it scan for all other records there? Or is it going to give me a score just considering a row with columns supplied (name and content) in our case.
Yes it uses the keyword frequency in other rows too. Taken from MySQL Fulltext Search, the formula is: