# termFreq vs phraseFreq in Explanation

**URL:** <https://discuss.elastic.co/t/termfreq-vs-phrasefreq-in-explanation/222320>\
**Category:** Elasticsearch\
**Created:** [March 5, 2020, 2:43pm UTC](https://discuss.elastic.co/t/termfreq-vs-phrasefreq-in-explanation/222320 "2020-03-05T14:43:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LJA](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@LJA](https://discuss.elastic.co/u/LJA)\
**Post date:** [March 5, 2020, 2:43pm UTC](https://discuss.elastic.co/t/termfreq-vs-phrasefreq-in-explanation/222320/1 "2020-03-05T14:43:29Z")

</div>

Hi.  
According to [https://www.elastic.co/guide/en/elasticsearch/guide/current/relevance-intro.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/relevance-intro.html) when I want to see an explanation of the score I can use "explain":true and I should se something like:

"\_explanation": {  
"description": "weight(tweet:honeymoon in 0)  
[PerFieldSimilarity], result of:",  
"value": 0.076713204,  
"details": [  
{  
"description": "fieldWeight in 0, product of:",  
"value": 0.076713204,  
"details": [  
{  
"description": "tf(freq=1.0), with freq of:",  
"value": 1,  
"details": [  
{  
"description": " **termFreq** =1.0",  
"value": 1  
}  
]  
},  
{  
"description": "idf(docFreq=1, maxDocs=1)",  
"value": 0.30685282  
},  
{  
"description": "fieldNorm(doc=0)",  
"value": 0.25,  
}  
]  
}  
]  
}

But when I use this parameter in my query I get this:

...  
{  
"value": 0.7218931,  
"description": "fieldWeight in 8827, product of:",  
"details": [{  
"value": 0.70710677,  
"description": "tf(freq=0.5), with freq of:",  
"details": [{  
"value": 0.5,  
"description": " **phraseFreq** =0.5"  
}]  
}, {  
"value": 4.083644,  
"description": "idf(docFreq=1553, maxDocs=33936)"  
}, {  
"value": 0.25,  
"description": "fieldNorm(doc=8827)"  
}]  
}

So I get phraseFreq instead of termFreq. Could somebody explain this to me please?  
Thank you.

---

<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:** [April 2, 2020, 2:43pm UTC](https://discuss.elastic.co/t/termfreq-vs-phrasefreq-in-explanation/222320/2 "2020-04-02T14:43:36Z")

</div>

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