It must not be spotlight, but finding text in the files on iPhone would be very helpful

Why not Spotlight? Data does not change massively on a typical iPhone, so indexing should be feasible. And it's said to have a relational database built in, that could be used for building the search source.
System-wide Spotlight would be greatly appreciated.
agreed
The Palm could do it already