• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfsearch scores related to date

Guest
Aug 02, 2011 Aug 02, 2011

Copy link to clipboard

Copied

I'm setting up a search collection of news articles and want to return results by score, except that it would be good to change the weighting to score newer articles higher.  News from 5 years ago may not be as relevant as news from last week or last month.  I'm guessing there is nothing built-in for this.  So I can look into weighting the score.  But I was wondering if there is any good logic for doing this?

One thought was to round off the scores to the nearest integer, and then sort by score + date.  This would bump newer stories that have similar scores.  Or just bump the score a certain amount based on how new it is?  It may just need trial & error, but suggestions would be welcome.

TOPICS
Advanced techniques

Views

269

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 13, 2011 Aug 13, 2011

Copy link to clipboard

Copied

LATEST

With the natie CF tools: no, not that I can think of.

However you might be able to do it directly with Solr.  Give this a read:

http://wiki.apache.org/solr/FunctionQuery#Date_Boosting

--

Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation