# Elastic Search Recency Boosting - gradual decay

**URL:** <https://discuss.elastic.co/t/elastic-search-recency-boosting-gradual-decay/377716>\
**Category:** Elastic Search\
**Created:** [May 1, 2025, 2:00pm UTC](https://discuss.elastic.co/t/elastic-search-recency-boosting-gradual-decay/377716 "2025-05-01T14:00:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JD\_Armada](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jd_armada/32/142652_2.png) [@JD\_Armada](https://discuss.elastic.co/u/JD_Armada)\
**Post date:** [July 8, 2025, 9:17pm UTC](https://discuss.elastic.co/t/elastic-search-recency-boosting-gradual-decay/377716/2 "2025-07-08T21:17:55Z")

</div>

> [@Lakshay\_Tyagi](#):
>
> I am setting up an [elastic search application with Recency Boosts](https://www.elastic.co/guide/en/app-search/current/boosts.html#boosts-recency-boosts) however on playing with Elasticsearch I see that the boosting is leading to relevant search results older than a few days getting filtered out.
> 
> How do I boost the score of recent results without filtering out older search results? My use case needs boosting but older search results shouldn't be simply filtered out

Hey Lakshay, welcome to the community!

This is a common issue with recency boosts in App Search, please refer to these [workarounds](https://discuss.elastic.co/t/prioritize-recent-content-by-date/269483/2)

Can you share your current mapping and the query you used?

You could potentially wrap your query in a `function_score` and add a decay function on your date field as another potential workaround.

Read more:

- [Function score query](https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-function-score-query#function-decay)
- [Decay functions](https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-function-score-query#function-decay)
- [Elasticsearch Function Score: Boosting Relevance with Custom Scoring](https://opster.com/guides/elasticsearch/search-apis/elasticsearch-function-score/)

Hope this helps! Let me know if you get stuck.

---

_[View the full topic](https://discuss.elastic.co/t/elastic-search-recency-boosting-gradual-decay/377716)._
