How to handle error mapping

hallo I tried to make a mapping for my needs, but an error appeared, can you help with my error,

and this my mappping

PUT /badilums
{
    "mappings":{
        "properties":{
            "badilum_perkara":{
                "type":"nested",
                "properties":{
                    "id":{
                        "type":"integer"
                    },
                    "pengadilan _negeri_id":{
                        "type":"integer"
                    },
                    "nomor_perkara":{
                        "type":"text"
                    },
                    "status_perkara":{
                        "type":"text"
                    },
                    "tanggal_pendaftaran":{
                        "type":"text"
                    },
                    "klasifikasi_perkara":{
                        "type":"text"
                    },
                    "para_pihak":{
                        "type":"text"
                    },
                    "tanggal_surat_pelimpahan":{
                        "type":"text"
                    },
                    "nomor_surat_pelimpahan":{
                        "type":"text"
                    },
                    "dakwaan":{
                        "type":"text"
                    },
                    "pihak_dipublikasikan":{
                        "type":"text"
                    },
                    "tanggal_surat":{
                        "type":"text"
                    },
                    "nomor_surat":{
                        "type":"text"
                    },
                    "nilai_sengketa":{
                        "type":"text"
                    },
                    "petitum":{
                        "type":"text"
                    },
                    "prodeo":{
                        "type":"text"
                    },
                    "tanggal_penindakan":{
                        "type":"text"
                    },
                    "ditindak_oleh":{
                        "type":"text"
                    },
                    "nomor_seri_surat_tilang":{
                        "type":"text"
                    },
                    "jenis_surat_tilang":{
                        "type":"text"
                    },
                    "jenis_kendaraan":{
                        "type":"text"
                    },
                    "tanda_nomor_kendaraan":{
                        "type":"text"
                    },
                    "bukti":{
                        "type":"text"
                    },
                    "created_at":{
                        "text":"date",
                        "format":"yyyyMMdd'T'HHmmss.SSSZ"
                    },
                    "update_at":{
                        "text":"date",
                        "format":"yyyyMMdd'T'HHmmss.SSSZ"
                    }
                }
            }
        }
    }
}


and this my error



{
  "error" : {
    "root_cause" : [
      {
        "type" : "mapper_parsing_exception",
        "reason" : "No type specified for field [created_at]"
      }
    ],
    "type" : "mapper_parsing_exception",
    "reason" : "Failed to parse mapping [_doc]: No type specified for field [created_at]",
    "caused_by" : {
      "type" : "mapper_parsing_exception",
      "reason" : "No type specified for field [created_at]"
    }
  },
  "status" : 400
}

It says "text": "date" here instead of "type": "date". Same for the update_at property

it turns out that I am not careful,
thanks Joe for the help

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