Link to home
Start Free TrialLog in
Avatar of rbichon
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.
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rbichon
rbichon

ASKER

Ok. So you are saying that there is no max value for the rank/relevance?
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...
Avatar of rbichon

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.