I'm trying to find all files that contains a specific word, like "TEMPLATE".
This is my code:
final PsiSearchHelper helper = PsiSearchHelper.getInstance(project);
PsiFile pfs = helper.findFilesWithPlainTextWords("TEMPLATE");
The content of one of my files is
The problem is that the result is an empty array.
I checked on debug the helper object and the DumpService state is "SMART" so if I understood correctly it means index is built and ready to use.
What am I doing wrong?