You don't index because a code base is too big to grep. Grep can cut through almost any code base. The problem is that grep is lexical. It is dumb.