I think in elasticsearch it shows the size of 10 by default but instead of 10 i want to set the size to total hits value that i am getting after running the query. I am attaching my query Please help me out

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 :slight_smile:

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?