# Delete one child type mapping, affected other children queries

**URL:** <https://discuss.elastic.co/t/delete-one-child-type-mapping-affected-other-children-queries/22390>\
**Category:** Elasticsearch\
**Created:** [February 25, 2015, 6:47pm UTC](https://discuss.elastic.co/t/delete-one-child-type-mapping-affected-other-children-queries/22390 "2015-02-25T18:47:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitfy](https://avatars.discourse-cdn.com/v4/letter/g/85f322/32.png) [@gitfy](https://discuss.elastic.co/u/gitfy)\
**Post date:** [February 25, 2015, 6:47pm UTC](https://discuss.elastic.co/t/delete-one-child-type-mapping-affected-other-children-queries/22390/1 "2015-02-25T18:47:48Z")

</div>

I am using elasticsearch 1.3.4. I have the following setup.

There is one index which has lots of types, in those one type is a parent  
for rest of the types in that index. Everytime, we create new type, the  
parent/child relationship is established by creating the mapping. I have  
the setting { routing : true } in my mapping.

At one point, i need to clear out completely all the data in a specific  
child type, so i tried to delete and reload. When i deleted the child type,  
what happened to my surprise was all the queries to other children types  
which had a "has\_parent" in it failed completed. They returned no records  
at all. There were no errors in the response.

It was as if the parent key based children data cache across all types got  
dropped and it never rebuild. I came to this conclusion, since everything  
worked after i restarted elasticsearch.

Could someone shed some light on what could have happened and how do we  
handle such type deletion without affecting queries for other types. If  
there are any workaround that could done without restarting would be also  
nice.

Thank.

--  
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/7712c6d5-a66b-41d6-b22e-afa7e99af5ff%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7712c6d5-a66b-41d6-b22e-afa7e99af5ff%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:30am UTC](https://discuss.elastic.co/t/delete-one-child-type-mapping-affected-other-children-queries/22390/2 "2017-07-06T00:30:07Z")

</div>


