Improve Drupal Search Relevance With the New Search API Date Boost Module
Drupal developer Vivek P R has released Search API Date Boost, a contributed module designed to improve search relevance by boosting results based on configurable date fields. Built for Drupal 10 and 11, the module helps prioritise future and recent content, making it particularly useful for event-driven and time-sensitive websites.
The module introduces a new Search API processor that applies configurable boost logic to indexed content using selected date fields. Future-dated content receives maximum boost, while past content gradually loses weight using an exponential decay model. Site builders can configure boost factors and decay periods directly through the Search API interface.
Vivek developed the module after encountering limitations in the default Search API relevance behaviour during a Drupal 11 project. In that case, search results were prioritised based on the authored date, which did not accurately reflect real-world event timelines when legacy data was migrated to the new site.
Search API Date Boost integrates directly into the Search API index configuration. After installation, site administrators can enable date-field boosting through the Processors tab and adjust boost factors without requiring custom code.
The module supports the Search API Database backend and currently requires Search API, Search API Database, and Search API DB Defaults. Future compatibility with Solr or Elasticsearch backends may be explored.
This marks Vivek’s second Drupal.org contribution following the Views Node Title Selector module. The project is currently marked as maintenance-fixes-only and is not covered by Drupal’s security advisory policy.
The module is available via Composer and on the official project page. Explore or contribute at drupal.org/project/search_api_date_boost .

