Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.26 KB | None | 0 0
  1. Elasticsearch 1.4
  2.  
  3. -----------------------------OLD mapping-------------------------------
  4.  
  5. {
  6.     "mappings": {
  7.         "tInfoclient": {
  8.             "properties": {
  9.                 "Client": {
  10.                     "properties": {
  11.                         "d_naiss_cli": {
  12.                         "type": "string"
  13.                         },
  14.                         "pr_cli_20": {
  15.                         "type": "string"
  16.                         },
  17.                         "dc_cli": {
  18.                         "format": "dateOptionalTime",
  19.                         "type": "date"
  20.                         },
  21.                         "no_coEmprunteur": {
  22.                         "type": "string"
  23.                         },
  24.                         "cmpl_voie_cli": {
  25.                         "type": "string"
  26.                         },
  27.                         "loc_cli": {
  28.                         "type": "string"
  29.                         },
  30.                         "no_tel_cli": {
  31.                         "type": "string"
  32.                         },
  33.                         "no_ctrat": {
  34.                         "type": "string"
  35.                         },
  36.                         "nom_cli_20": {
  37.                         "type": "string"
  38.                         },
  39.                         "no_tel_empcli": {
  40.                         "type": "string"
  41.                         },
  42.                         "voie_cli": {
  43.                         "type": "string"
  44.                         },
  45.                         "c_post_cli": {
  46.                         "type": "string"
  47.                         },
  48.                         "c_qual": {
  49.                         "type": "string"
  50.                         },
  51.                         "ad_e_mail": {
  52.                         "type": "string"
  53.                         },
  54.                         "no_telp": {
  55.                         "type": "string"
  56.                         },
  57.                         "ptel_empcli": {
  58.                         "type": "string"
  59.                         }
  60.                     }
  61.                 }
  62.             }
  63.         }
  64.     }
  65. }
  66.  
  67. -----------------------------NEW mapping-------------------------------
  68.  
  69. curl -XPUT 'http://maprvm:9200/maprdb/_mapping/tInfoclient' -d '{
  70.     "mappings": {
  71.         "tInfoclient": {
  72.             "properties": {
  73.                 "Client": {
  74.                     "properties": {
  75.                         "d_naiss_cli": {
  76.                             "type": "string",
  77.                             "copy_to":  "full_info"
  78.                         },
  79.                         "pr_cli_20": {
  80.                             "type": "string",
  81.                             "copy_to":  "full_info"
  82.                         },
  83.                         "nom_cli_20": {
  84.                             "type": "string",
  85.                             "copy_to":  "full_info"
  86.                         },
  87.                         "full_info": {
  88.                             "type":     "string"
  89.                         },
  90.                         "dc_cli": {
  91.                             "format": "dateOptionalTime",
  92.                             "type": "date"
  93.                         },
  94.                         "no_coEmprunteur": {
  95.                             "type": "string"
  96.                         },
  97.                         "cmpl_voie_cli": {
  98.                             "type": "string"
  99.                         },
  100.                         "loc_cli": {
  101.                             "type": "string"
  102.                         },
  103.                         "no_tel_cli": {
  104.                             "type": "string"
  105.                         },
  106.                         "no_ctrat": {
  107.                             "type": "string"
  108.                         },
  109.                         "no_tel_empcli": {
  110.                             "type": "string"
  111.                         },
  112.                         "voie_cli": {
  113.                             "type": "string"
  114.                         },
  115.                         "c_post_cli": {
  116.                             "type": "string"
  117.                         },
  118.                         "c_qual": {
  119.                             "type": "string"
  120.                         },
  121.                         "ad_e_mail": {
  122.                             "type": "string"
  123.                         },
  124.                         "no_telp": {
  125.                             "type": "string"
  126.                         },
  127.                         "ptel_empcli": {
  128.                             "type": "string"
  129.                         }
  130.                     }
  131.                 }
  132.             }
  133.         }
  134.     }
  135. }'
  136.  
  137.  
  138.  
  139. -----------------------------------------ERROR I GET ----------------------------------------
  140. "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