# A fresh variant of MapperParsingException

**URL:** <https://discuss.elastic.co/t/a-fresh-variant-of-mapperparsingexception/19234>\
**Category:** Elasticsearch\
**Created:** [August 12, 2014, 2:51pm UTC](https://discuss.elastic.co/t/a-fresh-variant-of-mapperparsingexception/19234 "2014-08-12T14:51:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackpark](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jackpark](https://discuss.elastic.co/u/jackpark)\
**Post date:** [August 12, 2014, 2:51pm UTC](https://discuss.elastic.co/t/a-fresh-variant-of-mapperparsingexception/19234/1 "2014-08-12T14:51:20Z")

</div>

I created a gist for the mappings I am sending through node-es, with a  
returned error:  
MapperParsingException[Root type mapping not empty after parsing!

The gist is at

> <https://gist.github.com/KnowledgeGarden/b965b7e78f19f9be9025>

Note, that if I remove the upper portion of the json:  
"topics": {  
"mappings": {  
"core": {  
and just send in from "properties":, the same error occurs.

The exact code which sends mappings into node-es is found here:

> <https://github.com/KnowledgeGarden/TQTopicMap/blob/master/lib/persist/es.js>

I'm wondering if anyone recognizes an error in my mapping. I  
deliberately include the index and type in the mapping. It seems hard  
to find examples of schema mappings that do what I am trying to do.

Thanks!

Here is the error message:  
ESClient-1 Error: {"error":"MapperParsingException[mapping [topics]]; nested: Ma  
pperParsingException[Root type mapping not empty after parsing! Remaining fields  
: [mappings : {core={properties={inOf={index=not\_analyzed, store=true, type=stri  
ng}, \_ver={index=not\_analyzed, store=true, type=string}, tpC={index=not\_analyzed  
, store=true, type=long}, lox={index=not\_analyzed, store=true, type=string}, srt  
Dt={index=not\_analyzed, store=true, type=long}, url={index=not\_analyzed, store=t  
rue, type=string}, lists={properties={body={index=analyzed, store=true, type=str  
ing}, sbOf={index=not\_analyzed, store=true, type=string}, details={index=analyze  
d, store=true, type=string}, psi={index=not\_analyzed, store=true, type=string},  
label={index=analyzed, store=true, type=string}, subj={index=analyzed, store=tru  
e, type=string}}}}}}]]; ","status":400}

--  
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/CAH6s0fxkx%3D0ZpDM-qAEi4RREKKVubUcX%3DVSPSz5mwGTxYuWNNw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH6s0fxkx%3D0ZpDM-qAEi4RREKKVubUcX%3DVSPSz5mwGTxYuWNNw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)\
**Post date:** [August 12, 2014, 3:43pm UTC](https://discuss.elastic.co/t/a-fresh-variant-of-mapperparsingexception/19234/2 "2014-08-12T15:43:05Z")

</div>

hi,

you should not remove "core".  
please try to add that.

> **[Elastic — The Search AI Company](https://www.elastic.co)**
>
> Power insights and outcomes with The Elastic Search AI Platform. See into your data and find answers that matter with enterprise solutions designed to help you accelerate time to insight. Try Elastic ...

2014年8月12日火曜日、Jack Park[jackpark@topicquests.org](mailto:jackpark@topicquests.org)さんは書きました:

> I created a gist for the mappings I am sending through node-es, with a  
> returned error:  
> MapperParsingException[Root type mapping not empty after parsing!
> 
> The gist is at  
> [tq schema mappings · GitHub](https://gist.github.com/KnowledgeGarden/b965b7e78f19f9be9025)
> 
> Note, that if I remove the upper portion of the json:  
> "topics": {  
> "mappings": {  
> "core": {  
> and just send in from "properties":, the same error occurs.
> 
> The exact code which sends mappings into node-es is found here:  
> [TQTopicMap/lib/persist/es.js at master · KnowledgeGarden/TQTopicMap · GitHub](https://github.com/KnowledgeGarden/TQTopicMap/blob/master/lib/persist/es.js)
> 
> I'm wondering if anyone recognizes an error in my mapping. I  
> deliberately include the index and type in the mapping. It seems hard  
> to find examples of schema mappings that do what I am trying to do.
> 
> Thanks!
> 
> Here is the error message:  
> ESClient-1 Error: {"error":"MapperParsingException[mapping [topics]];  
> nested: Ma  
> pperParsingException[Root type mapping not empty after parsing! Remaining  
> fields  
> : [mappings : {core={properties={inOf={index=not\_analyzed, store=true,  
> type=stri  
> ng}, \_ver={index=not\_analyzed, store=true, type=string},  
> tpC={index=not\_analyzed  
> , store=true, type=long}, lox={index=not\_analyzed, store=true,  
> type=string}, srt  
> Dt={index=not\_analyzed, store=true, type=long}, url={index=not\_analyzed,  
> store=t  
> rue, type=string}, lists={properties={body={index=analyzed, store=true,  
> type=str  
> ing}, sbOf={index=not\_analyzed, store=true, type=string},  
> details={index=analyze  
> d, store=true, type=string}, psi={index=not\_analyzed, store=true,  
> type=string},  
> label={index=analyzed, store=true, type=string}, subj={index=analyzed,  
> store=tru  
> e, type=string}}}}}}]]; ","status":400}
> 
> --  
> 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) \<javascript:;\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAH6s0fxkx%3D0ZpDM-qAEi4RREKKVubUcX%3DVSPSz5mwGTxYuWNNw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH6s0fxkx%3D0ZpDM-qAEi4RREKKVubUcX%3DVSPSz5mwGTxYuWNNw%40mail.gmail.com)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

## --

Jun Ohtani  
blog : [http://blog.johtani.info](http://blog.johtani.info)

--  
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/CAPW8A5zBLQNyrwX0HZwc6CECYV6H%3DqHUS5aKuy%2BCouO6b%2B9EtQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPW8A5zBLQNyrwX0HZwc6CECYV6H%3DqHUS5aKuy%2BCouO6b%2B9EtQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jackpark](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jackpark](https://discuss.elastic.co/u/jackpark)\
**Post date:** [August 12, 2014, 8:39pm UTC](https://discuss.elastic.co/t/a-fresh-variant-of-mapperparsingexception/19234/3 "2014-08-12T20:39:46Z")

</div>

Thanks!  
The top level of my mappings.json is changed from the gist to look like this:

{  
"core": {  
"properties": {  
"lox": {

And that appears to work.

On Tue, Aug 12, 2014 at 8:43 AM, Jun Ohtani [johtani@gmail.com](mailto:johtani@gmail.com) wrote:

> hi,
> 
> you should not remove "core".  
> please try to add that.  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-put-mapping.html)
> 
> 2014年8月12日火曜日、Jack Park[jackpark@topicquests.org](mailto:jackpark@topicquests.org)さんは書きました:
> 
> > I created a gist for the mappings I am sending through node-es, with a  
> > returned error:  
> > MapperParsingException[Root type mapping not empty after parsing!
> > 
> > The gist is at  
> > [tq schema mappings · GitHub](https://gist.github.com/KnowledgeGarden/b965b7e78f19f9be9025)
> > 
> > Note, that if I remove the upper portion of the json:  
> > "topics": {  
> > "mappings": {  
> > "core": {  
> > and just send in from "properties":, the same error occurs.
> > 
> > The exact code which sends mappings into node-es is found here:
> > 
> > [https://github.com/KnowledgeGarden/TQTopicMap/blob/master/lib/persist/es.js](https://github.com/KnowledgeGarden/TQTopicMap/blob/master/lib/persist/es.js)
> > 
> > I'm wondering if anyone recognizes an error in my mapping. I  
> > deliberately include the index and type in the mapping. It seems hard  
> > to find examples of schema mappings that do what I am trying to do.
> > 
> > Thanks!
> > 
> > Here is the error message:  
> > ESClient-1 Error: {"error":"MapperParsingException[mapping [topics]];  
> > nested: Ma  
> > pperParsingException[Root type mapping not empty after parsing! Remaining  
> > fields  
> > : [mappings : {core={properties={inOf={index=not\_analyzed, store=true,  
> > type=stri  
> > ng}, \_ver={index=not\_analyzed, store=true, type=string},  
> > tpC={index=not\_analyzed  
> > , store=true, type=long}, lox={index=not\_analyzed, store=true,  
> > type=string}, srt  
> > Dt={index=not\_analyzed, store=true, type=long}, url={index=not\_analyzed,  
> > store=t  
> > rue, type=string}, lists={properties={body={index=analyzed, store=true,  
> > type=str  
> > ing}, sbOf={index=not\_analyzed, store=true, type=string},  
> > details={index=analyze  
> > d, store=true, type=string}, psi={index=not\_analyzed, store=true,  
> > type=string},  
> > label={index=analyzed, store=true, type=string}, subj={index=analyzed,  
> > store=tru  
> > e, type=string}}}}}}]]; ","status":400}
> > 
> > --  
> > 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/CAH6s0fxkx%3D0ZpDM-qAEi4RREKKVubUcX%3DVSPSz5mwGTxYuWNNw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH6s0fxkx%3D0ZpDM-qAEi4RREKKVubUcX%3DVSPSz5mwGTxYuWNNw%40mail.gmail.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> ## --
> 
> Jun Ohtani  
> blog : [http://blog.johtani.info](http://blog.johtani.info)
> 
> --  
> 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/CAPW8A5zBLQNyrwX0HZwc6CECYV6H%3DqHUS5aKuy%2BCouO6b%2B9EtQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPW8A5zBLQNyrwX0HZwc6CECYV6H%3DqHUS5aKuy%2BCouO6b%2B9EtQ%40mail.gmail.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/CAH6s0fzQvAoXbEbJ09Fdit6HF\_nzJqZ7kRac9MAZ8rrqtHRE%2Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH6s0fzQvAoXbEbJ09Fdit6HF_nzJqZ7kRac9MAZ8rrqtHRE%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:09am UTC](https://discuss.elastic.co/t/a-fresh-variant-of-mapperparsingexception/19234/4 "2017-07-06T01:09:06Z")

</div>


