As of know there is no way to search a phrase or word aside from Versions Tab -) "Word/Phrase in File".
Using workbench, you can search for a Word/Phrase in one state/project at a time. You need to run multiple times to search in multi states/projects
No Java API is also available.
We tried providing an alternate method of achieving this through SQL queries but found it it is not possible .