# Highlight based on words rather than characters

**URL:** <https://discuss.elastic.co/t/highlight-based-on-words-rather-than-characters/6744>\
**Category:** Elasticsearch\
**Created:** [February 18, 2012, 6:42pm UTC](https://discuss.elastic.co/t/highlight-based-on-words-rather-than-characters/6744 "2012-02-18T18:42:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [February 18, 2012, 6:42pm UTC](https://discuss.elastic.co/t/highlight-based-on-words-rather-than-characters/6744/1 "2012-02-18T18:42:46Z")

</div>

Hi ,

I would like to see last and following N number of words rather than  
characters.  
Is that possible in elasticSearch with current setup ?

Thanks  
Vineeth

---

<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, 3:38am UTC](https://discuss.elastic.co/t/highlight-based-on-words-rather-than-characters/6744/2 "2017-07-06T03:38:52Z")

</div>


