In Elasticsearch, data after a certain date is not coming through

Problem:

My application is running on Docker, and I am using Elasticsearch. The index has been created. When I make a curl request, I get a response, but in my application, data after March 5th is not showing up. However, when I make a curl request, I can get a response.

Details:

The Elasticsearch container is up and running, and I sent a request using curl, receiving results for all dates. However, I am not getting a response through the application.

The logs show the following:

[Nest] 41 - 03/18/2025, 8:50:17 AM   DEBUG [new] Indexing has started!
[Nest] 41 - 03/18/2025, 8:50:17 AM    WARN [Elastic] Found indices!
[Nest] 41 - 03/18/2025, 8:50:17 AM    WARN [Elastic] Removing old indices..
[Nest] 41 - 03/18/2025, 8:50:18 AM     LOG [Elastic] Creating new Index: [index_name]
[Nest] 41 - 03/18/2025, 8:50:18 AM     LOG [Elastic] New Index: [index_name] created!

Hello!
Which language is your application written in, and which client are you using?

Also to be sure the problem is clear: you're calling the same Elasticsearch docker instance first using a client, then using curl, performing the same query and obtaining different results? Could we get more details on the query performed?