# Paginating highlights

**URL:** <https://discuss.elastic.co/t/paginating-highlights/45667>\
**Category:** Elasticsearch\
**Created:** [March 29, 2016, 9:08am UTC](https://discuss.elastic.co/t/paginating-highlights/45667 "2016-03-29T09:08:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jroxendal](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jroxendal](https://discuss.elastic.co/u/jroxendal)\
**Post date:** [March 29, 2016, 9:08am UTC](https://discuss.elastic.co/t/paginating-highlights/45667/1 "2016-03-29T09:08:06Z")

</div>

I want to show all of the highlights for all documents (i.e if a document has 10 000 hits I need them all). Setting the highlighter option number\_of\_fragments to a really high number does the job, but if a document has thousands of hits for that search the client will overload. Attempts to find pagination support for highlights have failed. Can this be solved in some other clever way?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [March 29, 2016, 11:32am UTC](https://discuss.elastic.co/t/paginating-highlights/45667/2 "2016-03-29T11:32:35Z")

</div>

> [@jroxendal](#):
>
> Can this be solved in some other clever way?

That isn't a feature that exists now.

The closest you can get now is to index a document per page and highlight those.

---

<div class="post-metadata">

**Author:** ![jroxendal](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jroxendal](https://discuss.elastic.co/u/jroxendal)\
**Post date:** [March 29, 2016, 4:05pm UTC](https://discuss.elastic.co/t/paginating-highlights/45667/3 "2016-03-29T16:05:26Z")

</div>

Thanks, I'll see if I can make that work.

---

<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 5, 2017, 11:04pm UTC](https://discuss.elastic.co/t/paginating-highlights/45667/4 "2017-07-05T23:04:20Z")

</div>


