Hi following are my mapping
{
"dynamic" : "true",
"_meta" : { },
"_source" : {
"includes" : [ ],
"excludes" : [ ]
},
"dynamic_date_formats" : [
"strict_date_optional_time",
"yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"
],
"dynamic_templates" : [ ],
"date_detection" : true,
"numeric_detection" : false,
"properties" : {
"brand_tile" : {
"type" : "text",
"fields" : {
"brand_tile" : {
"type" : "keyword"
}
}
},
"dateStamp" : {
"type" : "date"
},
"email" : {
"type" : "keyword"
},
"event_title" : {
"type" : "keyword",
"fields" : {
"event_title" : {
"type" : "text"
}
}
},
"ip_address" : {
"type" : "ip"
},
"location" : {
"type" : "geo_point"
},
"order_number" : {
"type" : "text",
"fields" : {
"order_number" : {
"type" : "keyword"
}
}
},
"order_price" : {
"type" : "float"
},
"product_name" : {
"type" : "text",
"fields" : {
"product_name" : {
"type" : "keyword"
}
}
},
"productid" : {
"type" : "long"
},
"session_id" : {
"type" : "text",
"fields" : {
"session_id" : {
"type" : "keyword"
}
}
},
"userid" : {
"type" : "long"
},
"variatns" : {
"properties" : {
"SKU" : {
"type" : "keyword"
},
"color" : {
"type" : "keyword"
},
"size" : {
"type" : "keyword"
}
}
}
}}
I am trying to create index using dev tool here is how I am doing it
PUT event-tracking
{
"email": "referal_register_test10@yopmail.com",
"event_title": "register",
"ip_address": "::1",
"session_id": "cd9c12be-ba89-eac0-840c-1396a24d9d44",
"userid": 23453,
"brand_title": "",
"productid": 897,
"location": {}}
I am getting following error
unknown key [productid] for create index
Thanks in advance.