# Highlighter that produce fragments that cover all keywords

**URL:** <https://discuss.elastic.co/t/highlighter-that-produce-fragments-that-cover-all-keywords/145910>\
**Category:** Elasticsearch\
**Created:** [August 24, 2018, 12:38pm UTC](https://discuss.elastic.co/t/highlighter-that-produce-fragments-that-cover-all-keywords/145910 "2018-08-24T12:38:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aslamy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aslamy1/32/26607_2.png) [@aslamy1](https://discuss.elastic.co/u/aslamy1)\
**Post date:** [August 24, 2018, 12:38pm UTC](https://discuss.elastic.co/t/highlighter-that-produce-fragments-that-cover-all-keywords/145910/1 "2018-08-24T12:38:01Z")

</div>

Hi !  
How can Elasticsearch produce fragments that cover all keywords?

Exampel:

If I search for "germany world cup"  
I get tre fragments and all of them maybe contains word "Germany", instead I want tre fragment for each keyword. Or first fragment cover two keywords and second frgament the third keyword.

The point is all keywords should exisit in fragments.

How can I achive this?

---

<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:** [September 21, 2018, 12:38pm UTC](https://discuss.elastic.co/t/highlighter-that-produce-fragments-that-cover-all-keywords/145910/2 "2018-09-21T12:38:03Z")

</div>

Closed on September 21, 2018, 12:38pm UTC

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