# Count the Number of words in the field Elastic search 6.2

**URL:** <https://discuss.elastic.co/t/count-the-number-of-words-in-the-field-elastic-search-6-2/121373>\
**Category:** Elasticsearch\
**Created:** [February 25, 2018, 11:11am UTC](https://discuss.elastic.co/t/count-the-number-of-words-in-the-field-elastic-search-6-2/121373 "2018-02-25T11:11:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_khanduri](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@Amit\_khanduri](https://discuss.elastic.co/u/Amit_khanduri)\
**Post date:** [February 25, 2018, 11:11am UTC](https://discuss.elastic.co/t/count-the-number-of-words-in-the-field-elastic-search-6-2/121373/1 "2018-02-25T11:11:34Z")

</div>

Most of the peoples asked this question in the forum so many times, but I want the exact solution for this problem.  
_Example :_  
`"Name":"John Doe bishop"`  
So the total count in the Name field is **3**.  
What is the query to find count along with mapping for the field Name ??  
Thanks in Advance !!

---

<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:** [March 25, 2018, 11:11am UTC](https://discuss.elastic.co/t/count-the-number-of-words-in-the-field-elastic-search-6-2/121373/2 "2018-03-25T11:11:43Z")

</div>

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