import { hasRecencyIntent, recencyFactor } from "./recency.js";
function applyRecencyBoost(query, results, now = /* @__PURE__ */ new Date()) {
  if (!hasRecencyIntent(query, now)) return results;
  return results.map((r) => {
    const factor = recencyFactor(r.published_date, now);
    if (factor === 1) return r;
    return { ...r, relevance_score: r.relevance_score * factor };
  });
}
export {
  applyRecencyBoost
};
//# sourceMappingURL=recency-boost.js.map