Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Elasticsearch 1.4
- -----------------------------OLD mapping-------------------------------
- {
- "mappings": {
- "tInfoclient": {
- "properties": {
- "Client": {
- "properties": {
- "d_naiss_cli": {
- "type": "string"
- },
- "pr_cli_20": {
- "type": "string"
- },
- "dc_cli": {
- "format": "dateOptionalTime",
- "type": "date"
- },
- "no_coEmprunteur": {
- "type": "string"
- },
- "cmpl_voie_cli": {
- "type": "string"
- },
- "loc_cli": {
- "type": "string"
- },
- "no_tel_cli": {
- "type": "string"
- },
- "no_ctrat": {
- "type": "string"
- },
- "nom_cli_20": {
- "type": "string"
- },
- "no_tel_empcli": {
- "type": "string"
- },
- "voie_cli": {
- "type": "string"
- },
- "c_post_cli": {
- "type": "string"
- },
- "c_qual": {
- "type": "string"
- },
- "ad_e_mail": {
- "type": "string"
- },
- "no_telp": {
- "type": "string"
- },
- "ptel_empcli": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- -----------------------------NEW mapping-------------------------------
- curl -XPUT 'http://maprvm:9200/maprdb/_mapping/tInfoclient' -d '{
- "mappings": {
- "tInfoclient": {
- "properties": {
- "Client": {
- "properties": {
- "d_naiss_cli": {
- "type": "string",
- "copy_to": "full_info"
- },
- "pr_cli_20": {
- "type": "string",
- "copy_to": "full_info"
- },
- "nom_cli_20": {
- "type": "string",
- "copy_to": "full_info"
- },
- "full_info": {
- "type": "string"
- },
- "dc_cli": {
- "format": "dateOptionalTime",
- "type": "date"
- },
- "no_coEmprunteur": {
- "type": "string"
- },
- "cmpl_voie_cli": {
- "type": "string"
- },
- "loc_cli": {
- "type": "string"
- },
- "no_tel_cli": {
- "type": "string"
- },
- "no_ctrat": {
- "type": "string"
- },
- "no_tel_empcli": {
- "type": "string"
- },
- "voie_cli": {
- "type": "string"
- },
- "c_post_cli": {
- "type": "string"
- },
- "c_qual": {
- "type": "string"
- },
- "ad_e_mail": {
- "type": "string"
- },
- "no_telp": {
- "type": "string"
- },
- "ptel_empcli": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }'
- -----------------------------------------ERROR I GET ----------------------------------------
- "error":"MapperParsingException[Root type mapping not empty after parsing! Remaining fields: [mappings : {tInfoclient={properties={Client={properties={d_naiss_cli={type=string, copy_to=full_info}, pr_cli_20={type=string, copy_to=full_info}, nom_cli_20={type=string, copy_to=full_info}, full_info={type=string}, dc_cli={format=dateOptionalTime, type=date}, no_coEmprunteur={type=string}, cmpl_voie_cli={type=string}, loc_cli={type=string}, no_tel_cli={type=string}, no_ctrat={type=string}, no_tel_empcli={type=string}, voie_cli={type=string}, c_post_cli={type=string}, c_qual={type=string}, ad_e_mail={type=string}, no_telp={type=string}, ptel_empcli={type=string}}}}}}]]","status":400}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement