Compiling an index