I have a question, I am trying to update an object in ES, so, every time I query it I will get all the updated info. I have an object like this:
{
"took": 7,
"timed_out": false,
"_shards": {
"total": 768,
"successful": 768,
"failed": 0
},
"hits": {
"total": 456,
"max_score": 1,
"hits": [
{
"_index": "sometype_1",
"_type": "sometype",
"_id": "12312321312312",
"_score": 1,
"_source": {
"readModel": {
"id": "asdfqwerzcxv",
"status": "active",
"hidden": false,
"message": "hello world",
},
"model": {
"id": "asdfqwerzcxv",
"content": {
"objectId": "421421312312",
"content": {
"@type": "text",
"text": "hello world"
}
..... //the rest of the object...
And I want to update the message (part of the read model), so I made something like this:
PUT test/readModel.id/ID123
{
"message" : "hello"
}
But everytime I query looking for ID123 I get same info (and even worse, the more PUTs I make the more objects I get back (with same info)
any idea how to?