GET /_search
{
"sort": [{ "date": { "order": "desc" } }],
"track_total_hits": true,
"query":
{
"bool":
{
"must":
[
{
"bool":
{
"should":
[
{
"match_phrase": {
"actionType": "Error_Codes"
}
}
]
}
}
],
"filter":
{
"range": {
"timestamp_epoch":
{
"gte": "2021-08-21T18:48:25.261Z",
"lte":"2021-08-21T20:32:25.261Z"
}
}
}
}
}
}
Please don't put your question in the title of your topic, it makes it really hard to follow what you are asking
The problem here is that you don't know how many hits there are until you run the query. Are you just looking to return every result that it can find?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.