Index creation Error


(Anumod Mullachery) #1

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/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] 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.


(Fram Souza) #2

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

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


(system) #3

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