2016-10-28 3 views
1

이 (http://pastebin.com/T7GcHSXj 참조) (1.4 elasticsearch) 내 인덱스 작동하지 :업데이트 매핑은 이해가 안 나는이 오류가, 내 인덱스를 업데이트하고, 메소드 copy_to에서 만든 새 필드를 추가하려고하면

"오류": " 분석 남은 필드 후 비어 있지 MapperParsingException [루트 형식 매핑! [매핑 : {tInfoclient = {특성 = {클라이언트 = {특성 = {d_naiss_cli = {유형 = 문자열 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},{type = string}, no_tel_empcli = {type = string}, no_tel_empcli = {type = string}, no_tel_empcli = {type = string}, no_tel_emiclcl = {type = string}, no_tel_empcli = {type = string} , voie_cli = {TYPE = 문자열} c_post_cli = {TYPE = 문자열} c_qual = {TYPE = 문자열} ad_e_mail = {TYPE = 문자열} no_telp = {TYPE = 문자열} ptel_empcli = {TYPE = 문자열 }}}}}}]] ","상태 ": 나는 웹 사이트에서 문서를 따라 400}

,하지만 단서 : https://www.elastic.co/guide/en/elasticsearch/reference/1.4/indices-put-mapping.html https://www.elastic.co/guide/en/elasticsearch/guide/1.x/custom-all.html

답변

1

updati을 이 가능할 때 나는 문서를 오해하면 ... 나쁜 느낌이 답변을 받아 들일 것입니다

curl -XPUT 'http://maprvm:9200/maprdb/_mapping/tInfoclient' -d '{ 
      "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" 
         } 
        } 
       } 
      } 

}' 
+0

: NG 매핑 유형 당신은 mappings 부와 이미 URL에 지정되어 그 이후 유형 이름을 제거해야 : / – kulssaka

관련 문제