# Highlighting issue on nested object

**URL:** <https://discuss.elastic.co/t/highlighting-issue-on-nested-object/132661>\
**Category:** Elasticsearch\
**Created:** [May 21, 2018, 1:28pm UTC](https://discuss.elastic.co/t/highlighting-issue-on-nested-object/132661 "2018-05-21T13:28:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brettboyle](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@brettboyle](https://discuss.elastic.co/u/brettboyle)\
**Post date:** [May 21, 2018, 1:28pm UTC](https://discuss.elastic.co/t/highlighting-issue-on-nested-object/132661/1 "2018-05-21T13:28:03Z")

</div>

I'm having an issue with a highlight query that is only hitting on some nested objects but not others. It's confusing because some of the nested objects within the list are identical to each other but only some are being found from the search. The issue appears to be with the search not hitting on certain objects, not an issue with highlighting.

So imagine there's this simplified mapping with a list of nested objects.

```auto
{
    "mappings": {
        "parts": {
            "properties": {
                "list": {
                    "include_in_parent": true,
                    "type": "nested",
                    "properties": {
                        "text": {"type": "text", "index": true, "analyzer": "text_analyzer"}}
                    }
                }
            }
        }   
    }
}

```

For the "text" values, if some are identical to each other within the list, what reason could there be for a query to hit on some of the nested objects and not others.

---

<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:** [June 18, 2018, 1:28pm UTC](https://discuss.elastic.co/t/highlighting-issue-on-nested-object/132661/2 "2018-06-18T13:28:10Z")

</div>

Closed on June 18, 2018, 1:28pm UTC

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