# How to get elastic search \_score in the response without script\_score being applied

**URL:** https://discuss.elastic.co/t/how-to-get-elastic-search-score-in-the-response-without-script-score-being-applied/262085
**Category:** Elasticsearch
**Tags:** painless
**Created:** [January 25, 2021, 11:20am UTC](https://discuss.elastic.co/t/how-to-get-elastic-search-score-in-the-response-without-script-score-being-applied/262085 "2021-01-25T11:20:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![oo7\_manju](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oo7_manju/32/12737_2.png) [@oo7\_manju](https://discuss.elastic.co/u/oo7_manju)
#### Post date: [January 25, 2021, 11:20am UTC](https://discuss.elastic.co/t/how-to-get-elastic-search-score-in-the-response-without-script-score-being-applied/262085/1 "2021-01-25T11:20:59Z")

</div>

```auto
Hi, 
We are looking for fetching _score value from elastic search response., but looks like _score value always includes the applied script_score.  
We have script_score to boost the relevancy in the query, and the requirement is to extract _score pre-applying script_score.
Tried to use script_fields, looks like _score is not accessible/available in script_fields scope.
Is there a way to get elasticsearch _score in the response, including both with and without script_score being applied.

ES version used: 5.3

Thanks
Manju

```

---

<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: [February 22, 2021, 11:21am UTC](https://discuss.elastic.co/t/how-to-get-elastic-search-score-in-the-response-without-script-score-being-applied/262085/2 "2021-02-22T11:21:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
