Efficient substring searches on text corpora using a compressed index