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?