Skip to content

Improve/query adaptive freshness - #784

Open
songproducer wants to merge 2 commits into
yacy:masterfrom
songproducer:improve/query-adaptive-freshness
Open

Improve/query adaptive freshness#784
songproducer wants to merge 2 commits into
yacy:masterfrom
songproducer:improve/query-adaptive-freshness

Conversation

@songproducer

Copy link
Copy Markdown
Contributor

A document modified today with a news query gets up to +768 ranking points instead of +256. A
year-based query (e.g. "python 2024") gets up to +512.

Test plan                                                                                             
                                                                                                      
- Search latest python tutorials — verify recently-modified pages rank higher than with a neutral     
query                                                                                                 
- Search python 2024 — verify 2× freshness effect vs baseline
- Search python tutorial (neutral) — verify ranking is unchanged from improve/freshness-decay baseline
- Confirm multiplier is computed once per search event (not per result)

🤖 Generated with Claude Code

songproducer and others added 2 commits April 25, 2026 18:40
Documents modified recently score higher using exp(-ageDays/365)
decay — a page modified today gets +256 points, one modified a year
ago gets +128, two years ago +64. Skipped when moddate is unavailable.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Queries containing news-related terms (today, latest, news, breaking,
recent, update) or year patterns get a 3x or 2x freshness multiplier,
making recently-modified documents rank significantly higher for
time-sensitive searches while keeping normal queries unaffected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant