The problem that the query thrown into the elastic sometimes responds and sometimes does not

Hello friends, I am facing a problem. I am throwing a query with no error in Elasticsearch. For example, I want it to fetch about 10 thousand or 20 thousand documents, sorted by date and fulfilling some conditions. I'm doing this query on the c# side using the Nest library. Elasticsearch query results sometimes bring documents, sometimes do not. If the query is incorrect, it does not return anything and returns me an error message, but no error message is returned, only count = 0. I think this issue may be server related. I would be very happy if anyone has any ideas to share with me....

It'd be useful if you shared your code, including the query, and the responses you are getting.

For example, when I want to pull the data in the from size range with Ascending sorted according to id.

var result = elasticClient.Search<MyModel>(s => s.Index("my_index_name")
                                      .From(0)
                                      .Size(25000)
                                      .Query(q => q.MatchAll())
                                      .Sort(srt => srt.Ascending("_id"))
                                      ).Hits.ToList();

image
The result is like this. Could there be a timeout?