# Changing score of hits in org.elasticsearch.action.search.SearchResponse

**URL:** https://discuss.elastic.co/t/changing-score-of-hits-in-org-elasticsearch-action-search-searchresponse/39832
**Category:** Elasticsearch
**Created:** [January 21, 2016, 11:31pm UTC](https://discuss.elastic.co/t/changing-score-of-hits-in-org-elasticsearch-action-search-searchresponse/39832 "2016-01-21T23:31:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rahulcse](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahulcse/32/12158_2.png) [@rahulcse](https://discuss.elastic.co/u/rahulcse)
#### Post date: [January 21, 2016, 11:31pm UTC](https://discuss.elastic.co/t/changing-score-of-hits-in-org-elasticsearch-action-search-searchresponse/39832/1 "2016-01-21T23:31:51Z")

</div>

Hi Folks,

I have SearchResponse object, how can I modify the score (external boost) and then return back the sorted (on score) json to the client. I am writing a plugin to do that.

Thanks in advance for help.

-Rahul

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 11:22pm UTC](https://discuss.elastic.co/t/changing-score-of-hits-in-org-elasticsearch-action-search-searchresponse/39832/2 "2017-07-05T23:22:21Z")

</div>


