step1: use API to create the record:
POST http://localhost:9200/twitter/tweet/34/_update
{
"scripted_upsert":true,
"script" : {
"source": "ctx._source.name = params.name;",
"lang": "painless",
"params" : {
"name": "John"
}
} ,
"upsert" : {
}
}
and get the response as below:
{
"_index": "twitter",
"_type": "tweet",
"_id": "34",
"_version": 1,
"result": "created",
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
}
}
step2:use get api can get this record(GET http://localhost:9200/twitter/tweet/34):
{
"_index": "twitter",
"_type": "tweet",
"_id": "34",
"_version": 1,
"found": true,
"_source": {
"name": "John"
}
}
step3: go to kibana dashboard to create the index pattern:"twitter" in "Management" tab,
step4: go to "Discover" tab and select the index "twitter" created in step3, but I can not see this record under the index:"twitter".
Elasticsearch/kibana version:5.6.3

