Excerpt |
---|
Combined time and relevant sorting is the "magic solution" to ranking results which we believe will deliver the best results, especially for projects where the most recent items are usually more important than older inforrmation |
...
To combine time and relevance to the ranking, we use a score we call time_relevance
which combines both time and relevance factors into the final score using the following formula;:
Code Block | ||
---|---|---|
| ||
time_relevance_score = relevance_score * (base + range / (range + decay * age_days^2)) |
...
relevance_score
: original relevance score of document wrt the querybase
: parameter use to adjust the impact of relevance. Higher this value, higher impact of relevance score (if you set this value very high, e.g 100, you can see impact of time factor is very minor, relevance score contributes mostly in final score)range
: range of decay, higher this value, longer decay range (if range = 0 you will see final score depends only on relevance score)decay
: decay speed, higher this value, quicker decay value (if decay = 0 you will see final score depends only on relevance score)age_days
: number of days from now sincecreated_at
time of documents.
...