# Calculation of whymatch in elasticsearch

**URL:** https://discuss.elastic.co/t/calculation-of-whymatch-in-elasticsearch/15658
**Category:** Elasticsearch
**Created:** [February 7, 2014, 6:35am UTC](https://discuss.elastic.co/t/calculation-of-whymatch-in-elasticsearch/15658 "2014-02-07T06:35:33Z")
**Posts on this page:** 1
**Showing post:** 6

<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 11, 2014, 5:08am UTC](https://discuss.elastic.co/t/calculation-of-whymatch-in-elasticsearch/15658/6 "2014-02-11T05:08:02Z")

</div>

Hi Britta Weber ,

I wanted to extract the total number of times a search term occurs..in a  
particular field..  
Even if the search term is a phrase,the query should return the total  
number of times that phrase  
occurs and also the frequency of individual term of that phrase in each  
field.

Thanks  
Navneet Mathpal

On Friday, 7 February 2014 12:05:33 UTC+5:30, [usha...@gmail.com](mailto:usha...@gmail.com) wrote:

> Hi,
> 
> How do we implement whymatch concept in elasticsearch by finding the total  
> number of fields in which the search term occurs and the frequency of that  
> search term??

--  
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/14c0ce29-5e02-462b-802f-8d131b371b1f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/14c0ce29-5e02-462b-802f-8d131b371b1f%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

_[View the full topic](https://discuss.elastic.co/t/calculation-of-whymatch-in-elasticsearch/15658)._
