And then you could get into compressed indexes such as the FM-index, which represent a text in a form that is both (typically) smaller than the original, and also supports fast substring queries.
Suffix trees are cool, but they’re just the entry point to a world of wonderful data structures and algorithms.