# Query related to explain api

**URL:** https://discuss.elastic.co/t/query-related-to-explain-api/15746
**Category:** Elasticsearch
**Created:** [February 12, 2014, 5:16am UTC](https://discuss.elastic.co/t/query-related-to-explain-api/15746 "2014-02-12T05:16:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Navneet\_Mathpal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/navneet_mathpal/32/3677_2.png) [@Navneet\_Mathpal](https://discuss.elastic.co/u/Navneet_Mathpal)
#### Post date: [February 12, 2014, 5:16am UTC](https://discuss.elastic.co/t/query-related-to-explain-api/15746/1 "2014-02-12T05:16:17Z")

</div>

hi,

what is queryWeight and fieldWeight value which we get as an output of  
explain api, and how is it calculated?

Thanks  
Navneet Mathpal

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a4778f52-a2b0-4dd3-8709-b2035b967c8f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a4778f52-a2b0-4dd3-8709-b2035b967c8f%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [February 13, 2014, 8:32am UTC](https://discuss.elastic.co/t/query-related-to-explain-api/15746/2 "2014-02-13T08:32:58Z")

</div>

Hey,

please see the explanation at the lucene documentation, how tf-idf formula  
is used to calculate the different score values:  
[https://lucene.apache.org/core/4\_0\_0/core/org/apache/lucene/search/similarities/TFIDFSimilarity.html](https://lucene.apache.org/core/4_0_0/core/org/apache/lucene/search/similarities/TFIDFSimilarity.html)

--Alex

On Wed, Feb 12, 2014 at 6:16 AM, Navneet Mathpal \<[navneetmathpal93@gmail.com](mailto:navneetmathpal93@gmail.com)

> wrote:

> hi,
> 
> what is queryWeight and fieldWeight value which we get as an output of  
> explain api, and how is it calculated?
> 
> Thanks  
> Navneet Mathpal
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a4778f52-a2b0-4dd3-8709-b2035b967c8f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a4778f52-a2b0-4dd3-8709-b2035b967c8f%40googlegroups.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-ii-7%3D2fAvQqK6WoamVWjyeSVQkGs\_AMp%3Dz-zJY\_ieLQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-ii-7%3D2fAvQqK6WoamVWjyeSVQkGs_AMp%3Dz-zJY_ieLQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 1:50am UTC](https://discuss.elastic.co/t/query-related-to-explain-api/15746/3 "2017-07-06T01:50:37Z")

</div>


