# Index creation Error

**URL:** https://discuss.elastic.co/t/index-creation-error/113505
**Category:** Elasticsearch
**Created:** [December 28, 2017, 8:35pm UTC](https://discuss.elastic.co/t/index-creation-error/113505 "2017-12-28T20:35:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Anumod](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@Anumod](https://discuss.elastic.co/u/Anumod)
#### Post date: [December 28, 2017, 8:35pm UTC](https://discuss.elastic.co/t/index-creation-error/113505/1 "2017-12-28T20:35:10Z")

</div>

Hi ,

We have 2 JG servers(NE & NW) each with Elastic search instances.  
Index created on NE JG server,

Backend - cassandra cluster

index creation qry-

gremlin\> mgmt.buildIndex(‘typeAndName’,Vertex.class).addKey(type,Mapping.STRING.asParameter()).addKey(name\_String,Mapping.TEXT.asParameter()).buildMixedIndex(“search”)

JG Error log--\>

PUT [http://96.115.209.226:9200/janusgraph\_typeandname/\_mapping/typeAndName:](http://96.115.209.226:9200/janusgraph_typeandname/_mapping/typeAndName:) HTTP/1.1 400 Bad Request

> {“error”:{“root\_cause”:[{“type”:“illegal\_argument\_exception”,“reason”:“mapper [type] of different type, current\_type [text], merged\_type [keyword]“}],“type”:“illegal\_argument\_exception”,“reason”:“mapper [type] of different type, current\_type [text], merged\_type [keyword]“},“status”:400}

Error message from Elastic search - NW region --\>

[2017-12-28T20:16:28,977][DEBUG][o.e.a.a.i.m.p.TransportPutMappingAction] [[tvxcas-nw-c00031-b.nest.r53.xcal.tv](http://tvxcas-nw-c00031-b.nest.r53.xcal.tv)] failed to put mappings on indices [[[janusgraph\_typeandname/5yLLgld5ThKTPBVQCahGow]]], type [typeAndName]  
java.lang.IllegalArgumentException: mapper [type] of different type, current\_type [text], merged\_type [keyword]

mapper [type] of different type, current\_type [text], merged\_type [keyword]

Can some one can put some light on this issue, will be of great help.

thanks

Anumod.

---

<div class="post-metadata">

### Author: ![Fram\_Souza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fram_souza/32/24833_2.png) [@Fram\_Souza](https://discuss.elastic.co/u/Fram_Souza)
#### Post date: [December 29, 2017, 6:00pm UTC](https://discuss.elastic.co/t/index-creation-error/113505/2 "2017-12-29T18:00:02Z")

</div>

You need to specify the properties below the curl action, such as:

PUT twitter/\_mapping/user  
{  
"properties": {  
"name": {  
"type": "text"  
}  
}  
}

---

<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: [January 26, 2018, 6:00pm UTC](https://discuss.elastic.co/t/index-creation-error/113505/3 "2018-01-26T18:00:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
