# Nested type mapping error

**URL:** <https://discuss.elastic.co/t/nested-type-mapping-error/20263>\
**Category:** Elasticsearch\
**Created:** [October 15, 2014, 8:46am UTC](https://discuss.elastic.co/t/nested-type-mapping-error/20263 "2014-10-15T08:46:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shekhar\_chauhan](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@shekhar\_chauhan](https://discuss.elastic.co/u/shekhar_chauhan)\
**Post date:** [October 15, 2014, 8:46am UTC](https://discuss.elastic.co/t/nested-type-mapping-error/20263/1 "2014-10-15T08:46:45Z")

</div>

Hi All,  
I am facing a problem.How to do mapping of making a object of nested  
type.I\* only wants itemResults object of nested type.\*

my document structure is -

{  
"\_id": "inspectionresults-07d864fd-76ec-427a-a1c6-b70e420ce3d8",  
"\_rev": "12-64c44ddcfcd477dfa86cdb9d3c659748",  
"sectionResults": [

```
   {
       "SectionName": "More Details",
       "itemResults": [
           
           {
               "InspectionItem": "Launch Month",
               "ItemInfo": ""
               
           }
       ]
   }

```

]  
}

and my query is -  
PUT realtek\_release\_v6\_nestedsearch/\_mapping  
{  
"realtek\_release\_v6\_nestedsearch":{  
"properties": {  
"sectionResults":{  
"type": "object",  
"properties": {  
"itemResults":{  
"type": "nested"  
}  
}  
}  
}  
}  
}

error is - "nested object under path [sectionResults] is not of nested  
type"

please send me query according to my document structure._i only wants  
itemResults object of nested type_.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7e301db9-8160-475c-90f9-42ae87dcb748%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7e301db9-8160-475c-90f9-42ae87dcb748%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![shekhar\_chauhan](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@shekhar\_chauhan](https://discuss.elastic.co/u/shekhar_chauhan)\
**Post date:** [October 16, 2014, 6:06am UTC](https://discuss.elastic.co/t/nested-type-mapping-error/20263/2 "2014-10-16T06:06:20Z")

</div>

Is there anyone to help me about the above problem?...please help me..

Thanks in advance,

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/098e9176-fd1c-473c-9ca3-9d62de679ee9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/098e9176-fd1c-473c-9ca3-9d62de679ee9%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:55am UTC](https://discuss.elastic.co/t/nested-type-mapping-error/20263/3 "2017-07-06T00:55:51Z")

</div>


