Improved search by indexing all substrings of a document name