Indexing part of codebase

My codebase contains more than 100k files. Instead of using .cursorignore, is it possible to run the index on some specified set of subdirectories?