Does mongodb’s index consume memory?

  mongodb, question

Mongodb’s index consumes a lot of disk space, will it occupy memory at the same time? When using an index to execute a query, the mongo engine must first find the location of the matching document on the disk in the index tree. then is this “index tree” on the disk or in memory, that is, does mongo engine use the index check on the disk or the index check in memory?