I want to search file contents in Google Drive for files that contain the word 'pass' - an exact match on the whole word 'pass'.
Currently I am using the following call:
var files = DriveApp.searchFiles('fullText contains \'pass\'');
I tried with double quotes as well...
var files = DriveApp.searchFiles('fullText contains "pass"');
This was based on documentation I read here: https://developers.google.com/drive/v3/web/search-parameters
However, both versions return files containing 'pass' as well as files containing derivatives of 'pass' such as 'password' or 'passing' etc. I tried to add white space to pass ('pass ' or ' pass ') but this seems to be discarded / ignored as well and I get the same results.
What must I do to get an exact match on the whole word 'pass' only?