Date boosting increases document relevance scores according to recency or another date value, helping newer documents rank higher. It treats date as a configurable scoring signal alongside keyword similarity and other boosts. section 3.2.2
A ranking query can combine keyword relevance with a date function. The demonstrated Solr expression uses the document’s modify_date, compares it with the current time, and applies a reciprocal decay so recency contributes to the final score. section 3.2.2
Combining recency with other signals
A function query can scale keyword relevance, reward geographic proximity, apply a reciprocal recency function to modify_date, and scale popularity. This combines date boosting with geospatial and popularity signals rather than replacing text relevance. section 3.2.2
Solr request syntax:
{"query": "{!func}scale(query($keywords),0,25)
{!func}recip(geodist($lat_long_field,$user_latitude,
$user_longitude),1,25,1)
{!func}recip(ms(NOW/HOUR,modify_date),3.16e-11,25,1)
{!func}scale(popularity,0,25)",
"params": {"keywords": "basketball",
"lat_long_field": "location",
"user_latitude": 33.748,
"user_longitude" -84.391}}
Inspect the Solr-style function query that applies reciprocal date scoring through modify_date and NOW/HOUR. section 3.2.2
