【发布时间】:2016-11-17 03:33:06
【问题描述】:
好吧,也许我错过了 Elasticsearch 的一些核心概念,但我对此很陌生,并试图实现一些对我来说看起来很明智的事情。
假设我们有许多跑步者参加比赛,赛道周围有检查站。
基本文档可能如下所示:
{
"name" : "John Smith",
"age" : "31",
"checkpoints": [
{
"checkpoint" : "Race Start"
"timestamp" : "..."
}
]
}
我的问题是,能够扩展检查点列表是否有意义,如果是,那么执行此操作的示例 (POST) 请求是什么?
更新:
预期结果:
{
"name" : "John Smith",
"age" : "31",
"checkpoints": [
{
"checkpoint" : "Race Start"
"timestamp" : "..."
},
{
"checkpoint" : "Checkpoint1"
"timestamp" : "..."
},
{
"checkpoint" : "Checkpoint2"
"timestamp" : "..."
}
]
}
【问题讨论】:
-
to extend the list of checkpoints是什么意思?向数组中添加另一个对象? -
添加了预期结果
标签: java json search elasticsearch put