# How to retrieve matching text field in multi level nested document

**URL:** https://discuss.elastic.co/t/how-to-retrieve-matching-text-field-in-multi-level-nested-document/185577
**Category:** Elasticsearch
**Created:** [June 13, 2019, 8:27am UTC](https://discuss.elastic.co/t/how-to-retrieve-matching-text-field-in-multi-level-nested-document/185577 "2019-06-13T08:27:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tombka](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@tombka](https://discuss.elastic.co/u/tombka)
#### Post date: [June 13, 2019, 8:27am UTC](https://discuss.elastic.co/t/how-to-retrieve-matching-text-field-in-multi-level-nested-document/185577/1 "2019-06-13T08:27:47Z")

</div>

Hi everybody,

I have some problem with retrieving data with multi level nested document :

```
{
    "myindex": {
        "mappings": {
            "properties": {
                "analyzed": {
                    "properties": {
                        "details": {
                            "properties": {
                                "results": {
                                    "properties": {
                                        "body": {
                                            "properties": {
                                                "a": {
                                                    "properties": {
                                                        "externe": {
                                                            "type": "nested",
                                                            "properties": {
                                                                "href": {
                                                                    "type": "text"
                                                                },
                                                                "puissance": {
                                                                    "type": "integer"
                                                                }
                                                            }
                                                        },

```

How am I supposed to retrieve my href field for example ?

---

<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 11, 2019, 8:27am UTC](https://discuss.elastic.co/t/how-to-retrieve-matching-text-field-in-multi-level-nested-document/185577/2 "2019-07-11T08:27:52Z")

</div>

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