Document Retrieval Using a Substring Index