Scoring function can be based on word counts, page rank, or where the location of words within the doc ... etc.Scoring need to be normalized, say within the same range.weight is between 0 to 1 and the sum of all weights equals to 1