# Elasticsearch 1.0.1 \_parent problem

**URL:** https://discuss.elastic.co/t/elasticsearch-1-0-1--parent-problem/16460
**Category:** Elasticsearch
**Created:** [March 19, 2014, 10:33am UTC](https://discuss.elastic.co/t/elasticsearch-1-0-1--parent-problem/16460 "2014-03-19T10:33:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mark\_3](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@Mark\_3](https://discuss.elastic.co/u/Mark_3)
#### Post date: [March 19, 2014, 10:33am UTC](https://discuss.elastic.co/t/elasticsearch-1-0-1--parent-problem/16460/1 "2014-03-19T10:33:39Z")

</div>

Hi all:  
I found a problem in 1.0.1, it seems I can not use the \_parent keyword to  
setup the mapping.  
My mapping schema is like follows:  
{"properties":  
{"\_parent":{"type":"jobPost"},

"jobPostId":{"type":"long","store":"yes","index":"not\_analyzed","null\_value":0},

"jobTitle":{"type":"string","store":"yes","index":"analyzed","null\_value":""},  
"experienceLevel":{"type":"string","store":"yes","index":"not\_analyzed"}  
}  
}  
I received the following exception:  
org.elasticsearch.index.mapper.MapperParsingException: No handler for type  
[jobPost] declared on field [\_parent]

But it works fine at the version 0.90.9  
Is it a bug of the version 1.0.1 or there's something wrong with my schema?  
Can anyone help me, thanks.

--  
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/10610593-6497-4f07-adb3-654c735394f1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/10610593-6497-4f07-adb3-654c735394f1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 19, 2014, 11:03am UTC](https://discuss.elastic.co/t/elasticsearch-1-0-1--parent-problem/16460/2 "2014-03-19T11:03:09Z")

</div>

I think it's because you put \_parent inside properties and not outside.

My 2 cents

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 19 mars 2014 à 11:33:45, Mark ([xueliang1985@gmail.com](mailto:xueliang1985@gmail.com)) a écrit:

Hi all:  
I found a problem in 1.0.1, it seems I can not use the \_parent keyword to setup the mapping.  
My mapping schema is like follows:  
{"properties":  
{"\_parent":{"type":"jobPost"},  
"jobPostId":{"type":"long","store":"yes","index":"not\_analyzed","null\_value":0},  
"jobTitle":{"type":"string","store":"yes","index":"analyzed","null\_value":""},  
"experienceLevel":{"type":"string","store":"yes","index":"not\_analyzed"}  
}  
}  
I received the following exception:  
org.elasticsearch.index.mapper.MapperParsingException: No handler for type [jobPost] declared on field [\_parent]

## But it works fine at the version 0.90.9 Is it a bug of the version 1.0.1 or there's something wrong with my schema? Can anyone help me, thanks.

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/10610593-6497-4f07-adb3-654c735394f1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/10610593-6497-4f07-adb3-654c735394f1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/etPan.5329796d.2f305def.97ca%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5329796d.2f305def.97ca%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Mark\_3](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@Mark\_3](https://discuss.elastic.co/u/Mark_3)
#### Post date: [March 19, 2014, 11:28am UTC](https://discuss.elastic.co/t/elasticsearch-1-0-1--parent-problem/16460/3 "2014-03-19T11:28:55Z")

</div>

Hi David, Thank you very much, the problem is just as you described, I  
moved the parent part out and it works, thanks a lot 🙂

2014-03-19 19:03 GMT+08:00 David Pilato [david@pilato.fr](mailto:david@pilato.fr):

> I think it's because you put \_parent inside properties and not outside.
> 
> My 2 cents
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> Le 19 mars 2014 à 11:33:45, Mark ([xueliang1985@gmail.com](mailto:xueliang1985@gmail.com)) a écrit:
> 
> Hi all:  
> I found a problem in 1.0.1, it seems I can not use the \_parent keyword to  
> setup the mapping.  
> My mapping schema is like follows:  
> {"properties":  
> {"\_parent":{"type":"jobPost"},
> 
> "jobPostId":{"type":"long","store":"yes","index":"not\_analyzed","null\_value":0},
> 
> "jobTitle":{"type":"string","store":"yes","index":"analyzed","null\_value":""},  
> "experienceLevel":{"type":"string","store":"yes","index":"not\_analyzed"}  
> }  
> }  
> I received the following exception:  
> org.elasticsearch.index.mapper.MapperParsingException: No handler for  
> type [jobPost] declared on field [\_parent]
> 
> ## But it works fine at the version 0.90.9 Is it a bug of the version 1.0.1 or there's something wrong with my schema? Can anyone help me, thanks.
> 
> 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/10610593-6497-4f07-adb3-654c735394f1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/10610593-6497-4f07-adb3-654c735394f1%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/10610593-6497-4f07-adb3-654c735394f1%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/10610593-6497-4f07-adb3-654c735394f1%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/bXE2iX2\_bn8/unsubscribe](https://groups.google.com/d/topic/elasticsearch/bXE2iX2_bn8/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/etPan.5329796d.2f305def.97ca%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5329796d.2f305def.97ca%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.5329796d.2f305def.97ca%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.5329796d.2f305def.97ca%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CANbWZRORu7CpMzZ7pkXB6TnJfxDCsuNxj1GOgt-wEH1%3DKrAv%2Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CANbWZRORu7CpMzZ7pkXB6TnJfxDCsuNxj1GOgt-wEH1%3DKrAv%2Bw%40mail.gmail.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, 1:42am UTC](https://discuss.elastic.co/t/elasticsearch-1-0-1--parent-problem/16460/4 "2017-07-06T01:42:13Z")

</div>


