新手使用es中。。
put my_index
{
"mappings":{
"trade_data":{
"properties":{
"id":{"type":"long"},
"clientIp":{"type":"ip"},
"phoneIdentifierId":{"type":"text"},
"createTime":{"type":"date",
"format":"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
}
}
}
用此语句在kibana的 dev Tool 中创建mapping成功。使用java 6.3的客户端批量插入了数据,
在DEV Tool里边能查到,GET /my_index/trade_data/1555675153 可以查到。但是在discover里边看不到啊。
如果不创建mapping,直接通过客户端批量插入,在discover是可以看到的。
问下各位大大,这是什么原因呢
put my_index
{
"mappings":{
"trade_data":{
"properties":{
"id":{"type":"long"},
"clientIp":{"type":"ip"},
"phoneIdentifierId":{"type":"text"},
"createTime":{"type":"date",
"format":"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
}
}
}
用此语句在kibana的 dev Tool 中创建mapping成功。使用java 6.3的客户端批量插入了数据,
在DEV Tool里边能查到,GET /my_index/trade_data/1555675153 可以查到。但是在discover里边看不到啊。
如果不创建mapping,直接通过客户端批量插入,在discover是可以看到的。
问下各位大大,这是什么原因呢
2 个回复
liubin
赞同来自:
ydshi
赞同来自: