# Unmapped nested types in queries

**URL:** <https://discuss.elastic.co/t/unmapped-nested-types-in-queries/21242>\
**Category:** Elasticsearch\
**Created:** [December 13, 2014, 12:41am UTC](https://discuss.elastic.co/t/unmapped-nested-types-in-queries/21242 "2014-12-13T00:41:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexC](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@AlexC](https://discuss.elastic.co/u/AlexC)\
**Post date:** [December 13, 2014, 12:41am UTC](https://discuss.elastic.co/t/unmapped-nested-types-in-queries/21242/1 "2014-12-13T00:41:47Z")

</div>

The documentation at  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-dynamic-mapping.html#\_unmapped\_fields\_in\_queries](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-dynamic-mapping.html#_unmapped_fields_in_queries)  
says that the following setting  
index.query.parse.allow\_unmapped\_fields  
, when set to true, will allow a query not to fail if a field referenced in  
the search query is not mapped.

It doesn't work on nested types though (and I confirmed that by browsing  
the source code).  
For a path like grandParent.parent.child, if only grandParent is mapped,  
then the query/filter will fail if the search query/filter references the  
'child' field.

Just wondering is this is the intended behavior.

alex

--  
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/27b1dd3f-d6c5-4749-805e-3fe44ef88189%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/27b1dd3f-d6c5-4749-805e-3fe44ef88189%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:43am UTC](https://discuss.elastic.co/t/unmapped-nested-types-in-queries/21242/2 "2017-07-06T00:43:51Z")

</div>


