# Usage of \_explain API with nested documents for TF/IDF computation?

**URL:** <https://discuss.elastic.co/t/usage-of--explain-api-with-nested-documents-for-tf-idf-computation/81292>\
**Category:** Elasticsearch\
**Created:** [April 5, 2017, 10:13am UTC](https://discuss.elastic.co/t/usage-of--explain-api-with-nested-documents-for-tf-idf-computation/81292 "2017-04-05T10:13:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![starblow1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/starblow1/32/17096_2.png) [@starblow1](https://discuss.elastic.co/u/starblow1)\
**Post date:** [April 5, 2017, 10:13am UTC](https://discuss.elastic.co/t/usage-of--explain-api-with-nested-documents-for-tf-idf-computation/81292/1 "2017-04-05T10:13:59Z")

</div>

Hello community,

is it possible to use the \_explain API with a nested object to get TF/IDF values?  
I made a POST request with POSTMAN to my index using indexname/typename/\_explain

I used the following body to no avail: (

```
{
  "query": {
    "bool": {
      "must": [
        {
          "nested": {
            "path": "equipments", 
            "query": {
            	"term" : { "equipments.subject" : "PC" }
            }
          }
        }
      ]
    }
  }
}
```

---

<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:** [May 3, 2017, 10:14am UTC](https://discuss.elastic.co/t/usage-of--explain-api-with-nested-documents-for-tf-idf-computation/81292/2 "2017-05-03T10:14:39Z")

</div>

Closed on May 3, 2017, 10:14am UTC

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