Ok maybe I am missing some core concept of Elasticsearch but I am new to this and trying to achieve something that looked sensible to me.
Lets imagine we have a number of runners in a race, with checkpoints around the track.
Out base documents may look like:
{
"name" : "John Smith",
"age" : "31",
"checkpoints": [
{
"checkpoint" : "Race Start"
"timestamp" : "..."
}
]
}
My question is, does it make sense to be able to extend the list of checkpoints and if so, what would be an example (POST) request to do that?
Update:
Expected result:
{
"name" : "John Smith",
"age" : "31",
"checkpoints": [
{
"checkpoint" : "Race Start"
"timestamp" : "..."
},
{
"checkpoint" : "Checkpoint1"
"timestamp" : "..."
},
{
"checkpoint" : "Checkpoint2"
"timestamp" : "..."
}
]
}
to extend the list of checkpoints? Add another object to array?