Hi everyone
I have following DSL queries:
GET eclaims-logs-2023.04.21/_search
{
"query": {
"bool": {
"must": [
{
"match": {
"thread_name" : "http-nio-5050-exec-7"
}
}
]
}
}
}
It works well and returns 5036 results. All results have the value of 'thread_name' equals 'http-nio-5050-exec-7'.
Second query returns documents added beetween '2023-04-21T08:06:15.220Z' and '2023-04-21T08:06:15.500Z'. Number of such documents is 14
GET eclaims-logs-2023.04.21/_search
{
"query": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"gte": "2023-04-21T08:06:15.220Z",
"lt": "2023-04-21T08:06:15.500Z"
}
}
}
]
}
}
}
The third query that combines previus condiions is:
GET eclaims-logs-2023.04.21/_search
{
"query": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"gte": "2023-04-21T08:06:15.220Z",
"lt": "2023-04-21T08:06:15.500Z"
}
}
},
{
"match": {
"thread_name" : "http-nio-5050-exec-7"
}
}
]
}
}
}
the query returns 14 results, and seems to ignore match condition.
In my opinion the result should be 2.
Thanks in advance.