# Obtaining each field score in the same document

**URL:** https://discuss.elastic.co/t/obtaining-each-field-score-in-the-same-document/285132
**Category:** Elasticsearch
**Created:** [September 25, 2021, 12:22pm UTC](https://discuss.elastic.co/t/obtaining-each-field-score-in-the-same-document/285132 "2021-09-25T12:22:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ahmadnabil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahmadnabil/32/95058_2.png) [@ahmadnabil](https://discuss.elastic.co/u/ahmadnabil)
#### Post date: [September 25, 2021, 12:22pm UTC](https://discuss.elastic.co/t/obtaining-each-field-score-in-the-same-document/285132/1 "2021-09-25T12:22:22Z")

</div>

Assuming I have a document with three fields: `name`, `company`, `email` each one mapped with edge-ngram

```auto
{
  "name": "John",
  "company": "John's company",
  "email": "johndoe@gmail.com" 
}

```

When searching for "john" I want to be able to get each field score individually

```auto
{
  "query": {
    "bool": {
      "should": [
        { "match": { "name": "john" }},
        { "match": { "company": "john" }},
        { "match": { "email": "john" }}
      ]
    }
  }
}

```

In this example the score from each `match` clause is added together, then divided by the number of `match` clauses. So is there anyway to obtain the score from each `match` clause individually not just the final score for the whole document?

I think setting **"explain": true** is also not ideal since it provides very low-level details of scoring (inefficient and difficult to parse).

---

<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: [October 23, 2021, 12:22pm UTC](https://discuss.elastic.co/t/obtaining-each-field-score-in-the-same-document/285132/2 "2021-10-23T12:22:39Z")

</div>

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