rbichon
asked on
Rank range for Match Against
I have a select statement that returns the rank of a search term.
select ititle, ifullurl, idesc, icontent, MATCH (ititle, icontent) AGAINST ('industrial automation') as rank from ff_index where (MATCH (ititle, icontent) AGAINST('industrial') AND MATCH (ititle, icontent) AGAINST('automation')) order by rank desc LIMIT 0, 20
Can someone tell me what the range is for the rank? I have seen it get above 6 so I would assume that it is from 0 to 10. Can someone verify that for me? Thanks.
select ititle, ifullurl, idesc, icontent, MATCH (ititle, icontent) AGAINST ('industrial automation') as rank from ff_index where (MATCH (ititle, icontent) AGAINST('industrial') AND MATCH (ititle, icontent) AGAINST('automation')) order by rank desc LIMIT 0, 20
Can someone tell me what the range is for the rank? I have seen it get above 6 so I would assume that it is from 0 to 10. Can someone verify that for me? Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
correct. the more words in the collection correspond to a word in the row, the higher the value. the less words in the row, the higher the value...
ASKER
I guess then I will just calculate a relevancy percentage for each record using the maximum value in the index. Thanks for your help.
ASKER