Prioritize recent content by date

Hi, I'm trying to make newer documents score higher in my search results, similar to this post How to prioritize more recent content? but I'm trying to do it in App Search. I added a proximity boost on the date field centered on "now" but this doesn't seem to make much difference in my results. I still have a document from 1996 scoring above a document from 2021, and even with the boost impact set to 10 I can't get the 2021 document above the 1996 document.

I think I need to make the weight of the date field higher - how do I do this? Or is there a better way to go about getting recent documents to the top of search queries?

Hey hey! So unfortunately, there's a known issue with our recency boosts where the boost decay falls off too quickly. Essentially, the boost you added works, but it only significantly boosts dates within say, the last 2 days or so, and does not boost dates farther away (e.g. a week or more). So I'd definitely expect the results you're seeing, which is dates as far away as a year or more :grimacing:

Apologies for that - it's definitely on our radar to work on ways to tune results more, although I don't know if the recency boost is on our short-term roadmap (I think we actually removed it from our documentation because it wasn't working as expected).

Here's a couple workarounds you could try in the meanwhile:

  • Add the ability to sort by date, and highlight that in your UX
  • Weighting by a specific year cut-off - for example, if you want to boost docs more recent than 2 years ago, you could add a value boost for the sub-2 year docs

Hope that helps, and let me know if the value boost workaround doesn't make sense and I can try to clarify!

1 Like

Hi Constance, thanks for the quick reply. I'm definitely looking forward to when the recency boost works better. Thanks for the suggestions in the mean time.

1 Like