liveBook · Manning

Date boosting

As explained in AI-Powered Search

Date boosting increases the ranking score of documents according to their recency or date value.

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

How AI-Powered Search covers it

How deep it goes
Defines date boosting and shows a Solr reciprocal function, but does not explain decay-parameter selection or evaluation.
Examples
Uses a Solr function query combining keyword, geographic distance, modify_date recency, and popularity signals.
What it assumes
Assumes familiarity with query scoring and introduces configurable functions beyond default BM25 keyword similarity.
What you can do after
Apply it via a Solr function query that adds reciprocal recency scoring to document ranking.
How it connects
Connects date boosting with BM25, geospatial boosting, popularity boosting, and configurable scoring functions.

This explainer was generated by Manning's knowledge graph from the text of AI-Powered Search. The section links point to the parts of the book it draws on.