Have you tried running an explain on the query to see what it’s actually doing and if it’s matching the indexes.
What do your documents look like and what is your query? What indexes have you created? What version of Mongo are you running?
Without more information there is not a lot to comment on, you can create an example of your issue on Mongo playground or something so people can give feedback: