Hello,
sometimes it seems that Elasticsearch is not running as it should so I have tried to debug it using kibana.
I cannot access the key “id” via:
GET /trend_meta/_search
{
"query": {
"constant_score": {
"filter": {
"term": {
"id": "trend9d27baa7-7dbe-4448-891a-814cab9e805f"
}
}
}
}
}
the same request using an underline for the key “id”
"_id": "trend9d27baa7-7dbe-4448-891a-814cab9e805f"
gives me the following result:
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": "trend_meta",
"_id": "trend9d27baa7-7dbe-4448-891a-814cab9e805f",
"_score": 1,
"_source": {
"id": "trend9d27baa7-7dbe-4448-891a-814cab9e805f",
"liveTime": 60,
}
}
]
}
}
Why is it, that I cannot get a response for “id” but for “_id”? Has anyone dealt with such a problem before and is there a way to solve this issue?
Thank you for your help.
Many greetings,
Salvatore