I create user login system with file uploading , and user can upload unlimited textfiles and search word, how to create and mapping index this case?

This should be fast enough even with a lot of documents.