# Possible bugs when using highlights in deep nested documents

**URL:** <https://discuss.elastic.co/t/possible-bugs-when-using-highlights-in-deep-nested-documents/71999>\
**Category:** Elasticsearch\
**Created:** [January 18, 2017, 12:16pm UTC](https://discuss.elastic.co/t/possible-bugs-when-using-highlights-in-deep-nested-documents/71999 "2017-01-18T12:16:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GyllingSW](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@GyllingSW](https://discuss.elastic.co/u/GyllingSW)\
**Post date:** [January 18, 2017, 12:16pm UTC](https://discuss.elastic.co/t/possible-bugs-when-using-highlights-in-deep-nested-documents/71999/1 "2017-01-18T12:16:05Z")

</div>

Hi all,

I would like someone to help verify if I hit a bug or not, when using deep nested structures analyzed with the "danish" analyzer.

For steps to reproduce see this gist:

> <https://gist.github.com/GyllingSW/0a7d85702916c2b5a19d7dcc3f7eca4c>

Basic idea is, that my client has a structure similar to this, and the highlight feature isn't working as expected, so to reproduce I created the gist above.

If I change for the "english" analyzer everything is working as expected. I have tested this using Elasticsearch versions 2.4.X and 5.1.X both with similar results.

---

<div class="post-metadata">

**Author:** ![GyllingSW](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@GyllingSW](https://discuss.elastic.co/u/GyllingSW)\
**Post date:** [January 23, 2017, 11:12am UTC](https://discuss.elastic.co/t/possible-bugs-when-using-highlights-in-deep-nested-documents/71999/2 "2017-01-23T11:12:22Z")

</div>

> [@GyllingSW](#):
>
> gistfile1.txt

I discovered, that the issue mostly lies in the default danish stop words list, thus ES is actually doing exactly as expected. To solve the issue above - a re-index will have to happen ...

Consider this as solved

---

<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:** [February 20, 2017, 11:12am UTC](https://discuss.elastic.co/t/possible-bugs-when-using-highlights-in-deep-nested-documents/71999/3 "2017-02-20T11:12:25Z")

</div>

Closed on February 20, 2017, 11:12am UTC

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