# How do I output the score

**URL:** <https://discuss.elastic.co/t/how-do-i-output-the-score/109437>\
**Category:** Elasticsearch\
**Created:** [November 28, 2017, 4:32pm UTC](https://discuss.elastic.co/t/how-do-i-output-the-score/109437 "2017-11-28T16:32:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bilpor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bilpor/32/24043_2.png) [@bilpor](https://discuss.elastic.co/u/bilpor)\
**Post date:** [November 28, 2017, 4:32pm UTC](https://discuss.elastic.co/t/how-do-i-output-the-score/109437/1 "2017-11-28T16:32:36Z")

</div>

I perform the following query in:

```
GET fullsiteindex/_search
{ 
  "query": { "query_string" : { "query" :"my search string", "fields" :["content"] } }, "_source" :["path.real", "path.virtual", "meta.title", "meta.raw.modified", "content"]
}

```

this works for as far as it goes. If I run the same search in Kibana at the same level as my **\_source** there is also an **\_score** value. I want to also extract this value, but am having great difficulty. Can anyone show me how to amend my query to additionally return the \_score?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 28, 2017, 9:14pm UTC](https://discuss.elastic.co/t/how-do-i-output-the-score/109437/2 "2017-11-28T21:14:06Z")

</div>

Sorry. I don't understand.  
The `_score` field is always here. What exactly are you running? And how?

---

<div class="post-metadata">

**Author:** ![bilpor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bilpor/32/24043_2.png) [@bilpor](https://discuss.elastic.co/u/bilpor)\
**Post date:** [November 28, 2017, 9:29pm UTC](https://discuss.elastic.co/t/how-do-i-output-the-score/109437/3 "2017-11-28T21:29:45Z")

</div>

Hi dadoonet, I pass my Query via MSXML2 using REST. The returning data does not include the score, only the values I have selected to be returned from within \_source. If I was running it in Kibana, yes, I can see the score, but I'm extracting the data out.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 28, 2017, 10:47pm UTC](https://discuss.elastic.co/t/how-do-i-output-the-score/109437/4 "2017-11-28T22:47:27Z")

</div>

Can't help sorry. Never used `MSXML2`.  
May be something wrong on your end?

---

<div class="post-metadata">

**Author:** ![bilpor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bilpor/32/24043_2.png) [@bilpor](https://discuss.elastic.co/u/bilpor)\
**Post date:** [November 29, 2017, 12:12pm UTC](https://discuss.elastic.co/t/how-do-i-output-the-score/109437/5 "2017-11-29T12:12:50Z")

</div>

Yes...My end. have resolved it.

---

<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:** [December 27, 2017, 12:13pm UTC](https://discuss.elastic.co/t/how-do-i-output-the-score/109437/6 "2017-12-27T12:13:01Z")

</div>

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