본문 바로가기
Error

elasticsearch 에러 { "error" : { "root_cause" : [ { "type" : "illegal_argument_exception", "reason" : "Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true." } ], "ty..

by reo.l 2021. 6. 8.

 

{
  "error" : {
    "root_cause" : [
      {
        "type" : "mapper_parsing_exception",
        "reason" : "No handler for type [string] declared on field [professor]"
      }
    ],
    "type" : "mapper_parsing_exception",
    "reason" : "No handler for type [string] declared on field [professor]"
  },
  "status" : 400
}

 

elasticsearch 6.0v 이후로 mapping 파일의 type을 string이 아닌 text로 지정해야 한다. 파일로 돌아가 string을 text로 변경하니 해결됐다.

 

 

댓글